Investment Off

Mark a purchase as an investment/non chargeable

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areapurchases.json
GeneralYesParameters described in overviewsee overviewStructure of an API call
ActionYesThe action to performaction=investment_of
IdentifierYesPurchase ID or UUIDpurchase=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"
}
]
}