POST api/GPBeforeSale/InsertOrUpdate?isOpen={isOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Required |
Body Parameters
GatePassBeforeSale| Name | Description | Type | Additional information |
|---|---|---|---|
| GatePBSId | integer |
None. |
|
| GatePBSDate | date |
None. |
|
| PartyId | integer |
None. |
|
| VehicleNo | string |
None. |
|
| BiltyNo | string |
None. |
|
| Transporter | string |
None. |
|
| DriverName | string |
None. |
|
| VehicleType | string |
None. |
|
| GatePassNo | integer |
None. |
|
| SBUID | integer |
None. |
|
| IDSBU | integer |
None. |
|
| CurrencyId | integer |
None. |
|
| CommodityClassId | integer |
None. |
|
| BrokerId | integer |
None. |
|
| Brokerage | decimal number |
None. |
|
| IsBrokeragePerBag | boolean |
None. |
|
| CropSeasonID | integer |
None. |
|
| ListBody | Collection of GatePassBeforeSaleBody |
None. |
Request Formats
application/json, text/json
Sample:
{
"GatePBSId": 1,
"GatePBSDate": "2026-06-24T03:03:45.6465337-07:00",
"PartyId": 3,
"VehicleNo": "sample string 4",
"BiltyNo": "sample string 5",
"Transporter": "sample string 6",
"DriverName": "sample string 7",
"VehicleType": "sample string 8",
"GatePassNo": 9,
"SBUID": 10,
"IDSBU": 11,
"CurrencyId": 12,
"CommodityClassId": 13,
"BrokerId": 14,
"Brokerage": 15.0,
"IsBrokeragePerBag": true,
"CropSeasonID": 17,
"ListBody": [
{
"SerialNo": 1,
"GatePBSId": 2,
"CommodityId": 3,
"Qty": 4.0,
"BagTypeId": 5,
"BagsClassID": 6,
"GatePassNo": 7,
"CommodityClassID": 8,
"BagWeight": 9.0,
"TotalWeight": 10.0,
"CommodityClassName": "sample string 11",
"CommodityName": "sample string 12",
"BagsType": "sample string 13",
"BagsClass": "sample string 14"
},
{
"SerialNo": 1,
"GatePBSId": 2,
"CommodityId": 3,
"Qty": 4.0,
"BagTypeId": 5,
"BagsClassID": 6,
"GatePassNo": 7,
"CommodityClassID": 8,
"BagWeight": 9.0,
"TotalWeight": 10.0,
"CommodityClassName": "sample string 11",
"CommodityName": "sample string 12",
"BagsType": "sample string 13",
"BagsClass": "sample string 14"
}
]
}
application/xml, text/xml
Sample:
<GatePassBeforeSale xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Objects">
<BiltyNo>sample string 5</BiltyNo>
<BrokerId>14</BrokerId>
<Brokerage>15</Brokerage>
<CommodityClassId>13</CommodityClassId>
<CropSeasonID>17</CropSeasonID>
<CurrencyId>12</CurrencyId>
<DriverName>sample string 7</DriverName>
<GatePBSDate>2026-06-24T03:03:45.6465337-07:00</GatePBSDate>
<GatePBSId>1</GatePBSId>
<GatePassNo>9</GatePassNo>
<IDSBU>11</IDSBU>
<IsBrokeragePerBag>true</IsBrokeragePerBag>
<ListBody>
<GatePassBeforeSaleBody>
<BagTypeId>5</BagTypeId>
<BagWeight>9</BagWeight>
<BagsClass>sample string 14</BagsClass>
<BagsClassID>6</BagsClassID>
<BagsType>sample string 13</BagsType>
<CommodityClassID>8</CommodityClassID>
<CommodityClassName>sample string 11</CommodityClassName>
<CommodityId>3</CommodityId>
<CommodityName>sample string 12</CommodityName>
<GatePBSId>2</GatePBSId>
<GatePassNo>7</GatePassNo>
<Qty>4</Qty>
<SerialNo>1</SerialNo>
<TotalWeight>10</TotalWeight>
</GatePassBeforeSaleBody>
<GatePassBeforeSaleBody>
<BagTypeId>5</BagTypeId>
<BagWeight>9</BagWeight>
<BagsClass>sample string 14</BagsClass>
<BagsClassID>6</BagsClassID>
<BagsType>sample string 13</BagsType>
<CommodityClassID>8</CommodityClassID>
<CommodityClassName>sample string 11</CommodityClassName>
<CommodityId>3</CommodityId>
<CommodityName>sample string 12</CommodityName>
<GatePBSId>2</GatePBSId>
<GatePassNo>7</GatePassNo>
<Qty>4</Qty>
<SerialNo>1</SerialNo>
<TotalWeight>10</TotalWeight>
</GatePassBeforeSaleBody>
</ListBody>
<PartyId>3</PartyId>
<SBUID>10</SBUID>
<Transporter>sample string 6</Transporter>
<VehicleNo>sample string 4</VehicleNo>
<VehicleType>sample string 8</VehicleType>
</GatePassBeforeSale>
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. |