POST api/PContracts/InsertOrUpdatePContract?isOpen={isOpen}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Required |
Body Parameters
PContracts| Name | Description | Type | Additional information |
|---|---|---|---|
| ContractId | integer |
None. |
|
| ContractDate | date |
None. |
|
| CommodityId | integer |
None. |
|
| BrokerId | integer |
None. |
|
| Brokerage | decimal number |
None. |
|
| IsBrokeragePerBag | boolean |
None. |
|
| PartyId | integer |
None. |
|
| RateUnitId | integer |
None. |
|
| ContractMode | string |
None. |
|
| Quantity | integer |
None. |
|
| RatePerUnit | decimal number |
None. |
|
| IsWithBags | boolean |
None. |
|
| IsDeliveryInMill | boolean |
None. |
|
| DeliveryStartDate | date |
None. |
|
| DeliveryEndDate | date |
None. |
|
| ModeOfPayment | string |
None. |
|
| IsPaymentOnSite | boolean |
None. |
|
| OtherTerms | string |
None. |
|
| IsPosted | boolean |
None. |
|
| BagsDeduction | decimal number |
None. |
|
| OtherDeduction | decimal number |
None. |
|
| IsCompleted | boolean |
None. |
|
| DueDays | integer |
None. |
|
| SBUID | integer |
None. |
|
| IDSBU | integer |
None. |
|
| CurrencyId | integer |
None. |
|
| ContractModeEnabled | boolean |
None. |
|
| CropSeasonID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ContractId": 1,
"ContractDate": "2026-06-24T03:04:21.2065553-07:00",
"CommodityId": 3,
"BrokerId": 4,
"Brokerage": 5.0,
"IsBrokeragePerBag": true,
"PartyId": 7,
"RateUnitId": 8,
"ContractMode": "sample string 9",
"Quantity": 10,
"RatePerUnit": 11.0,
"IsWithBags": true,
"IsDeliveryInMill": true,
"DeliveryStartDate": "2026-06-24T03:04:21.2065553-07:00",
"DeliveryEndDate": "2026-06-24T03:04:21.2065553-07:00",
"ModeOfPayment": "sample string 16",
"IsPaymentOnSite": true,
"OtherTerms": "sample string 18",
"IsPosted": true,
"BagsDeduction": 20.0,
"OtherDeduction": 21.0,
"IsCompleted": true,
"DueDays": 23,
"SBUID": 24,
"IDSBU": 25,
"CurrencyId": 26,
"ContractModeEnabled": true,
"CropSeasonID": 28
}
application/xml, text/xml
Sample:
<PContracts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Objects"> <BagsDeduction>20</BagsDeduction> <BrokerId>4</BrokerId> <Brokerage>5</Brokerage> <CommodityId>3</CommodityId> <ContractDate>2026-06-24T03:04:21.2065553-07:00</ContractDate> <ContractId>1</ContractId> <ContractMode>sample string 9</ContractMode> <ContractModeEnabled>true</ContractModeEnabled> <CropSeasonID>28</CropSeasonID> <CurrencyId>26</CurrencyId> <DeliveryEndDate>2026-06-24T03:04:21.2065553-07:00</DeliveryEndDate> <DeliveryStartDate>2026-06-24T03:04:21.2065553-07:00</DeliveryStartDate> <DueDays>23</DueDays> <IDSBU>25</IDSBU> <IsBrokeragePerBag>true</IsBrokeragePerBag> <IsCompleted>true</IsCompleted> <IsDeliveryInMill>true</IsDeliveryInMill> <IsPaymentOnSite>true</IsPaymentOnSite> <IsPosted>true</IsPosted> <IsWithBags>true</IsWithBags> <ModeOfPayment>sample string 16</ModeOfPayment> <OtherDeduction>21</OtherDeduction> <OtherTerms>sample string 18</OtherTerms> <PartyId>7</PartyId> <Quantity>10</Quantity> <RatePerUnit>11</RatePerUnit> <RateUnitId>8</RateUnitId> <SBUID>24</SBUID> </PContracts>
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. |