Cart
Last updated
Last updated
POST
https://api.voordemensen.nl/v1/:client_name/cart/
A POST
HTTP request is sent. A shopping cart is created. The Location
header is used to link to the newly created resource (the cart) in order for the client to be able to access it without querying anew. Save the cart_id to the session if you want to access it again.
Name | Type | Description |
---|---|---|
POST
https://api.voordemensen.nl/v1/:client_name/cart/:cart_id
A POST
HTTP request is used to put a seat in the cart. The event_id, number of tickets and discount_id is sent as part of the request body. The reply contains all cart data in order not to force the client to query again for it.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
GET
https://api.voordemensen.nl/v1/:client_name/cart/:cart_id
Get a list of items in the cart
The response is a list of items in the cart, followed by the calculated total price of the cart.
If the Recommendation Extension is activated the response contains an array of other events the user can visit before or after this event, links to those events and even the 🚲cycle-distance between venues.
DELETE
https://api.voordemensen.nl/v1/:client_name/cart/:cart_id/:seat_id
Remove a seat from the cart
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
client_name
string
the short name identifying you as a VdM client e.g. demo or fringe
cart_id
string
the cart_id identifying this cart
client_name
string
the short name identifying you as a VdM client e.g. demo or fringe
discount_id
string
the id of the ticket type (or discount)
numberoftickets
integer
the number of tickets to add
event_id
integer
the sub_event id
client_name
string
the short name identifying you as a VdM client e.g. demo or fringe
cart_id
string
the cart_id identifying this cart
seat_id
string
the seat_id identifying the seat to be removed
cart_id
string
the cart_id identifying this cart
client_name
string
the short name identifying you as a VdM client e.g. demo or fringe