POST api/Outbound/AssignOutboundBatchDriver?flag={flag}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| flag | integer |
Default value is 0 |
Body Parameters
OutboundBatchDriver| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
None. |
|
| Batches | Collection of OutboundBatchForDriverAssignment |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"Batches": [
{
"SupplierBusinessId": 1,
"ReceiverBusiness": "sample string 2",
"BatchId": "sample string 3",
"VehicleNo": "sample string 4",
"FreightNo": "sample string 5",
"DriverName": "sample string 6",
"DriverPhone": "sample string 7"
},
{
"SupplierBusinessId": 1,
"ReceiverBusiness": "sample string 2",
"BatchId": "sample string 3",
"VehicleNo": "sample string 4",
"FreightNo": "sample string 5",
"DriverName": "sample string 6",
"DriverPhone": "sample string 7"
}
]
}
application/xml, text/xml
Sample:
<OutboundBatchDriver xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model">
<Batches>
<OutboundBatchForDriverAssignment>
<BatchId>sample string 3</BatchId>
<DriverName>sample string 6</DriverName>
<DriverPhone>sample string 7</DriverPhone>
<FreightNo>sample string 5</FreightNo>
<ReceiverBusiness>sample string 2</ReceiverBusiness>
<SupplierBusinessId>1</SupplierBusinessId>
<VehicleNo>sample string 4</VehicleNo>
</OutboundBatchForDriverAssignment>
<OutboundBatchForDriverAssignment>
<BatchId>sample string 3</BatchId>
<DriverName>sample string 6</DriverName>
<DriverPhone>sample string 7</DriverPhone>
<FreightNo>sample string 5</FreightNo>
<ReceiverBusiness>sample string 2</ReceiverBusiness>
<SupplierBusinessId>1</SupplierBusinessId>
<VehicleNo>sample string 4</VehicleNo>
</OutboundBatchForDriverAssignment>
</Batches>
<UserId>1</UserId>
</OutboundBatchDriver>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VCAPIResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | string |
None. |
|
| dateTime | string |
None. |
|
| StatusCode | integer |
None. |
|
| ErrorMessage | string |
None. |
|
| Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Version": "1.0.0",
"dateTime": "2025/11/03 15:58:40",
"StatusCode": 1,
"ErrorMessage": "sample string 2",
"Result": {}
}
application/xml, text/xml
Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <ErrorMessage>sample string 2</ErrorMessage> <Result /> <StatusCode>1</StatusCode> </VCAPIResponse>