Subscriptions
Create subscription
post/api/v1/subscriptions
Request body
Example request
{
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"timing": "2023-01-01T01:01:01.001Z",
"customerId": "01G65Z755AFWAKHE12NY0CQ9FH",
"billingAnchor": "2023-01-01T01:01:01.001Z"
}Response
The request has succeeded and a new resource has been created as a result.
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"
}