{{base_url_ws}} is https://ws.di.no for production and https://dev-ws.di.no for dev
There is a postman suite at https://distribution-innovation.postman.co/workspace/media~30a1f505-d258-4c56-8b0d-99ec53518197/collection/20709994-ae2764d1-8d8d-46e7-b754-a1397a950a45?action=share&creator=20709994
Endpoint | Method | Description | Example payload | Example response | ||||
---|---|---|---|---|---|---|---|---|
{{base_url_ws}}/ws/json/auth/v-3/login/600 | POST | Login with DI ws-user and receive a bearer token |
|
| ||||
{{base_url_ws}}/ws/json/retailer/aftonbladet/v-1/start | POST | Give DI notice that you will start sending delivery amounts for a product |
|
| ||||
{{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. |
|
|
...