Subscriptions
Create subscription
post/api/v1/subscriptions
Request body
Example request
{
"billingAnchor": "2023-01-01T01:01:01.001Z",
"customerId": "01G65Z755AFWAKHE12NY0CQ9FH",
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"timing": "2023-01-01T01:01:01.001Z"
}Response
The request has succeeded and a new resource has been created as a result.
Example response
{
"activeFrom": "2023-01-01T01:01:01.001Z",
"activeTo": "2023-01-01T01:01:01.001Z",
"annotations": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"billingAnchor": "2023-01-01T01:01:01.001Z",
"billingCadence": "P1M",
"costBasisPins": [
{
"costBasisId": "01G65Z755AFWAKHE12NY0CQ9FH",
"customCurrencyId": "01G65Z755AFWAKHE12NY0CQ9FH",
"invoiceCurrency": "USD"
}
],
"createdAt": "2024-01-01T01:01:01.001Z",
"currency": "USD",
"customerId": "01G65Z755AFWAKHE12NY0CQ9FH",
"deletedAt": "2024-01-01T01:01:01.001Z",
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"plan": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"updatedAt": "2024-01-01T01:01:01.001Z"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.