...
URL | https://api.dds.boknett.no/order | ||
Method | POST | ||
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 | |
Accept | Required | application/json (We recommend all new implementations to use this header, XML support will be phased out in the future) | |
JSON attributes | orderid | Required | Your store order ID. Used as transaction ID in DDS. Must be unique for a purchase. |
resid | Required | The product ID in DDS. Unique name for e-/audio books found in the inventory service. | |
spd | Required | Price in Norwegian "øre" (sold for) including VAT. Example NOK 189 = 18900 | |
id | Optional | DDS-ID for end-consumer | |
firstname | Optional* | First name of the person buying the book (Required for all books with SDRM) | |
lastname | Optional* | First name of the person buying the book (Required for all books with SDRM) | |
excerpt | Optional | Order is for excerpt instead of actual book (defaults to false) | |
Response headers
| Location | https://api.dds.boknett.no/content/{downloadid} | |
Response body | Empty on success | ||
Returns | 201 | Created | |
400 | Bad Request | ||
401 | Unauthorized | ||
403 | Forbidden | ||
406 | Not Acceptable | ||
500 | Internal Server Error |
...