Promote (Make Real)

Promote an estimate to a purchase order

Promote (Make Real)

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areapurchases.json
GeneralYesParameters described in overviewsee overviewStructure of an API call
ActionYesThe action to performaction=promote
IdentifierYesPurchase ID or UUIDpurchase=10008229

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://&lt;SERVER&gt;/jsonapi/purchases.json?&version=6&action=promote&purchase=10008233

Example request (legacy username/password):

http://&lt;SERVER&gt;/jsonapi/purchases.json?&version=6&action=promote&purchase=10008233&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "Purchase order promoted to a real purchase order. ",
  "warningmessage": "",
  "success": true,
  "data": [
    {
      "poCurrencyCode": "",
      "poCurrencyRate": 1,
      "poCost": 200,
      "poCurrencyCost": 200,
      "poMarkup": 30,
      "poChargeout": 260,
      "poCurrencyCharge": 390,
      "poInvest": false,
      "poInvestment": 0,
      "poInvestmentMarkup": 0,
      "poEstCost": 200,
      "poCurrencyEstCost": 200,
      "poEstMarkUp": 30,
      "poEstRecChgOut": 260,
      "poCurrencyEstCharge": 390,
      "poOriginalCost": 200,
      "poCurrencyOrigCost": 200,
      "poInternal": 10005708,
      "poUuid": "BEA6082B7BE911E2B9FC00155D003416",
      "poTimeStampModified": 1521025740,
      "poRecordVersionNumber": 6,
      "poPONumber": "012097"
    }
  ]
}