Skip to main content
POST
/
subscriptions
Create Subscription
curl --request POST \
  --url https://dev-billing-api.spectertech.ai/api/v1/subscriptions \
  --header 'Content-Type: application/json' \
  --data '{
  "externalCustomerId": "<string>",
  "planCode": "<string>"
}'
{
  "subscriptionId": "<string>"
}

Body

application/json
externalCustomerId
string
required

Unique identifier of the customer

planCode
string
required

Unique identifier of the plan

Response

Created - Successful creation of subscription

subscriptionId
string

Unique identifier of the created subscription

I