API/Tracking
Fetching Job State
Get the current delivery state of a given job to build your own custom tracking page.
Endpoint
Returns all relevant completion state information of a given job.
Authentification
This endpoint requires authentification via a custom API key header.
The API key used must have the "Allow Public Track" permission enabled in the Logis settings.
Request Parameters
This endpoint accepts one query parameter in the URL: job_id
Example URL
GET /api/apikeys/track?job_id=job_uuid4_id
Success Response
The endpoint returns a 200 OK
status code, and a LOT of data.
Key Response Fields Explained
job
: Contains all details about the specific job being tracked.client
: Information about the end customer receiving the service/delivery.store
: Information about the Store Owner user (and their company) who manages this client.provider
: Information about the Logistics Provider.driver
: (Only present if job is routed) Information about the driver assigned to the route.route_status
: (Only present if job is routed) The current status of the entire route.route_date
: (Only present if job is routed) The scheduled start time of the route.jobs_before_you
: (Only present if job is routed) How many stops the driver needs to complete before arriving at this job. Useful for ETA estimations.distance_previous_job
/ time_previous_job: (Only present if job is routed and not the first stop) Estimated travel distance/time from the previous stop on the route to this job's location.driver_time_away
: (Only present if job status is STARTED) Estimated travel time for the driver from their current location to this job's address. This provides a real-time ETA (but needs to be refetched).
Error Responses
Status Code | Error Code / Reason | Description |
---|---|---|
400 Bad Request | Missing job_id | The job_id query parameter was not provided. |
401 Unauthorized | Missing LOGIS-API-KEY header | The required API key header was not included. |
403 Forbidden | Invalid/Inactive LOGIS-API-KEY | The provided API key is not valid or is inactive. |
403 Forbidden | Permission Denied (allow_public_track) | The API key used does not have permission for public tracking. |
404 Not Found | Job Not Found | No job exists with the provided job_id . |
429 Too Many Requests | Rate Limit Exceeded (Key or Global) | Either the specific API key's hourly limit or the user's global daily limit was exceeded. |