Payload for sending a trip dispatch. In this case, we send the payload to an external endpoint for processing.
By default, we send our standard SubcontractorDispatch schema, but the body can also be a custom mapped format.
- https://api.qargo.comhttps://api.qargo.com/https://<external_subco_receiving_endpoint>
{ "operation": "CREATE", "payload": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "orders": [ … ], "custom_fields": {}, "resource_allocations": [ … ], "stops": [ … ] } }
Successful Response
Response
{ "errors": { "error_message": "The payload is invalid.", "error_type": "USER_INPUT_ERROR" } }