cURL
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>" }
Update an existing subscription.
Unique external subscription ID
Unique identifier of the customer
Unique identifier of the plan
OK - Successful update
Unique identifier of the subscription
Unique identifier of the plan associated with the subscription
Unique identifier of the customer associated with the subscription