...
Make sure you have the following information at hand before proceeding.
example | Comment | |
apiKey | wnfewnee(hw-ahoce | The key is provided when signing up for the service at DI Address Helper |
customerSystem | STORE | Optional, used to receive possible distribution dates - this value is obtained from your contact person |
product | PAKK | Optional, used to receive possible distribution dates - this value is obtained from your contact person |
Info |
---|
Most clients can use our supplied frontend, you You only need this if you want to create your own frontend-implementation. |
Environments / Endpoints
TEST |
| ||
---|---|---|---|
PRODUCTION |
|
Authentication
For this API the combination of referer
and apiKey
is used as authentication.
The apiKey provided when signing up for the service at DI Address Helper. The e-mail registered when signing up is responsible for approving domains used as referer
.
...
Note |
---|
|
Request Headers
Key | Value example | Comment |
---|---|---|
referer | https://www.di.no | The value should specify the address/URI of the webpage that linked to the resource being requested. Mandatory. NOTE: Must include schema (http/https) |
Request body
Take a look at the examples to see how the requests and responses may look.
...
Step 1 - Get Street Collections
|
|
---|
Returns a list of the streets that matches the streetName and countryCode. Note: street names may be filtered by city. Separate street name and city by a comma, i.e. "streetName,city"
...
Step 2 - Get Street Numbers for Collection
|
|
---|
Returns the street numbers that are related to the streetIds provided in the request (ids are comma-delimited). The query parameter, streetNumber, can be used to filter the street numbers.
Expand | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||
Request Query Parameters
Response
House types: (E)nebolig - detached house Example address with duplicateNumberAndEntrance: Akersgata 45 (houseType B and F) |
Step 3 - Get Floors
|
|
---|
Returns the floors available at a deliveryPointId
...
Step 4 - Get Households on Floor
|
|
---|
Returns the households on a given address and floor number.
...
Note |
---|
|
|
|
---|
Used to determine the distribution support for a given delivery point.
...
Step 6 - Distribution Dates
Note |
---|
|
|
|
---|
Gives a list of available distribution dates, independent of address. Note: if the date and delivery address (deliveryPointId) is determined, the distribution support should be used to confirm the date.
...
Expand | |||||
---|---|---|---|---|---|
| |||||
|
Error response
errorKey | Solution |
---|---|
Unknown/blocked domain for given API-key. Get a key at https://www.di.no/addresshelper/ | Approve domain from link sent to email registered for API Key |