...
The API provides a list of future distribution dates that have coverage for delivery or pickup coverage for of a product for on the specified address. The product are determined from the Freight Product freight product (freightProductId
). The remaining fields along with the customer name field will be used to lookup the address in the carrier system.
The coverage check is based on the coverage available from the carrier. We continuously receive updated information from the carrier, and therefore the delivery option result may vary with time
To determine coverage we also look at previous shipment to similar addresses and consumers, this help correct misspellings and find coverage.
Tip |
---|
Integration tips
|
Setup
Example | Description | |
---|---|---|
Username (see Authentication section) | wsfoobar | A valid username. |
Password (see Authentication section) | a-very-very-long-password | A password matching given username. |
shopId | 12345 | All bookings are The coverage check is made with respect to a given shop. |
freightProductId | 55 | An identifier for a valid freight product. |
...
Info |
---|
|
Request header
Field | Value |
---|---|
Content-Type | application/json |
Authorization | $SECRET_WS_TOKEN - jwt token from authentication |
Request query parameter
Field | Description | Example | Data type | Mandatory |
---|---|---|---|---|
limit | Defines how many days ahead it should look for coverage. Any value from 1-30, where 14 are the default limit if none is specified | 23 | Integer |
Request body
Field | Description | Example | Data type | Mandatory |
---|---|---|---|---|
shopId | The identifier of the shop that makes the request | 23 | Integer | |
freightProductId | The freight product that we want check the coverage of | 12 | Integer | |
customerName | Customer name | Ola Norrman | String | |
countryCode | Two letter country code of the address | NO | String | |
postalName | City name of the address | Oslo | String | |
zipCode | Zip code of the address | 0155 | String | |
address | Street name of the address | Akersgata 55A H0212 | String | |
co | Care of address of the address | Kari Norrman | String |
Field
Content-Type
application/json
Authorization
$SECRET_WS_TOKEN - jwt token from authentication
Curl request example
Expand | ||
---|---|---|
| ||
|
Response
The endpoint replies with a response object in JSON format, containing the following data
...
Expand | ||
---|---|---|
| ||
|
...
HTTP Status code | Text | Description |
---|---|---|
400 | Client or Validation Error | The request body/query string is not in the correct format. |
401 | Authentication Failure | Indicates that the Authorization header is either missing or incorrect. You can learn more about the Authorization header here. |
403 | Access denied | This indicates that the agent whose credentials were used in making this request was not authorized to perform this API call. It could be that you do not have access to the shop or transportsolution you provided in your request. If you believe this is a mistake, please reach out to your contact so it can be rectified. |
405 | Method not allowed | This API request used the wrong HTTP verb/method. For example a PUT request will result in this error. |
4xx | Client error | Generally receiving an error code that starts with 4 indicates that the client needs to change something. |
500 | Unexpected Server Error | Oops! This may indicates an error on our side. Please try again, if the error continues notify your contact person |
...
Expand | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||
Please check
|
...