Retailer endpoints
{{base_url_ws}} is https://ws.di.no for production, https://stg-ws.di.no/ for stage and https://dev-ws.di.no for dev
Endpoint | Method | Description | Example payload/parameters | Example response |
---|---|---|---|---|
{{base_url_ws}}/ws/json/auth/v-3/login/600 | POST | Login with DI ws-user and receive a bearer token | {
"username": "username",
"password": "passphrase"
} Β | {
"token": "bearertokenstring"
} Β |
{{base_url_ws}}/ws/json/retailer/aftonbladet/v-1/start | POST | Give DI notice that you will start sending delivery amounts for a product | {
"productNameExternal": "EXP",
"date": "2023-03-01"
} Β | Β |
{{base_url_ws}}/ws/json/retailer/aftonbladet/v-1/updateForecast | POST | Send an array of delivery amounts for product and days. Retailer has to have autoreg = true in the DI retailer-system. Note that demand and spread is ignored. | Β | Β |
{{base_url_ws}}/ws/json/retailer/aftonbladet/v-1/end | POST | Give DI notice that you have stopped sending delivery amounts for a product. This will also truncate logs older than 2 days. | Β | Β |
{{base_url_ws}}/ws/json/retailer/aftonbladet/v-1/retailerStatistics | GET | Get how many papers have been delivered and returned in the last x days. | historyDays=790&productNameExternal=OR&productNameExternal=AB39&fsstNumber=15454 | Β |
{{base_url_ws}}/ws/json/retailer/aftonbladet/v-1/retailerStatisticsAggregated | POST | Get aggregated deliveries and returns data for multiple retailers. | Β | Β |
{{base_url_ws}}/ws/json/retailer/aftonbladet/v-1/activeRetailers | GET | Get a list of fsst-numbers with autoreg=1 that are active x number of days from now | daysFromNow=10 | Β |
{{base_url_ws}}/ws/json/retailer/aftonbladet/v-1/releasedProducts | GET | Get EXP products that have a release the given day according to ProduktUtgivelse | releaseDate=2023-01-23 | Β |
{{base_url_ws}}/ws/json/retailer/aftonbladet/v-1/activeProducts | GET | Get EXP products that are currently active and what the current price is. | Β | Β |
Β