Order

post
Create order and proceed to checkout

https://api.voordemensen.nl/v1/:client_name/order/create
Create a new order and redirect the end-user to the payment provider.
Request
Response
Request
Path Parameters
client_name
required
string
the short name identifying you as a VdM client e.g. demo or fringe
Form Data Parameters
redirectURL
optional
string
the URL the payment provider will redirect the end-user to after payment - we will add the query ?return=order_key to this URL so you can lookup the status of the payment
payment_id
required
integer
id of payment_method
avg_optin
optional
boolean
opt in for irregular contact regarding this order
avg_mailinglist
optional
boolean
opt in for mailinglist
email
required
string
email address
firstname
optional
string
first name
lastname
optional
string
last name
phone
optional
string
phone number
address
optional
string
address
city
optional
string
city
zip
optional
string
the zipcode
cart_id
required
string
the cart_id to check out
Response
200: OK
Order created.
[
{
"url": "https://link-to-paymentprovider",
"order_key" : "unique-identifier-of-order"
}
]

get
Get status of order/payment

https://api.voordemensen.nl/v1/:client_name/order/:order_key
Check if the order is paid and display additional info. Use the order_key to find the order. Upon return from the payment provider we will add the query parameter ?response=order_key to the redirectURL (see above).
Request
Response
Request
Path Parameters
order_key
required
string
the order_key identifying the order
client_name
required
string
the short name identifying you as a VdM client e.g. demo or fringeTh {
Response
200: OK
The status of the payment and additional info for you to display (links to) the tickets.
"order_payment_status": "paid",
"order_tickets_nr": 1,
"order_tickets_url": "https://tickets.voordemensen.nl/client_name/order/XgFca-QmBxG-9WhAj-Osszb/ticket",
"order_receipt_url": "https://tickets.voordemensen.nl/client_name/order/XgFca-QmBxG-9WhAj-Osszb/receipt",
"seats": [
{
"seat_id": 2904,
"event_name": "Your Event",
"event_type": null
}
]
}