POST api/Purchases/InsertPurArrivals?vUserID={vUserID}&IsOpen={IsOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vUserID | integer |
Required |
|
| IsOpen | boolean |
Required |
Body Parameters
Arrivals| Name | Description | Type | Additional information |
|---|---|---|---|
| HeapID | integer |
None. |
|
| ArrivalID | integer |
None. |
|
| ArrivalDate | date |
None. |
|
| ContractID | integer |
None. |
|
| SellerID | integer |
None. |
|
| CommodityID | integer |
None. |
|
| BuiltyNo | string |
None. |
|
| VehicleNo | string |
None. |
|
| DriverName | string |
None. |
|
| GrossWeight | decimal number |
None. |
|
| GrossWeightTime | date |
None. |
|
| TareWeight | decimal number |
None. |
|
| TareWeightTime | date |
None. |
|
| OtherDeduction | decimal number |
None. |
|
| TotalBagDeduction | decimal number |
None. |
|
| NetWeight | decimal number |
None. |
|
| Remarks | string |
None. |
|
| ManualWeight | boolean |
None. |
|
| Finalized | boolean |
None. |
|
| IsPosted | boolean |
None. |
|
| cropid | integer |
None. |
|
| selector | string |
None. |
|
| careof | string |
None. |
|
| Vehicletype | integer |
None. |
|
| HeapNo | string |
None. |
|
| DeductionPerMOund | decimal number |
None. |
|
| Quality | string |
None. |
|
| BagsReceiveID | integer |
None. |
|
| PartyName | string |
None. |
|
| CropName | string |
None. |
|
| CommodityName | string |
None. |
|
| ContractMode | string |
None. |
|
| RemainingBags | string |
None. |
|
| RemainingWeight | string |
None. |
|
| Mounds | string |
None. |
|
| LotNo | string |
None. |
|
| ListBody | Collection of ArrivalBody |
None. |
|
| ListBagRec | Collection of BagsReceived |
None. |
Request Formats
application/json, text/json
Sample:
{
"HeapID": 1,
"ArrivalID": 2,
"ArrivalDate": "2025-12-11T01:02:38.7900876-08:00",
"ContractID": 4,
"SellerID": 5,
"CommodityID": 6,
"BuiltyNo": "sample string 7",
"VehicleNo": "sample string 8",
"DriverName": "sample string 9",
"GrossWeight": 10.0,
"GrossWeightTime": "2025-12-11T01:02:38.7900876-08:00",
"TareWeight": 12.0,
"TareWeightTime": "2025-12-11T01:02:38.7900876-08:00",
"OtherDeduction": 14.0,
"TotalBagDeduction": 15.0,
"NetWeight": 16.0,
"Remarks": "sample string 17",
"ManualWeight": true,
"Finalized": true,
"IsPosted": true,
"cropid": 21,
"selector": "sample string 22",
"careof": "sample string 23",
"Vehicletype": 24,
"HeapNo": "sample string 25",
"DeductionPerMOund": 26.0,
"Quality": "sample string 27",
"BagsReceiveID": 28,
"PartyName": "sample string 29",
"CropName": "sample string 30",
"CommodityName": "sample string 31",
"ContractMode": "sample string 32",
"RemainingBags": "sample string 33",
"RemainingWeight": "sample string 34",
"Mounds": "sample string 35",
"LotNo": "sample string 36",
"ListBody": [
{
"SerialNo": 1,
"ArrivalID": 2,
"BagsTypeID": 3,
"BagsClassID": 4,
"Quantity": 5,
"PerBagDeduct": 6.0,
"TotalDeduct": 7.0,
"GowdownID": 8,
"Range": 9.0,
"Condition": "sample string 10",
"PurVal": 11.0,
"BagReceived": 12.0,
"DamageRange": 13.0,
"DamageCondition": "sample string 14",
"DamagePurValue": 15.0,
"BagsType": "sample string 16",
"BagsClass": "sample string 17",
"GodownTitle": "sample string 18"
},
{
"SerialNo": 1,
"ArrivalID": 2,
"BagsTypeID": 3,
"BagsClassID": 4,
"Quantity": 5,
"PerBagDeduct": 6.0,
"TotalDeduct": 7.0,
"GowdownID": 8,
"Range": 9.0,
"Condition": "sample string 10",
"PurVal": 11.0,
"BagReceived": 12.0,
"DamageRange": 13.0,
"DamageCondition": "sample string 14",
"DamagePurValue": 15.0,
"BagsType": "sample string 16",
"BagsClass": "sample string 17",
"GodownTitle": "sample string 18"
}
],
"ListBagRec": [
{
"manualNo": "sample string 1",
"BagsReceiveID": 2,
"ReceiveDate": "2025-12-11T01:02:38.7900876-08:00",
"PartyID": 4,
"TotalQty": 5,
"IsPosted": true,
"Narration": "sample string 7",
"PartyName": "sample string 8",
"ListBody": [
{
"SerialNo": 1,
"BagsReceivedID": 2,
"BagsTypeID": 3,
"ClassID": 4,
"Quantity": 5,
"Cost": 6.0,
"GowdownID": 7,
"BagsType": "sample string 8",
"BagsClass": "sample string 9",
"GodownTitle": "sample string 10"
},
{
"SerialNo": 1,
"BagsReceivedID": 2,
"BagsTypeID": 3,
"ClassID": 4,
"Quantity": 5,
"Cost": 6.0,
"GowdownID": 7,
"BagsType": "sample string 8",
"BagsClass": "sample string 9",
"GodownTitle": "sample string 10"
}
]
},
{
"manualNo": "sample string 1",
"BagsReceiveID": 2,
"ReceiveDate": "2025-12-11T01:02:38.7900876-08:00",
"PartyID": 4,
"TotalQty": 5,
"IsPosted": true,
"Narration": "sample string 7",
"PartyName": "sample string 8",
"ListBody": [
{
"SerialNo": 1,
"BagsReceivedID": 2,
"BagsTypeID": 3,
"ClassID": 4,
"Quantity": 5,
"Cost": 6.0,
"GowdownID": 7,
"BagsType": "sample string 8",
"BagsClass": "sample string 9",
"GodownTitle": "sample string 10"
},
{
"SerialNo": 1,
"BagsReceivedID": 2,
"BagsTypeID": 3,
"ClassID": 4,
"Quantity": 5,
"Cost": 6.0,
"GowdownID": 7,
"BagsType": "sample string 8",
"BagsClass": "sample string 9",
"GodownTitle": "sample string 10"
}
]
}
]
}
application/xml, text/xml
Sample:
<Arrivals xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
<ArrivalDate>2025-12-11T01:02:38.7900876-08:00</ArrivalDate>
<ArrivalID>2</ArrivalID>
<BagsReceiveID>28</BagsReceiveID>
<BuiltyNo>sample string 7</BuiltyNo>
<CommodityID>6</CommodityID>
<CommodityName>sample string 31</CommodityName>
<ContractID>4</ContractID>
<ContractMode>sample string 32</ContractMode>
<CropName>sample string 30</CropName>
<DeductionPerMOund>26</DeductionPerMOund>
<DriverName>sample string 9</DriverName>
<Finalized>true</Finalized>
<GrossWeight>10</GrossWeight>
<GrossWeightTime>2025-12-11T01:02:38.7900876-08:00</GrossWeightTime>
<HeapID>1</HeapID>
<HeapNo>sample string 25</HeapNo>
<IsPosted>true</IsPosted>
<ListBagRec>
<BagsReceived>
<BagsReceiveID>2</BagsReceiveID>
<IsPosted>true</IsPosted>
<ListBody>
<BagsReceivedBody>
<BagsClass>sample string 9</BagsClass>
<BagsReceivedID>2</BagsReceivedID>
<BagsType>sample string 8</BagsType>
<BagsTypeID>3</BagsTypeID>
<ClassID>4</ClassID>
<Cost>6</Cost>
<GodownTitle>sample string 10</GodownTitle>
<GowdownID>7</GowdownID>
<Quantity>5</Quantity>
<SerialNo>1</SerialNo>
</BagsReceivedBody>
<BagsReceivedBody>
<BagsClass>sample string 9</BagsClass>
<BagsReceivedID>2</BagsReceivedID>
<BagsType>sample string 8</BagsType>
<BagsTypeID>3</BagsTypeID>
<ClassID>4</ClassID>
<Cost>6</Cost>
<GodownTitle>sample string 10</GodownTitle>
<GowdownID>7</GowdownID>
<Quantity>5</Quantity>
<SerialNo>1</SerialNo>
</BagsReceivedBody>
</ListBody>
<Narration>sample string 7</Narration>
<PartyID>4</PartyID>
<PartyName>sample string 8</PartyName>
<ReceiveDate>2025-12-11T01:02:38.7900876-08:00</ReceiveDate>
<TotalQty>5</TotalQty>
<manualNo>sample string 1</manualNo>
</BagsReceived>
<BagsReceived>
<BagsReceiveID>2</BagsReceiveID>
<IsPosted>true</IsPosted>
<ListBody>
<BagsReceivedBody>
<BagsClass>sample string 9</BagsClass>
<BagsReceivedID>2</BagsReceivedID>
<BagsType>sample string 8</BagsType>
<BagsTypeID>3</BagsTypeID>
<ClassID>4</ClassID>
<Cost>6</Cost>
<GodownTitle>sample string 10</GodownTitle>
<GowdownID>7</GowdownID>
<Quantity>5</Quantity>
<SerialNo>1</SerialNo>
</BagsReceivedBody>
<BagsReceivedBody>
<BagsClass>sample string 9</BagsClass>
<BagsReceivedID>2</BagsReceivedID>
<BagsType>sample string 8</BagsType>
<BagsTypeID>3</BagsTypeID>
<ClassID>4</ClassID>
<Cost>6</Cost>
<GodownTitle>sample string 10</GodownTitle>
<GowdownID>7</GowdownID>
<Quantity>5</Quantity>
<SerialNo>1</SerialNo>
</BagsReceivedBody>
</ListBody>
<Narration>sample string 7</Narration>
<PartyID>4</PartyID>
<PartyName>sample string 8</PartyName>
<ReceiveDate>2025-12-11T01:02:38.7900876-08:00</ReceiveDate>
<TotalQty>5</TotalQty>
<manualNo>sample string 1</manualNo>
</BagsReceived>
</ListBagRec>
<ListBody>
<ArrivalBody>
<ArrivalID>2</ArrivalID>
<BagReceived>12</BagReceived>
<BagsClass>sample string 17</BagsClass>
<BagsClassID>4</BagsClassID>
<BagsType>sample string 16</BagsType>
<BagsTypeID>3</BagsTypeID>
<Condition>sample string 10</Condition>
<DamageCondition>sample string 14</DamageCondition>
<DamagePurValue>15</DamagePurValue>
<DamageRange>13</DamageRange>
<GodownTitle>sample string 18</GodownTitle>
<GowdownID>8</GowdownID>
<PerBagDeduct>6</PerBagDeduct>
<PurVal>11</PurVal>
<Quantity>5</Quantity>
<Range>9</Range>
<SerialNo>1</SerialNo>
<TotalDeduct>7</TotalDeduct>
</ArrivalBody>
<ArrivalBody>
<ArrivalID>2</ArrivalID>
<BagReceived>12</BagReceived>
<BagsClass>sample string 17</BagsClass>
<BagsClassID>4</BagsClassID>
<BagsType>sample string 16</BagsType>
<BagsTypeID>3</BagsTypeID>
<Condition>sample string 10</Condition>
<DamageCondition>sample string 14</DamageCondition>
<DamagePurValue>15</DamagePurValue>
<DamageRange>13</DamageRange>
<GodownTitle>sample string 18</GodownTitle>
<GowdownID>8</GowdownID>
<PerBagDeduct>6</PerBagDeduct>
<PurVal>11</PurVal>
<Quantity>5</Quantity>
<Range>9</Range>
<SerialNo>1</SerialNo>
<TotalDeduct>7</TotalDeduct>
</ArrivalBody>
</ListBody>
<LotNo>sample string 36</LotNo>
<ManualWeight>true</ManualWeight>
<Mounds>sample string 35</Mounds>
<NetWeight>16</NetWeight>
<OtherDeduction>14</OtherDeduction>
<PartyName>sample string 29</PartyName>
<Quality>sample string 27</Quality>
<RemainingBags>sample string 33</RemainingBags>
<RemainingWeight>sample string 34</RemainingWeight>
<Remarks>sample string 17</Remarks>
<SellerID>5</SellerID>
<TareWeight>12</TareWeight>
<TareWeightTime>2025-12-11T01:02:38.7900876-08:00</TareWeightTime>
<TotalBagDeduction>15</TotalBagDeduction>
<VehicleNo>sample string 8</VehicleNo>
<Vehicletype>24</Vehicletype>
<careof>sample string 23</careof>
<cropid>21</cropid>
<selector>sample string 22</selector>
</Arrivals>
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. |