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_of | |
Identifier | Yes | Purchase ID or UUID | purchase=10008229 |
Example request:
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.9&action=investment_off&purchase=10000162
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": 0,
"poCurrencyCharge": 0,
"poInvest": true,
"poInvestment": 0,
"poInvestmentMarkup": -100,
"poEstCost": 244,
"poCurrencyEstCost": 0,
"poEstMarkUp": 0,
"poEstRecChgOut": 244,
"poCurrencyEstCharge": 0,
"poOriginalCost": 244,
"poCurrencyOrigCost": 244,
"poInternal": 10000162,
"poUuid": "BA5C900B756E4363BEE26BF0239D34A2",
"poTimeStampModified": 1605204303,
"poRecordVersionNumber": 48,
"poPONumber": "012564"
}
]
}