POST /v1/subscriptions
POST
/v1/subscriptionsAuthorization
x-api-keyAPI key · headerrequiredor
AuthorizationBearer token · headerrequiredQuery parameters
environmentstringAllowed:
sandboxproductionmerchantAccountIdstringmin length 1
Header parameters
Idempotency-KeystringRequired for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.
min length 1
Request body
requiredapplication/jsonenvironmentstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullmerchantAccountIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcustomerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
collectionModestringrequiredAllowed:
manualautomaticitemsobject[]requiredShow propertiesHide properties
Array of
objectpriceIdstringrequiredmin length 1
quantitynumber | nullShow propertiesHide properties
Any of:
number
numbernull
nullmetadataobject | nullShow propertiesHide properties
Any of:
object
objectnull
nullsubscriptionIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullstartAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltrialEndAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullinitialStatusstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltestClockIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullmetadataobject | nullShow propertiesHide properties
Any of:
object
objectnull
nullResponses
201
Success
dataobjectrequiredShow propertiesHide properties
subscriptionobjectrequiredShow propertiesHide properties
subscriptionIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
statusstringrequiredAllowed:
draftpendingincompleteincomplete_expiredtrialingactivepast_duepausedcanceledcollectionModestringrequiredAllowed:
manualautomaticmetadataobjectrequiredcreatedAtstringrequiredmin length 1
currentPeriodStartAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcurrentPeriodEndAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltrialEndAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcancelAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcanceledAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullendedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltestClockIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullitemsobject[]requiredShow propertiesHide properties
Array of
objectsubscriptionItemIdstringrequiredmin length 1
subscriptionIdstringrequiredmin length 1
priceIdstringrequiredmin length 1
quantitynumberrequiredstartAtstringrequiredmin length 1
metadataobjectrequiredendAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrequestIdstringrequiredmin length 1