Required api role: not applicable (push/push)
Purpose: This interface allows an external party to integrate with 3rd party transport management systems for subcontracting.
The subcontractor dispatch uses a push/push model: Qargo pushes a dispatch payload to an external endpoint. The third party then updates Qargo using our webhook endpoint:
Subsequent updates or cancellations will also be sent via this webhook, using the same payload format. The dispatch format has the following structure:
The destination of this webhook can be a RESTful interface or file base protocol like SFTP
The status update endpoint can be used to receive information about the stops back to Qargo. Status update date-time values, including event_time, eta_start, and eta_end, must include a timezone offset such as Z or +02:00.
Upload a document to a specific stop on a subcontracted trip.
This webhook uses Basic Auth (webhook credentials), not the OAuth credentials used for the API. Contact integrations@qargo.com to request credentials.
| Parameter | Required | Description |
|---|---|---|
question_path_key | Yes | Maps the file to a document type in Qargo (e.g. CMR, POD, WEIGHT_NOTE) |
stop_id | Yes | The Qargo UUID of the stop to attach the document to |
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | MIME type of the file (e.g. application/pdf, image/jpeg) |
Content-Disposition | No | Provides the filename: attachment; filename="POD.pdf" |
The uploaded file's name in Qargo is determined by:
- If
Content-Dispositionincludes afilename— that value is used, combined with the question path key default. For example:filename="pod1234.pdf"with question path key defaultPOD.pdf→ stored aspod1234_POD.pdf. - If no
Content-Dispositionis provided — the default filename from the question path key configuration is used.
curl -X POST \
"https://api.qargo.com/v1/webhook/subco-document-upload\
?question_path_key=POD&stop_id=<stop_uuid>" \
-u "<webhook_client_id>:<webhook_secret_id>" \
-H "Content-Type: application/pdf" \
-H "Content-Disposition: attachment; filename=POD.pdf" \
--data-binary @/path/to/document.pdf- string (binary)
- object
- Array of any
- string
- integer
- number
- boolean
- null
"string"