Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Internal Server Error
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
AcceptRequiredapplication/json (We recommend all new implementations to use this header, XML support will be phased out in the future)
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

 

Location

https://api.dds.boknett.no/content/{resourceId}

Response
body
Empty on success
Returns201Created
400Bad Request
401Unauthorized
403Forbidden
406Not Acceptable
50040xOn errors

 

Example (curl)

 

Successful creation of an order for a book that does not have social DRM

...