POST PurchaseContract/CreatePurchaseContractAmendment
Create a purchase contract amendment
Request Information
URI Parameters
Body Parameters
A new contract amendment shape
ClsGrPurConAmendAddName | 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": "684e28e3-242f-414f-97dd-8f3d69aceac5", "AmendmentDate": "sample string 1", "ContractSigned": true, "AgvanceUserForBuyerSignature": "sample string 3", "BuyerSignatureDateTimeSignedUtc": "2025-08-23T07:29:43.8352245+00:00", "BuyerSignatureDateSignedToPrint": "2025-08-23T07:29:43.8352245+00:00", "GrPurConAmendDt": [ { "TypeString": "", "SettDedsGuid": "753d84fd-74e0-455a-98e6-9863b3cf2ea2", "Rate": "sample string 1", "Description": "sample string 2", "Comment": "sample string 3", "Value": "sample string 4", "ChangeType": "", "Quantity": 1.1, "QuantitySource": "", "SourceGuid": "35ccc55c-d6ff-4d90-858e-675b7a8b5df8" }, { "TypeString": "", "SettDedsGuid": "753d84fd-74e0-455a-98e6-9863b3cf2ea2", "Rate": "sample string 1", "Description": "sample string 2", "Comment": "sample string 3", "Value": "sample string 4", "ChangeType": "", "Quantity": 1.1, "QuantitySource": "", "SourceGuid": "35ccc55c-d6ff-4d90-858e-675b7a8b5df8" } ] }
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-08-23T07:29:43.8352245+00:00</BuyerSignatureDateSignedToPrint> <BuyerSignatureDateTimeSignedUtc>2025-08-23T07:29:43.8352245+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>753d84fd-74e0-455a-98e6-9863b3cf2ea2</SettDedsGuid> <SourceGuid>35ccc55c-d6ff-4d90-858e-675b7a8b5df8</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>753d84fd-74e0-455a-98e6-9863b3cf2ea2</SettDedsGuid> <SourceGuid>35ccc55c-d6ff-4d90-858e-675b7a8b5df8</SourceGuid> <TypeString>NotSelected</TypeString> <Value>sample string 4</Value> </ClsGrPurCon.ClsGrPurConAmendDtAdd> </GrPurConAmendDt> <PurchaseContractGUID>684e28e3-242f-414f-97dd-8f3d69aceac5</PurchaseContractGUID> </ClsGrPurCon.ClsGrPurConAmendAdd>
application/x-www-form-urlencoded
Response Information
Resource Description
Create a purchase contract amendment
AgvPurchaseContractDetailsName | 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": "3b420849-a289-4a41-9e4b-f62333d62602", "SellerSignatureDateSignedToPrint": "2025-08-23T07:29:43.8730709+00:00", "ContractFormat": "sample string 37", "DirectShipped": true, "LastModifiedUTC": "2025-08-23T07:29:43.8740787+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" } ] } }