...
Info |
---|
New Authentication & URLs introduced Q2 2024 |
URL |
| ||||||||
Method |
| ||||||||
Request headers |
| Required | The token acquired from the Authentication Service Audience: | ||||||
JSON attributes (for each item in |
| Required | ISBN of the book you are reporting numbers for, mandatory | ||||||
| Required | Start of the reporting period on the format yyyy-MM | |||||||
| Required | End of the reporting period on the format yyyy-MM | |||||||
| Required | Numeric ID of the publisher who owned the rights to the book during the reporting period | |||||||
| Optional | Name of the publisher who owned the rights to the book during the reporting period | |||||||
| Required | The total cost that will be billed for this ISBN | |||||||
| Optional | Can be sent in addition to cost.totalCost if you separate between trial and subscription | |||||||
| |||||||||
| Required | The total amount of books read | |||||||
| Optional | Can be sent in addition to consumption.total if you separate between trial and subscription | |||||||
| |||||||||
| Optional | The price per book read (price per unit) | |||||||
| Optional | Can be sent in addition to price.ppu if you separate between trial and subscription | |||||||
| |||||||||
| Optional | The currency of the cost/ppu-fields | |||||||
| Optional | The market you are reporting for | |||||||
Response headers | |||||||||
Response body | Empty on success | ||||||||
Returns |
| No success | |||||||
| On errors | ||||||||
| If payload is too big (6MB limit) |
Example (curl)
Code Block |
---|
curl -v -X POST \ -H "Authorization: BoknettBearer TGT-232156-LFKUYpgAsxobxOMCAXnBXd7YxdmCRhWx91BYrgTHbcrfuflWRV-login.boknett.no" \ -H "Date: Thu, 12 Aug 2021 09:09:00 GMT" <your-token>" \ -H "Content-Type: application/json" \ --data-binary "@sales_data.json" \ https://api.ddsbokbasen.boknett.noio/usagereporting/streaming/v1 |
Example content of sales_data.json
...