POST api/GatePass/InsertOrUpdate?isOpen={isOpen}&vUserID={vUserID}&isSms={isSms}&qtyT={qtyT}&partyName={partyName}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Required |
|
| vUserID | integer |
Required |
|
| isSms | boolean |
Default value is False |
|
| qtyT | string |
Default value is |
|
| partyName | string |
Default value is |
Body Parameters
GatePass| Name | Description | Type | Additional information |
|---|---|---|---|
| GatePassId | integer |
None. |
|
| SalesId | integer |
None. |
|
| GatePassDate | date |
None. |
|
| VehicleNo | string |
None. |
|
| DriverName | string |
None. |
|
| BiltyNo | string |
None. |
|
| Transporter | string |
None. |
|
| Descriptoin | string |
None. |
|
| GrossWeight | decimal number |
None. |
|
| TareWeight | decimal number |
None. |
|
| NetWeight | decimal number |
None. |
|
| Finalized | boolean |
None. |
|
| GatePBSId | integer |
None. |
|
| GatePBSDate | date |
None. |
|
| PartyId | integer |
None. |
|
| Weighbridge | boolean |
None. |
|
| Deduction | decimal number |
None. |
|
| SBUID | integer |
None. |
|
| IDSBU | integer |
None. |
|
| IsAutoGross | string |
None. |
|
| IsAutoTare | string |
None. |
|
| IsBothScale | boolean |
None. |
|
| IsScale1 | boolean |
None. |
|
| IsAuto | boolean |
None. |
|
| CropSeasonID | integer |
None. |
|
| ListBody | Collection of GatePassBody |
None. |
Request Formats
application/json, text/json
Sample:
{
"GatePassId": 1,
"SalesId": 1,
"GatePassDate": "2026-06-24T03:11:11.8016901-07:00",
"VehicleNo": "sample string 3",
"DriverName": "sample string 4",
"BiltyNo": "sample string 5",
"Transporter": "sample string 6",
"Descriptoin": "sample string 7",
"GrossWeight": 8.0,
"TareWeight": 9.0,
"NetWeight": 10.0,
"Finalized": true,
"GatePBSId": 1,
"GatePBSDate": "2026-06-24T03:11:11.8016901-07:00",
"PartyId": 1,
"Weighbridge": true,
"Deduction": 14.0,
"SBUID": 15,
"IDSBU": 16,
"IsAutoGross": "sample string 17",
"IsAutoTare": "sample string 18",
"IsBothScale": true,
"IsScale1": true,
"IsAuto": true,
"CropSeasonID": 22,
"ListBody": [
{
"SerialNo": 1,
"GatePassId": 2,
"CommodityId": 3,
"BagTypeId": 4,
"BagsClassID": 5,
"SalesId": 6,
"BagWeight": 7.0,
"NoOfBags": 8,
"TotalWeight": 9.0,
"CommodityName": "sample string 10",
"BagsType": "sample string 11",
"BagsClass": "sample string 12"
},
{
"SerialNo": 1,
"GatePassId": 2,
"CommodityId": 3,
"BagTypeId": 4,
"BagsClassID": 5,
"SalesId": 6,
"BagWeight": 7.0,
"NoOfBags": 8,
"TotalWeight": 9.0,
"CommodityName": "sample string 10",
"BagsType": "sample string 11",
"BagsClass": "sample string 12"
}
]
}
application/xml, text/xml
Sample:
<GatePass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Objects">
<BiltyNo>sample string 5</BiltyNo>
<CropSeasonID>22</CropSeasonID>
<Deduction>14</Deduction>
<Descriptoin>sample string 7</Descriptoin>
<DriverName>sample string 4</DriverName>
<Finalized>true</Finalized>
<GatePBSDate>2026-06-24T03:11:11.8016901-07:00</GatePBSDate>
<GatePBSId>1</GatePBSId>
<GatePassDate>2026-06-24T03:11:11.8016901-07:00</GatePassDate>
<GatePassId>1</GatePassId>
<GrossWeight>8</GrossWeight>
<IDSBU>16</IDSBU>
<IsAuto>true</IsAuto>
<IsAutoGross>sample string 17</IsAutoGross>
<IsAutoTare>sample string 18</IsAutoTare>
<IsBothScale>true</IsBothScale>
<IsScale1>true</IsScale1>
<ListBody>
<GatePassBody>
<BagTypeId>4</BagTypeId>
<BagWeight>7</BagWeight>
<BagsClass>sample string 12</BagsClass>
<BagsClassID>5</BagsClassID>
<BagsType>sample string 11</BagsType>
<CommodityId>3</CommodityId>
<CommodityName>sample string 10</CommodityName>
<GatePassId>2</GatePassId>
<NoOfBags>8</NoOfBags>
<SalesId>6</SalesId>
<SerialNo>1</SerialNo>
<TotalWeight>9</TotalWeight>
</GatePassBody>
<GatePassBody>
<BagTypeId>4</BagTypeId>
<BagWeight>7</BagWeight>
<BagsClass>sample string 12</BagsClass>
<BagsClassID>5</BagsClassID>
<BagsType>sample string 11</BagsType>
<CommodityId>3</CommodityId>
<CommodityName>sample string 10</CommodityName>
<GatePassId>2</GatePassId>
<NoOfBags>8</NoOfBags>
<SalesId>6</SalesId>
<SerialNo>1</SerialNo>
<TotalWeight>9</TotalWeight>
</GatePassBody>
</ListBody>
<NetWeight>10</NetWeight>
<PartyId>1</PartyId>
<SBUID>15</SBUID>
<SalesId>1</SalesId>
<TareWeight>9</TareWeight>
<Transporter>sample string 6</Transporter>
<VehicleNo>sample string 3</VehicleNo>
<Weighbridge>true</Weighbridge>
</GatePass>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |