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.
POST
- SubcontractorDispatch
- string
{ "operation": "CREATE", "payload": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "orders": [ … ], "custom_fields": {}, "resource_allocations": [ … ], "stops": [ … ] } }
Successful Response
Response
- SubcontractorDispatchResponse
- null
{ "errors": { "error_message": "The payload is invalid.", "error_type": "USER_INPUT_ERROR" } }