curl --request POST \
--url https://api.mijnklantportaal.nl/v1/customer-subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customerId": "cst_abc12345def678",
"description": "Contribution costs",
"startDate": "2024-05-04",
"interval": "1 year",
"amount": "12.95",
"vatRate": 21,
"createInvoice": true,
"invoiceDescription": "Extending subscription"
}
'{
"id": "sub__abc12345def678",
"customerId": "cst_abc12345def678",
"description": "Website maintenance contract",
"startsAt": "2024-04-29",
"interval": "1 year",
"renewsAt": "2025-04-29",
"currency": "EUR",
"amount": "12.95",
"vatRate": 21,
"status": "in_progress",
"options": {
"createInvoice": true,
"invoiceDescription": "Extending subscription"
},
"terminatedAt": "2024-04-29T21:00:00+02:00",
"createdAt": "2024-04-29T21:00:00+02:00"
}Add a new Customer Subscription.
curl --request POST \
--url https://api.mijnklantportaal.nl/v1/customer-subscriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customerId": "cst_abc12345def678",
"description": "Contribution costs",
"startDate": "2024-05-04",
"interval": "1 year",
"amount": "12.95",
"vatRate": 21,
"createInvoice": true,
"invoiceDescription": "Extending subscription"
}
'{
"id": "sub__abc12345def678",
"customerId": "cst_abc12345def678",
"description": "Website maintenance contract",
"startsAt": "2024-04-29",
"interval": "1 year",
"renewsAt": "2025-04-29",
"currency": "EUR",
"amount": "12.95",
"vatRate": 21,
"status": "in_progress",
"options": {
"createInvoice": true,
"invoiceDescription": "Extending subscription"
},
"terminatedAt": "2024-04-29T21:00:00+02:00",
"createdAt": "2024-04-29T21:00:00+02:00"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the customer this offer is meant for
"cst_abc12345def678"
Description of the Subscription
"Contribution costs"
Date the subscription should or has started, as format YYYY-mm-dd.
"2024-05-04"
The interval of which the subscription will be extended. Can be 14 days, 1 month, 2 months, 6 months or 1 year.
"1 year"
Amount to be charged in Euro (EUR), as string.
"12.95"
The VAT rate percentage as integer. Can be 0, 9 or 21.
21
Indicates if MijnKlantportaal should create an invoice in the connected bookkeeping integration. Can only be set to true when an integration has been set up already.
true
The string which will be added as row on the created invoice. Will be ignored when createInvoice is set to false or omitted.
"Extending subscription"
The created Customer Subscription
Customer Subscription
ID of the subscription, always starting with sub_.
"sub__abc12345def678"
ID of the customer which the subscription belongs to.
"cst_abc12345def678"
Description of the subscription
"Website maintenance contract"
Start date of the subscription. Formatted as YYYY-mm-dd.
"2024-04-29"
The interval of which the subscription will be extended. Can be 14 days, 1 month, 2 months, 6 months or 1 year.
"1 year"
Date of when the subscription will be renewed next. Formatted as YYYY-mm-dd.
"2025-04-29"
Currency of the subscription amount.
"EUR"
Amount value as string.
"12.95"
The VAT rate percentage as integer. Can be 0, 9 or 21.
21
The current status of the subscription. Can be planned, in_progress, terminated or ended.
"in_progress"
Settings of the subscription
Show child attributes
Date and time when the subscription was terminated. Written in ATOM format.
"2024-04-29T21:00:00+02:00"
Date and time when the subscription was added to MijnKlantportaal. Written in ATOM format.
"2024-04-29T21:00:00+02:00"