Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Single point of reporting. Bokbasen will distribute reports to all relevant product owners (publisher) to be used for invoicing the subscription service and calculation of royalty to authors, etc.
The report should only include reads above the threshold (i.e 10%), as agreed upon with the publisher.
All data within a reporting period must be delivered simultaneously.
If a product changes product owner within a reporting period, the product must be reported twice (one time on each owner)
Frequency as agreed upon with the publisher, but should not include partial months, making a month the shortest reporting period possible.
New Authentication & URLs introduced Q2 2024
New optional reportId attribute introduced Q1 2025
https://api.dds.boknett.no/usage/streaming The token acquired from the . Required header: Date The timestamp the request was made. Must comply with RFC 1123 date formats. Example: Tue, 10 Jun 2014 16:23:42 GMT
Method POST Request headers Authorization Required The token acquired from the Audience: https://api.bokbasen.io/reporting/ JSON attribute reportId Optional Can be used to overwrite already sent reportId. Only possible to overwrite existing report the internal approval process in Bokbasen JSON attributes (for each item in items) isbn Required ISBN of the book you are reporting numbers for, mandatory periodFrom Required Start of the reporting period on the format yyyy-MM periodTo Required End of the reporting period on the format yyyy-MM productOwnerId Required Numeric ID of the publisher who owned the rights to the book during the reporting period productOwnerName Optional Name of the publisher who owned the rights to the book during the reporting period cost.totalCost Required The total cost that will be billed for this ISBN cost.paidCost Optional Can be sent in addition to cost.totalCost if you separate between trial and subscription cost.trialCost consumption.total Required The total amount of books read consumption.paid Optional Can be sent in addition to consumption.total if you separate between trial and subscription consumption.trial price.ppu Optional The price per book read (price per unit) price.paidPpu Optional Can be sent in addition to price.ppu if you separate between trial and subscription price.trialPpu currency Optional The currency of the cost/ppu-fields market Optional The market you are reporting for Response headers Response body Empty on success Returns 204 No Content 40x On errors 413 new If payload is too big (6MB limit)Example (curl) curl -v -X POST \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
--data-binary "@sales_data.json" \
https://api.bokbasen.io/reporting/streaming/v1 Example content of sales_data.json {
items: [
{
"isbn": "9782123456789",
"period": "2021-05",
"productOwnerId": "9999",
"productOwnerName": "Example name",
"cost": {
"totalCost": "600",
"paidCost": "450",
"trialCost": "150"
},
"consumption": {
"total": "30",
"paid": "15",
"trial": "15"
},
"price": {
"ppu": "20",
"paidPpu": "30",
"trialPpu": "10"
},
"currency": "NOK",
"market": "NO"
},
...
],
"reportId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}