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

Path Parameters

externalSubscriptionId
string
required

Unique external subscription ID

Body

application/json
externalCustomerId
string

Unique identifier of the customer

planCode
string

Unique identifier of the plan

Response

OK - Successful update

id
string

Unique identifier of the subscription

planId
string

Unique identifier of the plan associated with the subscription

customerId
string

Unique identifier of the customer associated with the subscription

I