Get delivery tracking
GET
/track
const url = 'https://example.com/track?ref=7K3M9-QWXZ2&postcode=KT3%204BP';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/track?ref=7K3M9-QWXZ2&postcode=KT3%204BP'Deliberately unauthenticated: a customer opens this from the link in their email. The tracking reference and the postcode of the delivery address must both match. Returns the day, a two-hour window once the round has a departure time, where the drop sits on the round while the van is out, and what the customer has asked to be done if nobody is in. Nothing about anybody else.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”ref
required
string
Example
7K3M9-QWXZ2postcode
required
string
Example
KT3 4BPResponses
Section titled “Responses”Where the order is
Media typeapplication/json
object
ref
required
string
business
required
string
fulfilment
required
string
postcode
required
string | null
items
required
Array<string>
status
required
string
day
required
string | null format: date
expected
required
object
from
required
string format: date
to
required
string format: date
window
required
object
from
required
string
to
required
string
position
required
object
yours
required
integer
total
required
integer
driverOn
required
integer | null
deliveredAt
required
string | null format: date-time
location
required
object
latitude
required
number
longitude
required
number
van
required
object
latitude
required
number
longitude
required
number
seenAt
required
string format: date-time
leave
required
object
instruction
required
string | null
detail
required
string | null
canSaveToAddress
required
boolean
Example
{ "ref": "7K3M9-QWXZ2", "fulfilment": "delivery", "items": [ "2 × 19kg propane" ], "status": "awaiting_payment", "window": { "from": "07:30", "to": "07:30" }, "leave": { "instruction": "none" }}No order with that reference at that postcode
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}Too many attempts from one place
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}