Subscriptions
Edit subscription
Batch processing commands for manipulating running subscriptions. The key format is /phases/{phaseKey} or /phases/{phaseKey}/items/{itemKey}.
patch/api/v1/subscriptions/{subscriptionId}
Path parameters
subscriptionIdstring required
Example:01G65Z755AFWAKHE12NY0CQ9FH
Request body
Example request
{
"customizations": [
{
"rateCard": {
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"entitlementTemplate": {
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
}
},
"taxConfig": {
"stripe": {
"code": "txcd_10000000"
},
"taxCodeId": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"discounts": {
"percentage": {
"percentage": 50
}
}
}
}
],
"timing": "2023-01-01T01:01:01.001Z"
}Response
The request has succeeded.
Example response
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"createdAt": "2024-01-01T01:01:01.001Z",
"updatedAt": "2024-01-01T01:01:01.001Z",
"deletedAt": "2024-01-01T01:01:01.001Z",
"activeFrom": "2023-01-01T01:01:01.001Z",
"activeTo": "2023-01-01T01:01:01.001Z",
"annotations": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"customerId": "01G65Z755AFWAKHE12NY0CQ9FH",
"plan": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"currency": "USD",
"billingCadence": "P1M",
"billingAnchor": "2023-01-01T01:01:01.001Z"
}