Skip to main content
POST
Create a plan

Request Body

Price Object

Example Request

Response

Errors

See Errors for the error envelope and the full code taxonomy.

Authorizations

Authorization
string
header
required

Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.

Body

application/json
name
string
required
code
string
required

Unique plan code (e.g. gold-monthly).

interval_unit
enum<string>
required
Available options:
day,
week,
month,
year
interval_count
integer
required
Required range: x >= 1
amount
integer<int64>
required

Price in the lowest currency unit (e.g. cents/paise).

currency
string
required

ISO 4217 code.

Required string length: 3
hsn_code
string

Optional HSN/SAC code for this plan. Each invoice line for the plan is taxed at this code's GST rate. Empty falls back to the tenant SAC (then the 998314 default).

Response

Plan created.

id
string<uuid>
tenant_id
string<uuid>
name
string
code
string
interval_unit
enum<string>
Available options:
day,
week,
month,
year
interval_count
integer
active
boolean
hsn_code
string

HSN/SAC code the plan's invoice lines are taxed at (empty = tenant SAC default).

created_at
string<date-time>
prices
object[]