Endpoints꞉ Location
kirk bready edited this page Jul 11, 2023
·
1 revision
Endpoint | Verb | Paging | Description |
---|---|---|---|
/api/location | POST | returns location data for a given to and from address |
Returns location data, including satchels available and delivery SLA's (Economy, Priority) for a given to and from address
{
"conTypeId": 1,
"from": {
"streetAddress": "",
"locality": "",
"postalCode": "",
"country": ""
},
"to": {
"streetAddress": "",
"locality": "",
"postalCode": "",
"country": ""
}
}
ConTypeId - A ConTypeId
{
"data": {
"locationDetails": {
"errorMessage": null,
"locationDetailsKey": "",
"fromRF": "",
"toCountryId": 1,
"toRF": "",
"toZone": "",
"zoneUsedForPricing": false,
"toSubDepot": "",
"toZoneExcluded": false,
"satchels": [],
"slAs": []
}
}
}
locationDetailsKey A temporary cache key to be passed into Version 2 of the quote endpoint.