curl --request POST \
--url https://api.mijnklantportaal.nl/v1/customer-subscription-packages/{packageId}/sign-up \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customerId": "cst_abc12345def678",
"startDate": "2024-05-04",
"mandateId": "mdt_abc12345def678",
"createInvoice": true,
"invoiceText": null
}
'{
"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"
}Sign-up for a customer for a Customer Subscription Package by ID.
curl --request POST \
--url https://api.mijnklantportaal.nl/v1/customer-subscription-packages/{packageId}/sign-up \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customerId": "cst_abc12345def678",
"startDate": "2024-05-04",
"mandateId": "mdt_abc12345def678",
"createInvoice": true,
"invoiceText": null
}
'{
"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 Subscription Package to use for the sign-up
ID of the customer you would like to create a subscription for with this package.
"cst_abc12345def678"
Date the subscription should or has started, as format YYYY-mm-dd.
"2024-05-04"
ID of the mandate you would like to use to charge the subscription with. Omit if you want to start the process for a new customer, or not enable automatic charges for existing customers.
"mdt_abc12345def678"
Indicates if MijnKlantportaal should create an invoice for every charge.
true
Custom invoice text. Omit if you want to use the package's name.
null
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"