POST api/Bags/InsertBagGatePass?vUserID={vUserID}&IsOpen={IsOpen}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
vUserID

integer

Required

IsOpen

boolean

Required

Body Parameters

BagsGatePass
NameDescriptionTypeAdditional information
GatePassId

integer

None.

PartyID

integer

None.

GatePassDate

date

None.

VehicleNo

string

None.

DriverName

string

None.

BiltyNo

string

None.

Transporter

string

None.

Descriptoin

string

None.

GatepassType

string

None.

PartyName

string

None.

ListBody

Collection of BagsGatePassBody

None.

Request Formats

application/json, text/json

Sample:
{
  "GatePassId": 1,
  "PartyID": 2,
  "GatePassDate": "2025-12-11T01:02:51.762855-08:00",
  "VehicleNo": "sample string 4",
  "DriverName": "sample string 5",
  "BiltyNo": "sample string 6",
  "Transporter": "sample string 7",
  "Descriptoin": "sample string 8",
  "GatepassType": "sample string 9",
  "PartyName": "sample string 10",
  "ListBody": [
    {
      "SerialNo": 1,
      "GatePassId": 2,
      "BagTypeId": 3,
      "BagsClassID": 4,
      "Quantity": 5.0,
      "BagsType": "sample string 6",
      "BagsClass": "sample string 7"
    },
    {
      "SerialNo": 1,
      "GatePassId": 2,
      "BagTypeId": 3,
      "BagsClassID": 4,
      "Quantity": 5.0,
      "BagsType": "sample string 6",
      "BagsClass": "sample string 7"
    }
  ]
}

application/xml, text/xml

Sample:
<BagsGatePass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
  <BiltyNo>sample string 6</BiltyNo>
  <Descriptoin>sample string 8</Descriptoin>
  <DriverName>sample string 5</DriverName>
  <GatePassDate>2025-12-11T01:02:51.762855-08:00</GatePassDate>
  <GatePassId>1</GatePassId>
  <GatepassType>sample string 9</GatepassType>
  <ListBody>
    <BagsGatePassBody>
      <BagTypeId>3</BagTypeId>
      <BagsClass>sample string 7</BagsClass>
      <BagsClassID>4</BagsClassID>
      <BagsType>sample string 6</BagsType>
      <GatePassId>2</GatePassId>
      <Quantity>5</Quantity>
      <SerialNo>1</SerialNo>
    </BagsGatePassBody>
    <BagsGatePassBody>
      <BagTypeId>3</BagTypeId>
      <BagsClass>sample string 7</BagsClass>
      <BagsClassID>4</BagsClassID>
      <BagsType>sample string 6</BagsType>
      <GatePassId>2</GatePassId>
      <Quantity>5</Quantity>
      <SerialNo>1</SerialNo>
    </BagsGatePassBody>
  </ListBody>
  <PartyID>2</PartyID>
  <PartyName>sample string 10</PartyName>
  <Transporter>sample string 7</Transporter>
  <VehicleNo>sample string 4</VehicleNo>
</BagsGatePass>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.