PUT PurchaseOffer/PutPurchaseOfferContract

Updates a purchase offer contract

Request Information

URI Parameters

Body Parameters

PurchaseOfferContractUpdate
NameDescriptionTypeAdditional Information
PurOfferConGUID

Guid of a Purchase Offer Contract

globally unique identifier

Required

Location

Location of the Purchase Offer Contract

string

Max length: 6

CustID

ID of the customer Purchase Offer Contract

string

Required

Max length: 6

Commodity

ID of the commodity Purchase Offer Contract

string

Required

Max length: 6

DateEst

Date Establised on the Purchase Offer Contract

string

Required

Format must be MM/dd/yyyy

ExpireDate

Expiration date of the Purchase Offer Contract

string

Format must be MM/dd/yyyy

ContractStatus

Status of the Purchase Offer Contract

PurchaseOfferContractStatus

Required

ContractType

Type of the Purchase Offer Contract

PurchaseOfferContractType

Required

ContractOfferStatus

Offer Status of the Purchase Offer Contract

PurchaseOfferStatus

Required

SalesID

SalesPersonID on the Purchase Offer Contract

string

Max length: 15

ShipDest

Shipping Destination on the Purchase Offer Contract

string

Max length: 6

ContractQuantity

Quatintiy of units on the Purchase Offer Contract

decimal number
ContractSigned

Signature status on the Purchase Offer Contract

boolean
PricingNotes

Pricing notes on the Purchase Offer Contract

string

Max length: 50

CashOP

Cash offer price on the Purchase Offer Contract

decimal number

Max of 5 decimal places

FuturesOP

Futures offer price on the Purchase Offer Contract

decimal number

Max of 5 decimal places

BasisOP

BasisPrice of the Purchase Offer Contract

decimal number

Max of 5 decimal places

FuturesMonth

Futures month on the Purchase Offer Contract

string

Max length: 10

Exchange

ExchangeID of the Purchase Offer Contract

string

Max length: 10

BidCriteria

BidCriteriaID of the Purchase Offer Contract

string

Max length: 20

DocumentFormatGuid

globally unique identifier
PurchaseOfferContractGradeFactors

List of Grade Factors and Schedules for the Purchase Offer Contract

Collection of clsGrPurOffConGFUpdate
PurchaseOfferContractComments

List of Comments for the Purchase Offer Contract

Collection of clsGrPurOffConCommUpdate
PurchaseOfferContractDeliveryDates

List of Delivery Dates for the Purchase Offer Contract

Collection of clsGrPurOffConDdUpdate
ChangeReasons

Change reasons for a Purchase Offer Contract

clsGRPurOffConChangeReason

Request Formats

application/json, text/json

Sample:
{
  "PurOfferConGUID": "59351274-ded3-4bcb-b52d-afa8d9be70d9",
  "Location": "sample string 1",
  "CustID": "sample string 2",
  "Commodity": "sample string 3",
  "DateEst": "sample string 4",
  "ExpireDate": "sample string 5",
  "ContractStatus": 1,
  "ContractType": 1,
  "ContractOfferStatus": 1,
  "SalesID": "sample string 6",
  "ShipDest": "sample string 7",
  "ContractQuantity": 8.1,
  "ContractSigned": true,
  "PricingNotes": "sample string 10",
  "CashOP": 11.1,
  "FuturesOP": 12.1,
  "BasisOP": 13.1,
  "FuturesMonth": "sample string 14",
  "Exchange": "sample string 15",
  "BidCriteria": "sample string 16",
  "DocumentFormatGuid": "c41c1bdd-e89c-48b9-b5c9-32b83ed424e3",
  "PurchaseOfferContractGradeFactors": [
    {
      "PremiumDiscountGuid": "ef23f652-34bd-4e14-ae2b-0384f3e6994a",
      "GradeFactorId": "sample string 1",
      "ScheduleId": "sample string 2"
    },
    {
      "PremiumDiscountGuid": "ef23f652-34bd-4e14-ae2b-0384f3e6994a",
      "GradeFactorId": "sample string 1",
      "ScheduleId": "sample string 2"
    }
  ],
  "PurchaseOfferContractComments": [
    {
      "Comment": "sample string 1",
      "CommentDate": "sample string 2"
    },
    {
      "Comment": "sample string 1",
      "CommentDate": "sample string 2"
    }
  ],
  "PurchaseOfferContractDeliveryDates": [
    {
      "StartDate": "sample string 1",
      "CompleteDate": "sample string 2",
      "Quantity": 3.1
    },
    {
      "StartDate": "sample string 1",
      "CompleteDate": "sample string 2",
      "Quantity": 3.1
    }
  ],
  "ChangeReasons": {
    "BasisOP": "sample string 1",
    "FuturesOP": "sample string 2",
    "CashOP": "sample string 3",
    "Quantity": "sample string 4",
    "OfferStatus": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<clsGRPurOffCon.PurchaseOfferContractUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSI">
  <BasisOP>13.1</BasisOP>
  <BidCriteria>sample string 16</BidCriteria>
  <CashOP>11.1</CashOP>
  <ChangeReasons>
    <BasisOP>sample string 1</BasisOP>
    <CashOP>sample string 3</CashOP>
    <FuturesOP>sample string 2</FuturesOP>
    <OfferStatus>sample string 5</OfferStatus>
    <Quantity>sample string 4</Quantity>
  </ChangeReasons>
  <Commodity>sample string 3</Commodity>
  <ContractOfferStatus>Open</ContractOfferStatus>
  <ContractQuantity>8.1</ContractQuantity>
  <ContractSigned>true</ContractSigned>
  <ContractStatus>Open</ContractStatus>
  <ContractType>Priced</ContractType>
  <CustID>sample string 2</CustID>
  <DateEst>sample string 4</DateEst>
  <DocumentFormatGuid>c41c1bdd-e89c-48b9-b5c9-32b83ed424e3</DocumentFormatGuid>
  <Exchange>sample string 15</Exchange>
  <ExpireDate>sample string 5</ExpireDate>
  <FuturesMonth>sample string 14</FuturesMonth>
  <FuturesOP>12.1</FuturesOP>
  <Location>sample string 1</Location>
  <PricingNotes>sample string 10</PricingNotes>
  <PurOfferConGUID>59351274-ded3-4bcb-b52d-afa8d9be70d9</PurOfferConGUID>
  <PurchaseOfferContractComments>
    <clsGRPurOffCon.PurchaseOfferContractUpdate.clsGrPurOffConCommUpdate>
      <Comment>sample string 1</Comment>
      <CommentDate>sample string 2</CommentDate>
    </clsGRPurOffCon.PurchaseOfferContractUpdate.clsGrPurOffConCommUpdate>
    <clsGRPurOffCon.PurchaseOfferContractUpdate.clsGrPurOffConCommUpdate>
      <Comment>sample string 1</Comment>
      <CommentDate>sample string 2</CommentDate>
    </clsGRPurOffCon.PurchaseOfferContractUpdate.clsGrPurOffConCommUpdate>
  </PurchaseOfferContractComments>
  <PurchaseOfferContractDeliveryDates>
    <clsGRPurOffCon.PurchaseOfferContractUpdate.clsGrPurOffConDdUpdate>
      <CompleteDate>sample string 2</CompleteDate>
      <Quantity>3.1</Quantity>
      <StartDate>sample string 1</StartDate>
    </clsGRPurOffCon.PurchaseOfferContractUpdate.clsGrPurOffConDdUpdate>
    <clsGRPurOffCon.PurchaseOfferContractUpdate.clsGrPurOffConDdUpdate>
      <CompleteDate>sample string 2</CompleteDate>
      <Quantity>3.1</Quantity>
      <StartDate>sample string 1</StartDate>
    </clsGRPurOffCon.PurchaseOfferContractUpdate.clsGrPurOffConDdUpdate>
  </PurchaseOfferContractDeliveryDates>
  <PurchaseOfferContractGradeFactors>
    <clsGRPurOffCon.PurchaseOfferContractUpdate.clsGrPurOffConGFUpdate>
      <GradeFactorId>sample string 1</GradeFactorId>
      <PremiumDiscountGuid>ef23f652-34bd-4e14-ae2b-0384f3e6994a</PremiumDiscountGuid>
      <ScheduleId>sample string 2</ScheduleId>
    </clsGRPurOffCon.PurchaseOfferContractUpdate.clsGrPurOffConGFUpdate>
    <clsGRPurOffCon.PurchaseOfferContractUpdate.clsGrPurOffConGFUpdate>
      <GradeFactorId>sample string 1</GradeFactorId>
      <PremiumDiscountGuid>ef23f652-34bd-4e14-ae2b-0384f3e6994a</PremiumDiscountGuid>
      <ScheduleId>sample string 2</ScheduleId>
    </clsGRPurOffCon.PurchaseOfferContractUpdate.clsGrPurOffConGFUpdate>
  </PurchaseOfferContractGradeFactors>
  <SalesID>sample string 6</SalesID>
  <ShipDest>sample string 7</ShipDest>
</clsGRPurOffCon.PurchaseOfferContractUpdate>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PurchaseOfferContractUpdate'.

Response Information

Resource Description

Updates a purchase offer contract

AgvPurchaseOfferContract
NameDescriptionTypeAdditional Information
Status

Status of the API call.

string
Message

Message of the API call.

string
ErrorList

List of Error Messages returned by the api

Collection of string
WarningList

List of Warning Messages returned by the api

Collection of string
Count

Count of how many purchase offer contracts.

string
Data

Collection of clsGRPurOffCon

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "ErrorList": [
    "sample string 1",
    "sample string 2"
  ],
  "WarningList": [
    "sample string 1",
    "sample string 2"
  ],
  "Count": "2",
  "Data": [
    {
      "Contract": "sample string 24",
      "Location": "sample string 25",
      "PurchaseOfferContractGuid": "70e9da17-1266-486b-b2f3-0779cea5d4a0"
    },
    {
      "Contract": "sample string 24",
      "Location": "sample string 25",
      "PurchaseOfferContractGuid": "70e9da17-1266-486b-b2f3-0779cea5d4a0"
    }
  ]
}

application/xml, text/xml

Sample:
<AgvPurchaseOfferContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Contract.PurchaseOffer">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSI">
    <d2p1:clsGRPurOffCon>
      <d2p1:Contract>sample string 24</d2p1:Contract>
      <d2p1:Location>sample string 25</d2p1:Location>
      <d2p1:PurchaseOfferContractGuid>70e9da17-1266-486b-b2f3-0779cea5d4a0</d2p1:PurchaseOfferContractGuid>
    </d2p1:clsGRPurOffCon>
    <d2p1:clsGRPurOffCon>
      <d2p1:Contract>sample string 24</d2p1:Contract>
      <d2p1:Location>sample string 25</d2p1:Location>
      <d2p1:PurchaseOfferContractGuid>70e9da17-1266-486b-b2f3-0779cea5d4a0</d2p1:PurchaseOfferContractGuid>
    </d2p1:clsGRPurOffCon>
  </Data>
  <ErrorList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorList>
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
  <WarningList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </WarningList>
</AgvPurchaseOfferContract>