Investment On

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_on
IdentifierYesPurchase ID or UUIDpurchase=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"
}
]
}