Promote an estimate to a purchase order
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | purchases.json | |
General | Yes | Parameters described in overview | see overview | Structure of an API call |
Action | Yes | The action to perform | action=promote | |
Identifier | Yes | Purchase ID or UUID | purchase=10008229 |
Example request:
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.9&action=promote&purchase=10008233
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"
}
]
}