The purpose of this API is to registrere an event to a parcel. An event is information about something happening to the specific parcel, it can be a status update or information about consumer communications.
Content
Table of Contents | ||
---|---|---|
|
...
Info |
---|
|
Request header
Key | Value |
---|---|
Content-Type | application/json |
...
Name | Type | Example | Max Length | Mandatory | Description |
---|---|---|---|---|---|
trackingReference | string | (00)370724760010119754 | 35 | Tracking reference for the item, typically a SSCC gs1 code. | |
eventTime | string | 2020-01-31T00:01:00.000+01:00 | n/a | Time of the event registered in originating system. Datetime format ISO-8601 : yyyy-MM-ddTHH:mm:ss+HH:mm | |
lat | double | 59.911096 | 9 |
| Latitude for the location of the event |
lon | double | 10.752457 | 9 |
| Longitude for the location of the event |
locationContext | string | Osloveien 14, 0288 Oslo | 255 |
| Address or description of the location/ context of the event. This is typically show to the consumer directly so we recommend sharing a general location, e.g. postal name. |
locationContextId | string | 34567 | 10 |
| Unique identification of the locationContext |
eventType | string | 001 | n/a | Identifier for what has happened to the event groupparcel, see list of possible event here (Same as the list of possible events returned in the Event log API and push service). | |
communicationChannel | string | SMS | n/a |
| Communication channel only used for event types within event group "communication". ComChannelTypes in use:
|
message | string | 255 |
| Optional message from the system registering the event |
...
HTTP Status code | Description |
---|---|
200 | Event was successfully registered |
Examples
Code Block |
---|
Error handling
API requests that result in errors will return an appropriate HTTP status code to help you identify the type of error. You can use the table below to understand what each code means. og search online with the HTTP status code. The HTTP error keys used are based on the standard, and therefore available online (Tips to search “HTTP code XXX”)
...