Skip to navigation

Validate Copenhagen City Cards

Checks each card with the City Card operator, without using it, and answers when it can be used and for which products. One card covers one ticket per attraction: add the ticket line with city_cards (one card per unit) and the line is priced 0. A ticket line can only be booked on a timeslot that starts inside every one of its cards’ windows — overlap is that window for all the valid cards given here. Each card is checked at the attraction of product_id, so it can be valid for one attraction’s tickets and not another’s (for example, already used there). Nothing here uses a card: Business Central redeems the cards when it imports the order.

Headers

x-entriastringRequired

Identifies which store this request is for. Required on every store-scoped route. It is not authentication and not a secret — it grants no privileges and is safe to send from a browser. You receive the value once your Entria backend has been created and configured. Missing header returns 400; an unknown store returns 404.

Request

This endpoint expects an object.
cardslist of stringsRequired

Card numbers, 12–13 digits each, at most 20. Duplicates are answered once.

product_idstringRequired>=1 character

The City Card ticket the cards are for, by product id or sku. Each card is checked at that ticket’s attraction, and a card that cannot be used for it is not valid.

Response

Per-card results, in request order, and the window all valid cards share.

cardslist of objects
overlapobject or null
Null when no card is valid or their windows do not intersect.

Errors

400
Bad Request Error
404
Not Found Error