POST api/Outbound/AssignOutboundBatchDriver?flag={flag}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
flag

integer

Default value is 0

Body Parameters

OutboundBatchDriver
NameDescriptionTypeAdditional 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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <UserId>1</UserId>
  <Batches>
    <OutboundBatchForDriverAssignment>
      <SupplierBusinessId>1</SupplierBusinessId>
      <ReceiverBusiness>sample string 2</ReceiverBusiness>
      <BatchId>sample string 3</BatchId>
      <VehicleNo>sample string 4</VehicleNo>
      <FreightNo>sample string 5</FreightNo>
      <DriverName>sample string 6</DriverName>
      <DriverPhone>sample string 7</DriverPhone>
    </OutboundBatchForDriverAssignment>
    <OutboundBatchForDriverAssignment>
      <SupplierBusinessId>1</SupplierBusinessId>
      <ReceiverBusiness>sample string 2</ReceiverBusiness>
      <BatchId>sample string 3</BatchId>
      <VehicleNo>sample string 4</VehicleNo>
      <FreightNo>sample string 5</FreightNo>
      <DriverName>sample string 6</DriverName>
      <DriverPhone>sample string 7</DriverPhone>
    </OutboundBatchForDriverAssignment>
  </Batches>
</OutboundBatchDriver>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

VCAPIResponse
NameDescriptionTypeAdditional 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/10/31 15:47:47",
  "StatusCode": 1,
  "ErrorMessage": "sample string 2",
  "Result": {}
}

application/xml, text/xml

Sample:
<VCAPIResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <StatusCode>1</StatusCode>
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result />
</VCAPIResponse>