Getting Delivery Code.
Allow your clients to retrieve their delivery code directly from your service.
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 query parameters in the url. Both parameters are mandatory.
Parameter | Type | Required | Description |
---|---|---|---|
job_id | string | Yes | The UUID of the job for which the code is requested. |
review_key | string | Yes | The unique UUID review key associated with the job, used for client verification. |
The review_key
acts as a secure token to verify that the request likely originates from the intended recipient (or a system acting on their behalf). This key is usually sent to the client via SMS or email through Logis' notification system (e.g., in the public tracking link). You can retrieve the review_key
for a specific job using the Fetch Job Track endpoint.
Example URL
GET /api/apikeys/get_delivery_code?job_id=job_uuid4_id&review_key=review_uuid4_key
Success Response
The endpoint returns a 200 OK
status code, and a LOT of data.
Error responses
Status Code | Error Code / Reason | Description |
---|---|---|
400 Bad Request | Missing Parameters (job_id, review_key) | One or both of the required query parameters were missing. |
400 Bad Request | Invalid review_key format | The provided review_key was not a valid UUID format. |
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_delivery_code) | The API key used does not have permission to retrieve delivery codes. |
404 Not Found | Invalid job_id or review_key | No job was found matching the provided job_id and review_key combination. |
412 Precondition Failed | Delivery Not Code Secured | The specific job requested is either not configured for secure code delivery, or no code exists. |
429 Too Many Requests | Rate Limit Exceeded (Key or Global) | The API key's hourly limit or the user's global daily limit was exceeded. |