Rest API v2
Tracking
This article guides you through how to receive tracking updates for your shipments.
Read
/api/weship.tracking/get_weship_tracking_details
Read tracking information for a specific tracking number.
GET
curl -v -i -k -H "Content-Type: text/html" https://test.weship.at/api/weship.tracking/get_weship_tracking_details
-X PUT -H "access_token: XXXXXXXXXXXXXXXXX" -d '{"tracking_number":"WS123456789012345"}'
{
"code":200,
"data":{
"tracking_details":[
{
"tracking_description":"Package was delivered",
"tracking_stage":{
"description":"The package has been delivered successfully.",
"code":"DL",
"name":"Delivered",
"sequence":10
},
"location":"AT",
"zip":"8700",
"date":"2020-04-10 10:27:00",
"tracking_event":"Delivery"
},
{...}
],
"shipping_address":{
"city":"Graz",
"state":"Styria",
"street":"Musterweg 1",
"zip":"8010",
"phone":"0123 456789",
"mobile":"",
"country":"Austria",
"contact_name":"Max Mustermann",
"street2":"",
"email":"max.mustermann@gmail.com"
},
"customer_name":"Max Mustermann"
},
"success":true
}
Properties
weship.tracking
Properties related to the weship.tracking table.
| Field | Data type | Description | |
|---|---|---|---|
| customer_name | Name of the customer. | ||
| shipping_address |
Address of the customer, to which the package was sent to. weship.shipping.address |
||
| tracking_details |
List of all the tracking events that we received from the carrier. weship.tracking.details |
weship.tracking.details
Properties related to the weship.tracking.details table.
| Field | Data type | Description | |
|---|---|---|---|
| date | Date and time of when this event took place. | ||
| location | Shortcode of the country. | ||
| tracking_description | Detailed description of the tracking event. | ||
| tracking_event | Title of the tracking event. | ||
| zip | ZIP code of the delivery address. |
weship.shipping.address
Properties related to the weship.customer table.
| Field | Data type | Description | |
|---|---|---|---|
| city | Name of the city | ||
| contact_name | First and last name | ||
| country | Name of the country | ||
| Email address | |||
| phone | Phone or mobile number | ||
| mobile | Mobile number | ||
| state | Name of the state in the country | ||
| street | Name of the street, including house number | ||
| street2 | Additional address information | ||
| zip | ZIP code of the city |