Subscriptions
Update subscription metadata
Update the metadata field on a subscription. Other fields cannot be changed directly.
patch/api/subscriptions/{id}
Path parameters
idstring required
Subscription ID
Request body
Response
Subscription metadata updated
Example response
{
"id": "clx1234567890",
"externalId": "ext_sub_123",
"customerId": "clxcust123",
"planId": "clxplan123",
"status": "ACTIVE",
"currency": "USD",
"billingTiming": "IN_ARREARS",
"customer": {
"id": "clx1234567890",
"name": "Jane Doe",
"email": "jane@example.com"
},
"plan": {
"id": "clxplan123",
"name": "Premium Monthly",
"billingInterval": "MONTHLY"
}
}