Het is erg druk. Gebruik onze live chat voor snel antwoord. Telefonisch zijn wij minder goed bereikbaar.

Order


Get order

GET - https://printenbind.nl/api/v1/orders/{orderid}

Returns the details of an order.

Response

The details of the order.

Response Example

date: Fri, 22 Dec 2017 11:32:13 GMT
server: Apache/2.4.27 (Win32) PHP/7.1.9 OpenSSL/1.0.2l
transfer-encoding: chunked
content-type: application/json
x-ratelimit-remaining: 10
x-ratelimit-limit: 10
connection: Keep-Alive
keep-alive: timeout=5, max=100
status: 200 OK
response-text: {"id":105075,"creation_datetime":"2017-12-22 10:46:08","lastedit":"2017-12-22 10:57:49","couponcode":"","status":"Aangemaakt"}

Get order by order reference

GET - https://printenbind.nl/api/v1/orders/reference/{orderref}

Returns the details of an order. This endpoint can only be used if an order_reference was provided when the order was originally created. If the order reference contains spaces these need to be replaced with %20 within the url. E.g. /orders/reference/aa%20bb%20cc

Response

The details of the order.

Response Example

date: Fri, 22 Dec 2017 11:32:13 GMT
server: Apache/2.4.27 (Win32) PHP/7.1.9 OpenSSL/1.0.2l
transfer-encoding: chunked
content-type: application/json
x-ratelimit-remaining: 10
x-ratelimit-limit: 10
connection: Keep-Alive
keep-alive: timeout=5, max=100
status: 200 OK
response-text: {"id":105075,"order_reference":"aa bb cc",creation_datetime":"2017-12-22 10:46:08","lastedit":"2017-12-22 10:57:49","couponcode":"","status":"Aangemaakt"}

Get orders

GET - https://printenbind.nl/api/v1/orders

Returns all the existing orders under a registered token.

Response

An Array containing the details of each order.

Response Example

date: Fri, 22 Dec 2017 11:32:13 GMT
server: Apache/2.4.27 (Win32) PHP/7.1.9 OpenSSL/1.0.2l
transfer-encoding: chunked
content-type: application/json
x-ratelimit-remaining: 10
x-ratelimit-limit: 10
connection: Keep-Alive
keep-alive: timeout=5, max=100
status: 200 OK
response-text: [{"id":104989,"creation_datetime":"2017-10-23 12:19:09","lastedit":"2017-12-22 10:53:57","couponcode":"","status":"In opdracht"},{"id":105075,"creation_datetime":"2017-12-22 10:46:08","lastedit":"2017-12-22 10:57:49","couponcode":"","status":"Aangemaakt"}]

Create order

POST - https://printenbind.nl/api/v1/orders

Creates an order. Calling this endpoint means all the articles placed under the order will be ordered under the specified name and address.

JSON Params

Property Type Description
production_methodStringThe type of the production. Possible values are: 'fast', 'standard', 'budget'
order_referenceString (optional)Your own order reference. Must be unique within your set of orders. If provided, it can be used later to retrieve the order.
commentStringAdditional information about the order that we need to know.

Response

Returns location and order ID from the created order.

Response Example

date: Fri, 22 Dec 2017 11:32:13 GMT
server: Apache/2.4.27 (Win32) PHP/7.1.9 OpenSSL/1.0.2l
transfer-encoding: chunked
content-type: application/json
location: orders/113
x-ratelimit-remaining: 10
x-ratelimit-limit: 10
connection: Keep-Alive
keep-alive: timeout=5, max=100
status: 201 CREATED
response-text: {"location":"orders/113","order_id":"113"}

Finish order

POST - https://printenbind.nl/api/v1/orders/{orderid}/finish

Finishes an order. Calling this endpoint means all the articles placed under the order will be ordered under the specified name and address.

Response

Returns a 201 CREATED response, with as value of the location header the URI to the newly made order.

Response Example

date: Fri, 22 Dec 2017 11:32:13 GMT
server: Apache/2.4.27 (Win32) PHP/7.1.9 OpenSSL/1.0.2l
transfer-encoding: chunked
content-type: application/json
location: orders/113
x-ratelimit-remaining: 10
x-ratelimit-limit: 10
connection: Keep-Alive
keep-alive: timeout=5, max=100
status: 201 CREATED
response-text: