Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Sale of products

An order is placed at the time of a valid purchase from the end-user.  This is for a product to be made available to the customer in all services. The bookstore calls this on behalf of the customer. If id is specified for an order id, the order is attached to this and can’t be changed. There are some variations in the data you need to send in depending on what type of DRM the book.



Place an order

 

The get inventory service can give data on your entire catalogue or detailed information on one specific tittle. 

 

URLhttps://api.dds.boknett.no/order
MethodPOST
Request
headers

Authorization

Required

The token acquired from the Authentication Service.

Formated "Boknett TGT-...."

DateRequiredThe timestamp the request was made. Must comply with RFC 1123 date formats. Example: Tue, 10 Jun 2014 16:23:42 GMT
JSON attributesorderidRequiredYour store order ID. Used as transaction ID in DDS. Must be unique for a purchase.
residRequiredThe product ID in DDS. Unique name for e-/audio books found in the inventory service.
spdRequiredPrice in Norwegian "øre"  (sold for) including VAT. Example NOK 189 = 18900
idOptionalDDS-ID for end-consumer

firstname

Optional*First name of the person buying the book (Required for all books with SDRM)
lastnameOptional*

First name of the person buying the book (Required for all books with SDRM)

excerptOptionalOrder is for excerpt instead of actual book (defaults to false)
Response
headers

 

Content-Type

application/json

Response
body
ATOM Inventory XML format (see details further down on this page)
Returns200OK
400Bad Request
401Unauthorized
403Forbidden
406Not Acceptable
500Internal Server Error

 

 



  • No labels