Get Orders
Get a list of orders based on our access rights, if you are both sending and receiving orders with the same user this list will contain both. You can use the query parameter mode to filter this, if you are only either sending orders or receiving them you can ignore this parameter.
URL | https://api.order.boknett.no/orders | ||
Method | GET | ||
Request headers | Authorization | Required | The token acquired from the Authentication Service. Formated "Boknett TGT-...." |
Date | Required | The timestamp the request was made. Must comply with RFC 1123 date formats. Example: Tue, 10 Jun 2014 16:23:42 GMT | |
Request query parameters | updatedDate | Required | From date you you want to get the list of orders based on (based on last update date of the order) YYYYMMDDHHMMSS |
mode | Optional | SENT_TO_ME | SENT_BY_ME | ALL (default) | |
Response body | Response HAL JSON document | ||
Response headers | Content-type | application/hal+json | |
Returns | 200 | OK | |
40x | On error |
Get Order
Get single order based on Bokbasen's order-id. This view gives all available details on the order and order lines.
URL | https://api.order.boknett.no/orders/{ID} | ||
Method | GET | ||
Request headers | Authorization | Required | The token acquired from the Authentication Service. Formated "Boknett TGT-...." |
Date | Required | The timestamp the request was made. Must comply with RFC 1123 date formats. Example: Tue, 10 Jun 2014 16:23:42 GMT | |
Response body | Response HAL JSON document | ||
Response headers | Content-type | application/hal+json | |
Returns | 200 | OK | |
40x | On error |
Get Order EDItX document
Get the EDItX XML representation of a given order based on Bokbasen's order-ID.
URL | https://api.order.boknett.no/orders/{ID}/EDItX | ||
Method | GET | ||
Request headers | Authorization | Required | The token acquired from the Authentication Service. Formated "Boknett TGT-...." |
Date | Required | The timestamp the request was made. Must comply with RFC 1123 date formats. Example: Tue, 10 Jun 2014 16:23:42 GMT | |
Response body | EDItX XML document | ||
Response headers | Content-type | text/xml | |
Returns | 200 | OK | |
40x | On error |