Create a plan

View as Markdown
Creates a new plan for the authenticated company. Fees, credit grant policies, and pricing catalogs are attached with separate calls after creation.

Authentication

AuthorizationBearer
API key obtained from the Grant dashboard

Request

This endpoint expects an object.
namestringRequired1-255 characters
Display name of the plan
plan_codestringOptionalformat: "^[a-z0-9]+(?:_[a-z0-9]+)*$"

Unique, human-readable plan identifier (lowercase letters, numbers, and underscores). Derived from the name when omitted.

typeenumOptional

Billing model: classic usage-based (usage, default) or credit-based (credits)

currency_codeenumOptional
Currency the plan bills in. Defaults to usd.
invoicing_cadenceenumOptional
How often invoices are issued. Defaults to monthly.
initial_credit_quantityinteger or nullOptional>=0

Initial credit quantity granted on subscription start (credit-based plans only)

Response

Plan created
successboolean
planobject
request_idstring

Errors

400
Bad Request Error
401
Unauthorized Error
409
Conflict Error
500
Internal Server Error