curl --request POST \
--url https://api.mijnklantportaal.nl/v1/customer-subscription-packages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Phone subscription",
"interval": "1 year",
"amount": "12.95",
"vatRate": 21,
"description": "1GB per month, 300min per month",
"availableForSale": true
}
'{
"id": "spg_abc12345def678",
"name": "Phone subscription",
"description": "1GB per month, 300min per month",
"interval": "1 year",
"currency": "EUR",
"amount": "12.95",
"vatRate": 21,
"availableForSale": true
}Add a new Customer Subscription package.
curl --request POST \
--url https://api.mijnklantportaal.nl/v1/customer-subscription-packages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Phone subscription",
"interval": "1 year",
"amount": "12.95",
"vatRate": 21,
"description": "1GB per month, 300min per month",
"availableForSale": true
}
'{
"id": "spg_abc12345def678",
"name": "Phone subscription",
"description": "1GB per month, 300min per month",
"interval": "1 year",
"currency": "EUR",
"amount": "12.95",
"vatRate": 21,
"availableForSale": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Name of the subscription package
"Phone subscription"
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
A description of the package, mainly meant for terms and conditions
"1GB per month, 300min per month"
true
The created Customer Subscription Package
Customer Subscription Package
ID of the subscription package, always starting with spg_.
"spg_abc12345def678"
Name of the subscription package
"Phone subscription"
A description of the package, mainly meant for terms and conditions
"1GB per month, 300min per month"
The interval of which the subscription will be extended with. Can be 14 days, 1 month, 2 months, 6 months or 1 year.
"1 year"
Currency of the subscription price amount.
"EUR"
Amount value as string.
"12.95"
The VAT rate percentage as integer. Can be 0, 9 or 21.
21
Indicates if the package is available for sale in the portal and public page, if enabled
true