...
The get inventory service can give data on your entire catalogue or detailed information on one specific title.
URL |
| ||
Method |
| ||
Request | Authorization | Required | The token acquired from the Authentication Service. Example: |
Date | Required | The timestamp the request was made. Must comply with RFC 1123 date formats. Example: | |
Accept | Required | application/json (We recommend all new implementations to use this header, XML support will be phased out in the future) | |
Content-type | Required | application/json | |
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 |
Required | DDS-ID for end-consumer | ||
firstname | Optional* | First name of the person buying the book (Required for all books with SDRM, minimum length 2) | |
lastname | Optional* | First name of the person buying the book (Required for all books with SDRM, minimum length 2) | |
excerpt | Optional | Order is for excerpt instead of actual book (defaults to false) | |
Response | Location |
| |
Response | Empty on success | ||
Returns |
| Created | |
| On errors |
Example (curl)
Successful creation of an order for a book that does not have social DRM
...