When you are using DDS and a have a user that has subscription permissions you cannot use the normal /order POST to create orders. Then you use this version which has a few modifications and additional validations to use in order to get access to watermarked content for your subscription customers.
Place an order for a subscription service
Before downloading the book for a customer you make an order, and based on that order you can use get content to download the file: Content download
Info |
---|
New Authentication & URLs introduced Q2 2024 |
URL |
|
...
|
headers
Authorization
|
|
|
| |||
Method |
| ||
Request |
| Required | The token acquired from the Authentication Service. Audience: Example: |
| Required |
| |
| Required |
| |
JSON attributes |
| Optional | Your store order ID, if not provided we will generate a random one |
| Required | The product ID in DDS. Unique name for e-/audio books found in the inventory service. | |
| Optional | Will default to 0 if not provided, only use this if you have that as a requirement in your contract with the publisher to provide price. | |
| Optional* | First name of the person buying the book (Required for all books with SDRM) | |
| Optional* | First name of the person buying the book (Required for all books with SDRM) | |
Response |
|
|
|
| |||
Response | Empty on success | ||
Returns |
| Created | |
| On errors |
Subscription reporting
Status | ||||
---|---|---|---|---|
|
This service is only for customers with subscription model using the revenue share financial model. When passing the agreed threshold for reading (i.e. 10%) the subscription provider should send a call this usage API reporting which book the threshold was met for. This can either be done in real time or on a batch basis, but reporting should at a minimum be done daily.
Note |
---|
Note that this reporting service is replaced by Reporting from subscription services. New customers shall not use this. |
Expand | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
...
|
...
Example (curl)Successful reporting on a book that has reached the reading threshold
|
...
|
...
|