Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
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
Indicates if MijnKlantportaal should create a payment at the connected payment provider integration when the subscription gets extended. Can only be set to true
when an integration has been set up already and supports only mollie
.
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 ID of the mandate at the payment provider integration which will be used to create the payment. Will be ignored when createPayment
is set to false
or omitted. Be aware: MijnKlantportaal will not check if the mandate is valid!
"mdt_123abc"
When true
, MijnKlantportaal will create another payment when the first one fails. Will be ignored when createPayment
is set to false
or omitted.
true
Response
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
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"