POST api/BagGatePass/InsertOrUpdate?isOpen={isOpen}&vUserID={vUserID}&isSms={isSms}&qtyT={qtyT}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isOpen

boolean

Required

vUserID

integer

Required

isSms

boolean

Default value is False

qtyT

string

Default value is

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.

SBUID

integer

None.

IDSBU

integer

None.

CropSeasonID

integer

None.

ListBody

Collection of BagsGatePassBody

None.

Request Formats

application/json, text/json

Sample:
{
  "GatePassId": 1,
  "PartyID": 2,
  "GatePassDate": "2026-06-24T04:25:48.1152875-07: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",
  "SBUID": 10,
  "IDSBU": 11,
  "CropSeasonID": 12,
  "ListBody": [
    {
      "SerialNo": 1,
      "GatePassId": 2,
      "BagTypeId": 3,
      "BagsClassID": 4,
      "Quantity": 5.0
    },
    {
      "SerialNo": 1,
      "GatePassId": 2,
      "BagTypeId": 3,
      "BagsClassID": 4,
      "Quantity": 5.0
    }
  ]
}

application/xml, text/xml

Sample:
<BagsGatePass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Objects">
  <BiltyNo>sample string 6</BiltyNo>
  <CropSeasonID>12</CropSeasonID>
  <Descriptoin>sample string 8</Descriptoin>
  <DriverName>sample string 5</DriverName>
  <GatePassDate>2026-06-24T04:25:48.1152875-07:00</GatePassDate>
  <GatePassId>1</GatePassId>
  <GatepassType>sample string 9</GatepassType>
  <IDSBU>11</IDSBU>
  <ListBody>
    <BagsGatePassBody>
      <BagTypeId>3</BagTypeId>
      <BagsClassID>4</BagsClassID>
      <GatePassId>2</GatePassId>
      <Quantity>5</Quantity>
      <SerialNo>1</SerialNo>
    </BagsGatePassBody>
    <BagsGatePassBody>
      <BagTypeId>3</BagTypeId>
      <BagsClassID>4</BagsClassID>
      <GatePassId>2</GatePassId>
      <Quantity>5</Quantity>
      <SerialNo>1</SerialNo>
    </BagsGatePassBody>
  </ListBody>
  <PartyID>2</PartyID>
  <SBUID>10</SBUID>
  <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.