POST api/SContract/InsertOrUpdate?isOpen={isOpen}&isSms={isSms}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Required |
|
| isSms | boolean |
Default value is False |
Body Parameters
SContracts| Name | Description | Type | Additional information |
|---|---|---|---|
| DueDays | integer |
None. |
|
| ContractId | integer |
None. |
|
| ContractDate | date |
None. |
|
| BrokerId | integer |
None. |
|
| Brokerage | decimal number |
None. |
|
| PartyId | integer |
None. |
|
| ModeOfPayment | string |
None. |
|
| DeliveryStartDate | date |
None. |
|
| DeliveryEndDate | date |
None. |
|
| OtherTerms | string |
None. |
|
| IsPosted | boolean |
None. |
|
| IsCompleted | boolean |
None. |
|
| SBUID | integer |
None. |
|
| IDSBU | integer |
None. |
|
| CurrencyId | integer |
None. |
|
| CropSeasonID | integer |
None. |
|
| ListBody | Collection of SContractBody |
None. |
Request Formats
application/json, text/json
Sample:
{
"DueDays": 1,
"ContractId": 2,
"ContractDate": "2026-06-24T03:05:37.6529297-07:00",
"BrokerId": 4,
"Brokerage": 5.0,
"PartyId": 6,
"ModeOfPayment": "sample string 7",
"DeliveryStartDate": "2026-06-24T03:05:37.6529297-07:00",
"DeliveryEndDate": "2026-06-24T03:05:37.6529297-07:00",
"OtherTerms": "sample string 10",
"IsPosted": true,
"IsCompleted": true,
"SBUID": 13,
"IDSBU": 14,
"CurrencyId": 15,
"CropSeasonID": 16,
"ListBody": [
{
"BCondition": "sample string 1",
"SerialNo": 2,
"ContractId": 3,
"ContractMode": "sample string 4",
"CommodityId": 5,
"Quantity": 6,
"RatePerUnit": 7.0,
"BrokerageRate": 8.0,
"BagTypeID": 9
},
{
"BCondition": "sample string 1",
"SerialNo": 2,
"ContractId": 3,
"ContractMode": "sample string 4",
"CommodityId": 5,
"Quantity": 6,
"RatePerUnit": 7.0,
"BrokerageRate": 8.0,
"BagTypeID": 9
}
]
}
application/xml, text/xml
Sample:
<SContracts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Objects">
<BrokerId>4</BrokerId>
<Brokerage>5</Brokerage>
<ContractDate>2026-06-24T03:05:37.6529297-07:00</ContractDate>
<ContractId>2</ContractId>
<CropSeasonID>16</CropSeasonID>
<CurrencyId>15</CurrencyId>
<DeliveryEndDate>2026-06-24T03:05:37.6529297-07:00</DeliveryEndDate>
<DeliveryStartDate>2026-06-24T03:05:37.6529297-07:00</DeliveryStartDate>
<DueDays>1</DueDays>
<IDSBU>14</IDSBU>
<IsCompleted>true</IsCompleted>
<IsPosted>true</IsPosted>
<ListBody>
<SContractBody>
<BCondition>sample string 1</BCondition>
<BagTypeID>9</BagTypeID>
<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>
<BagTypeID>9</BagTypeID>
<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 7</ModeOfPayment>
<OtherTerms>sample string 10</OtherTerms>
<PartyId>6</PartyId>
<SBUID>13</SBUID>
</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. |