Skip to main content
POST
/
v1
/
plan-groups
Create a plan group
curl --request POST \
  --url https://api.useplinth.com/v1/plan-groups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Core",
  "description": "Main product tiers"
}
'
{
  "object": "plan_group",
  "id": "pg_01JABC...",
  "name": "Core",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Use sk_test_ keys for sandbox. Use sk_live_ keys for production. Obtain your key from the dashboard.

Body

application/json
name
string
required
Maximum string length: 100
Example:

"Core"

description
string
Maximum string length: 500
Example:

"Main product tiers"

Response

201 - application/json

Plan group created

object
enum<string>
Available options:
plan_group
id
string
Example:

"pg_01JABC..."

name
string
Example:

"Core"

created_at
string<date-time>