Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anbefalte antall kommer fra Schibsted sin ML modell.

Returen kommer fra Advantops/Voice Providor løsningen (Tidsam retur).

The webservice for postal deviation is to be used for fetching postal distribution deviations reported by Posten Norge, when handling subscribers that have had errors in their deliveries.

This document describes the setup for the new webservice (API).

 

URL PROD: postaldeviation.di.no/lookup

URL STG: https://postaldeviations.stg.media.aws.di.no/lookup

Method: POST

Key: x-api-key

Value: one-time-secret password provided from DI

Body, example:

Code Block
{
  "postalNumber" : 2662,
  "fromDate": "2022-12-24",
  "toDate": "2022-12-24",
  "subscriberId" : "888888",
 

...

postal number: the postal number that the customer is connected to. Must be a varchar field, with four digits (ex 0576)

...

fromdate: startdate of the deviation (for postal deviations, fromdate and todate are always the same), on the form ‘yyyy-mm-dd’

...

todate: stopdate of the deviation (for postal deviations, fromdate and todate are always the same), on the form ‘yyyy-mm-dd’

...

Aftonbladet uses a machine learning model to calculate the circulation of Aftonbladet for each retailer. In collaboration with Aftonbladet, DI has created an integration with their machine learning model. DI shares data the model uses to calculate the circulation, and then the model shares its results through the integration to DI.

An overview of the webservices used by Aftonbladet to send and receive retailer circulation data can be found in this document:

ML endpoints

Logging of novus-actions are logged to LsNovusLog and errors are logged to LsNovusErrorLog. Entries older than 2 days are truncated when the end endpoint is called.

Returns come from the Advantops/Voice Provider solution (Tidsam returns).