Assign Orders to Vehicle
PATCH /tms/delivery-orders/assign-vehicle
Description
Assign delivery orders to a specific vehicle and driver.
Parameters
- countryCode (
string, header, required): The country code. - tenantId (
string, header, required): The tenant ID.
Request Body
- Media Type:
application/json
Example Value
{
"orderUuId": [
"string"
],
"driverUserId": "string",
"vehicleId": "string"
}
Responses
Success Response (200)
The Success Response (200) is returned when the orders are successfully assigned to the vehicle. This response indicates the success of the operation and provides additional details.
Response Fields
| Field | Type | Description |
|---|---|---|
| status | boolean | Indicates the success of the assignment request. |
| statusCode | integer | Numeric code representing the status of the response (e.g., 0 for success). |
| message | string | A message indicating the outcome of the operation. |
| data | object | Contains additional details about the assigned orders. |
| errors | array | An array of objects providing details about any errors encountered during the request. |
Example
{
"status": true,
"statusCode": 0,
"message": "string",
"data": {},
"errors": [
{
"message": "string",
"descriptiveMessage": "string"
}
]
}
Media Type
application/json: The response is in JSON format.
Error Responses
400 Invalid Reference Supplied
This response is returned when an invalid reference is supplied.
404 Resource Not Found
This response is returned when the specified resource is not found.
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /tms/delivery-orders/assign-vehicle \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!