Mark a purchase as an investment/non chargeable
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=investment_on | |
Identifier | Yes | Purchase ID or UUID | purchase=10008229 |
Example request:
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.9&action=investment_on&purchase=10007388
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Purchase order investment changed. ",
"warningmessage": "",
"success": true,
"synapiversion": 3.8,
"data": [
{
"poCurrencyCode": "",
"poCurrencyRate": 1,
"poCost": 244,
"poCurrencyCost": 0,
"poMarkup": 0,
"poCharge": 244,
"poCurrencyCharge": 0,
"poInvest": false,
"poInvestment": 0,
"poInvestmentMarkup": 0,
"poEstCost": 244,
"poCurrencyEstCost": 0,
"poEstMarkUp": 0,
"poEstRecChgOut": 244,
"poCurrencyEstCharge": 0,
"poOriginalCost": 244,
"poCurrencyOrigCost": 244,
"poInternal": 10000162,
"poUuid": "BA5C900B756E4363BEE26BF0239D34A2",
"poTimeStampModified": 1592385311,
"poRecordVersionNumber": 45,
"poPONumber": "012564"
}
]
}