POST PurchaseContract/CreatePurchaseContractAmendment
Create a purchase contract amendment
Request Information
URI Parameters
Body Parameters
A new contract amendment shape
ClsGrPurConAmendAdd| Name | Description | Type | Additional Information |
|---|---|---|---|
| PurchaseContractGUID |
Guid of the contract - will be used to look up the contract |
globally unique identifier |
Required |
| AmendmentDate | string |
Required Data type: DateTime Format must be MM/dd/yyyy |
|
| ContractSigned | boolean | ||
| AgvanceUserForBuyerSignature |
The User ID that the signature will be pulled from |
string | |
| BuyerSignatureDateTimeSignedUtc |
The date and time the buyer's signature was captured in UTC (Only used with a valid AgvanceUserIdToAssignBuyerSignatureFrom set) |
date | |
| BuyerSignatureDateSignedToPrint |
The date the buyer's signature was applied to the contract (Only used with a valid AgvanceUserIdToAssignBuyerSignatureFrom set) |
date | |
| GrPurConAmendDt |
Deduction and change information object |
Collection of ClsGrPurConAmendDtAdd |
Required List cannot be empty |
Request Formats
application/json, text/json
{
"PurchaseContractGUID": "f4268875-bc2e-4ff5-897c-35c7e6503d42",
"AmendmentDate": "sample string 1",
"ContractSigned": true,
"AgvanceUserForBuyerSignature": "sample string 3",
"BuyerSignatureDateTimeSignedUtc": "2025-11-28T17:57:51.7500077+00:00",
"BuyerSignatureDateSignedToPrint": "2025-11-28T17:57:51.7515233+00:00",
"GrPurConAmendDt": [
{
"TypeString": "",
"SettDedsGuid": "b6f7efdc-ca86-4782-9bfe-b6787390d131",
"Rate": "sample string 1",
"Description": "sample string 2",
"Comment": "sample string 3",
"Value": "sample string 4",
"ChangeType": "",
"Quantity": 1.1,
"QuantitySource": "",
"SourceGuid": "41f40d61-5ea2-466a-974c-6e349c75ad50"
},
{
"TypeString": "",
"SettDedsGuid": "b6f7efdc-ca86-4782-9bfe-b6787390d131",
"Rate": "sample string 1",
"Description": "sample string 2",
"Comment": "sample string 3",
"Value": "sample string 4",
"ChangeType": "",
"Quantity": 1.1,
"QuantitySource": "",
"SourceGuid": "41f40d61-5ea2-466a-974c-6e349c75ad50"
}
]
}
application/xml, text/xml
<ClsGrPurCon.ClsGrPurConAmendAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Grain">
<AgvanceUserForBuyerSignature>sample string 3</AgvanceUserForBuyerSignature>
<AmendmentDate>sample string 1</AmendmentDate>
<BuyerSignatureDateSignedToPrint>2025-11-28T17:57:51.7515233+00:00</BuyerSignatureDateSignedToPrint>
<BuyerSignatureDateTimeSignedUtc>2025-11-28T17:57:51.7500077+00:00</BuyerSignatureDateTimeSignedUtc>
<ContractSigned>true</ContractSigned>
<GrPurConAmendDt>
<ClsGrPurCon.ClsGrPurConAmendDtAdd>
<ChangeType>NotSelected</ChangeType>
<Comment>sample string 3</Comment>
<Description>sample string 2</Description>
<Quantity>1.1</Quantity>
<QuantitySource>NotSelected</QuantitySource>
<Rate>sample string 1</Rate>
<SettDedsGuid>b6f7efdc-ca86-4782-9bfe-b6787390d131</SettDedsGuid>
<SourceGuid>41f40d61-5ea2-466a-974c-6e349c75ad50</SourceGuid>
<TypeString>NotSelected</TypeString>
<Value>sample string 4</Value>
</ClsGrPurCon.ClsGrPurConAmendDtAdd>
<ClsGrPurCon.ClsGrPurConAmendDtAdd>
<ChangeType>NotSelected</ChangeType>
<Comment>sample string 3</Comment>
<Description>sample string 2</Description>
<Quantity>1.1</Quantity>
<QuantitySource>NotSelected</QuantitySource>
<Rate>sample string 1</Rate>
<SettDedsGuid>b6f7efdc-ca86-4782-9bfe-b6787390d131</SettDedsGuid>
<SourceGuid>41f40d61-5ea2-466a-974c-6e349c75ad50</SourceGuid>
<TypeString>NotSelected</TypeString>
<Value>sample string 4</Value>
</ClsGrPurCon.ClsGrPurConAmendDtAdd>
</GrPurConAmendDt>
<PurchaseContractGUID>f4268875-bc2e-4ff5-897c-35c7e6503d42</PurchaseContractGUID>
</ClsGrPurCon.ClsGrPurConAmendAdd>
application/x-www-form-urlencoded
Response Information
Resource Description
Create a purchase contract amendment
AgvPurchaseContractDetails| Name | Description | Type | Additional Information |
|---|---|---|---|
| Status |
0 - Success; 1 - An error occurred; 2 - An error occurred; 3 - Descriptive message, process was successful |
string | |
| Message |
Informational message that corresponds to the Status returned; 0 - Message will be "OK"; 1 - Detailed message returned to give user an indication of what went wrong; 2 - Less detailed message returned that may not mean anything to the user but that the application might use to take a corrective action; 3 - Not an error but something the user might need to know |
string | |
| Count |
The number of results returned. |
string | |
| PurchaseContract | ClsGrPurCon |
Response Formats
application/json, text/json
{
"Status": "sample string 1",
"Message": "sample string 2",
"Count": "1",
"PurchaseContract": {
"Contract": "sample string 1",
"CustID": "sample string 2",
"Location": "sample string 5",
"Commodity": "sample string 6",
"Dateest": "sample string 7",
"ExpireDate": "sample string 8",
"ContractStatus": "sample string 9",
"ContractType": "sample string 10",
"CashPrice": 11.1,
"ContractQuantity": 12.1,
"QuantityRecvd": 13.1,
"Basisprice": 14.1,
"FuturesMonth": "sample string 15",
"Exchange": "sample string 17",
"StrikePrice": 18.1,
"Futuresprice": 19.1,
"ContractSigned": true,
"BidCriteria": "sample string 21",
"ShipDestination": "sample string 22",
"OriginContract": "sample string 23",
"OriginLocation": "sample string 24",
"SalesmanID": "sample string 25",
"PricingNotes": "sample string 26",
"IsSpot": true,
"originalContractQuantity": 28.1,
"PurchaseContractGuid": "e39aea7d-dfce-4ead-81cd-f3da05e626bf",
"SellerSignatureDateSignedToPrint": "2025-11-28T17:57:51.7698175+00:00",
"ContractFormat": "sample string 37",
"DirectShipped": true,
"LastModifiedUTC": "2025-11-28T17:57:51.7698175+00:00",
"PurchaseContractDeliveryDates": [
{
"Contract": "sample string 1",
"Location": "sample string 2",
"Lineitem": "3",
"StartDate": "sample string 4",
"Quantity": "5.1",
"CompleteDate": "sample string 6"
},
{
"Contract": "sample string 1",
"Location": "sample string 2",
"Lineitem": "3",
"StartDate": "sample string 4",
"Quantity": "5.1",
"CompleteDate": "sample string 6"
}
],
"PurchaseContractGradeFactors": [
{
"Contract": "sample string 1",
"Location": "sample string 2",
"Lineitem": "3",
"GradFact": "sample string 4",
"Schedule": "sample string 5",
"Commodity": "sample string 6"
},
{
"Contract": "sample string 1",
"Location": "sample string 2",
"Lineitem": "3",
"GradFact": "sample string 4",
"Schedule": "sample string 5",
"Commodity": "sample string 6"
}
],
"PurchaseContractComments": [
{
"CommentDate": "sample string 4",
"Comment": "sample string 5"
},
{
"CommentDate": "sample string 4",
"Comment": "sample string 5"
}
]
}
}