curl --request POST \
--url https://api.mijnklantportaal.nl/v1/punch-cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Driving lessons",
"punches": 20,
"punchLabel": "lessons",
"description": "Lessons in a BMW, Mon-Fri 09AM-05PM",
"forSale": true,
"price": "229.95",
"vatRate": 21,
"expiryValue": 3,
"expirePeriod": "years"
}
'{
"id": "pcd_abc12345def678",
"name": "Driving lessons",
"description": "Lessons in a BMW, Mon-Fri 09AM-05PM",
"punches": 20,
"punchLabel": "lessons",
"forSale": true,
"price": "229.95",
"vatRate": 21,
"expiryValue": 3,
"expiryPeriode": "years",
"createdAt": "2025-11-19T21:00:00+02:00"
}Create a new Punch Card.
curl --request POST \
--url https://api.mijnklantportaal.nl/v1/punch-cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Driving lessons",
"punches": 20,
"punchLabel": "lessons",
"description": "Lessons in a BMW, Mon-Fri 09AM-05PM",
"forSale": true,
"price": "229.95",
"vatRate": 21,
"expiryValue": 3,
"expirePeriod": "years"
}
'{
"id": "pcd_abc12345def678",
"name": "Driving lessons",
"description": "Lessons in a BMW, Mon-Fri 09AM-05PM",
"punches": 20,
"punchLabel": "lessons",
"forSale": true,
"price": "229.95",
"vatRate": 21,
"expiryValue": 3,
"expiryPeriode": "years",
"createdAt": "2025-11-19T21:00:00+02:00"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Name of the punch card.
"Driving lessons"
Amount of punches on the card which can be used
20
Unit label, indicates what type of punches the card provides
"lessons"
Additional information about the card, which will be shown in the portal
"Lessons in a BMW, Mon-Fri 09AM-05PM"
Indicates if the punch card can be bought online via the customer portal. Defaults to false when ommited.
true
The price, including VAT, of which this punch card should be sold for. Only required when the card is set for sale.
"229.95"
Percentage of VAT which applies to this punch card. Only required when the card is set for sale. Possible values are 21, 9 and 0.
21
Amount of periods after assigning/buying this cards will expire. If ommitted, but the card will never expire.
3
Period after assigning/buying this cards will expire. If ommitted, but the card will never expire. Possible values are days, months and years.
"years"
The created Punch Card
Punch Card
ID of the punch card, always starting with pcd_.
"pcd_abc12345def678"
"Driving lessons"
Description of the card. Will be shown in the portal
"Lessons in a BMW, Mon-Fri 09AM-05PM"
Punch count for this card
20
Type of punches
"lessons"
Indicates if the punch card can be bought online in the customer portal
true
Price, including VAT, of which this card will be sold for, in EUR. Will be null when the card is not for sale
"229.95"
Percentage of VAT which is applied to the price. Can be 21, 9 or 0. Will be null when the card is not for sale
21
Number of units when this cards expires into the future
3
Unit of when this cards expires into the future. Can be days, months or years.
"years"
Date and time when the card was created. Written in ATOM format.
"2025-11-19T21:00:00+02:00"