POST api/SalesContract/InsertUpdateSaleContracts?vUserID={vUserID}&IsOpen={IsOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vUserID | integer |
Required |
|
| IsOpen | boolean |
Required |
Body Parameters
SContracts| Name | Description | Type | Additional information |
|---|---|---|---|
| ContractId | integer |
None. |
|
| ContractDate | date |
None. |
|
| CommodityId | integer |
None. |
|
| CommodityClassID | integer |
None. |
|
| BrokerId | integer |
None. |
|
| Brokerage | decimal number |
None. |
|
| IsBrokeragePerBag | string |
None. |
|
| PartyId | integer |
None. |
|
| ModeOfPayment | string |
None. |
|
| ContractMode | string |
None. |
|
| vehicletype | integer |
None. |
|
| DeliveryStartDate | date |
None. |
|
| DeliveryEndDate | date |
None. |
|
| Rate | decimal number |
None. |
|
| Quantity | integer |
None. |
|
| GstRatio | decimal number |
None. |
|
| IncludeGst | boolean |
None. |
|
| OtherTerms | string |
None. |
|
| IsPosted | boolean |
None. |
|
| IsCompleted | boolean |
None. |
|
| DeliverTo | string |
None. |
|
| CropID | integer |
None. |
|
| CropName | string |
None. |
|
| CommodityName | string |
None. |
|
| PartyName | string |
None. |
|
| BrokerName | string |
None. |
|
| IsPercentage | boolean |
None. |
|
| IsPerBag | boolean |
None. |
|
| IsPerMound | boolean |
None. |
|
| IsPerVeh | boolean |
None. |
|
| IsPer100KG | boolean |
None. |
|
| HeapNo | integer |
None. |
|
| ListBody | Collection of SContractBody |
None. |
Request Formats
application/json, text/json
Sample:
{
"ContractId": 1,
"ContractDate": "2025-12-11T01:02:55.9599947-08:00",
"CommodityId": 3,
"CommodityClassID": 4,
"BrokerId": 5,
"Brokerage": 6.0,
"IsBrokeragePerBag": "sample string 7",
"PartyId": 8,
"ModeOfPayment": "sample string 9",
"ContractMode": "sample string 10",
"vehicletype": 11,
"DeliveryStartDate": "2025-12-11T01:02:55.9599947-08:00",
"DeliveryEndDate": "2025-12-11T01:02:55.9599947-08:00",
"Rate": 14.0,
"Quantity": 15,
"GstRatio": 16.0,
"IncludeGst": true,
"OtherTerms": "sample string 18",
"IsPosted": true,
"IsCompleted": true,
"DeliverTo": "sample string 21",
"CropID": 22,
"CropName": "sample string 23",
"CommodityName": "sample string 24",
"PartyName": "sample string 25",
"BrokerName": "sample string 26",
"IsPercentage": true,
"IsPerBag": true,
"IsPerMound": true,
"IsPerVeh": true,
"IsPer100KG": true,
"HeapNo": 32,
"ListBody": [
{
"BCondition": "sample string 1",
"SerialNo": 2,
"ContractId": 3,
"ContractMode": "sample string 4",
"CommodityId": 5,
"Quantity": 6,
"RatePerUnit": 7.0,
"BrokerageRate": 8.0
},
{
"BCondition": "sample string 1",
"SerialNo": 2,
"ContractId": 3,
"ContractMode": "sample string 4",
"CommodityId": 5,
"Quantity": 6,
"RatePerUnit": 7.0,
"BrokerageRate": 8.0
}
]
}
application/xml, text/xml
Sample:
<SContracts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RiceMillsERP_API.Models">
<BrokerId>5</BrokerId>
<BrokerName>sample string 26</BrokerName>
<Brokerage>6</Brokerage>
<CommodityClassID>4</CommodityClassID>
<CommodityId>3</CommodityId>
<CommodityName>sample string 24</CommodityName>
<ContractDate>2025-12-11T01:02:55.9599947-08:00</ContractDate>
<ContractId>1</ContractId>
<ContractMode>sample string 10</ContractMode>
<CropID>22</CropID>
<CropName>sample string 23</CropName>
<DeliverTo>sample string 21</DeliverTo>
<DeliveryEndDate>2025-12-11T01:02:55.9599947-08:00</DeliveryEndDate>
<DeliveryStartDate>2025-12-11T01:02:55.9599947-08:00</DeliveryStartDate>
<GstRatio>16</GstRatio>
<HeapNo>32</HeapNo>
<IncludeGst>true</IncludeGst>
<IsBrokeragePerBag>sample string 7</IsBrokeragePerBag>
<IsCompleted>true</IsCompleted>
<IsPer100KG>true</IsPer100KG>
<IsPerBag>true</IsPerBag>
<IsPerMound>true</IsPerMound>
<IsPerVeh>true</IsPerVeh>
<IsPercentage>true</IsPercentage>
<IsPosted>true</IsPosted>
<ListBody>
<SContractBody>
<BCondition>sample string 1</BCondition>
<BrokerageRate>8</BrokerageRate>
<CommodityId>5</CommodityId>
<ContractId>3</ContractId>
<ContractMode>sample string 4</ContractMode>
<Quantity>6</Quantity>
<RatePerUnit>7</RatePerUnit>
<SerialNo>2</SerialNo>
</SContractBody>
<SContractBody>
<BCondition>sample string 1</BCondition>
<BrokerageRate>8</BrokerageRate>
<CommodityId>5</CommodityId>
<ContractId>3</ContractId>
<ContractMode>sample string 4</ContractMode>
<Quantity>6</Quantity>
<RatePerUnit>7</RatePerUnit>
<SerialNo>2</SerialNo>
</SContractBody>
</ListBody>
<ModeOfPayment>sample string 9</ModeOfPayment>
<OtherTerms>sample string 18</OtherTerms>
<PartyId>8</PartyId>
<PartyName>sample string 25</PartyName>
<Quantity>15</Quantity>
<Rate>14</Rate>
<vehicletype>11</vehicletype>
</SContracts>
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. |