Change the currency/rate
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=changecurrency | |
Identifier | Yes | Purchase ID or UUID | purchase=10008229 | |
Currency | Yes | Currency Code | currency=1/EUR | |
CurrencyRate | Yes | Currency Rate | currencyrate=1.18 |
Example request:
http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.9&action=changecurrency¤cy=1/EUR¤cyrate=1.18&purchase=10007388
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Purchase order currency changed. ",
"warningmessage": "",
"success": true,
"data": [
{
"poCurrencyCode": "1/EUR",
"poCurrencyRate": 1.18,
"poCost": 0,
"poCurrencyCost": 0,
"poMarkup": 1,
"poChargeout": 0,
"poCurrencyCharge": 0,
"poInvest": false,
"poInvestment": 0,
"poInvestmentMarkup": 0,
"poEstCost": 42.37,
"poCurrencyEstCost": 50,
"poEstMarkUp": 100,
"poEstRecChgOut": 84.74,
"poCurrencyEstCharge": 102.54,
"poOriginalCost": 0,
"poCurrencyOrigCost": 0,
"poInternal": 10008253,
"poUuid": "FAEF5B6021CEA24CAE5CB99F9CA579A6",
"poTimeStampModified": 1521035050,
"poRecordVersionNumber": 6,
"poPONumber": "{EST}"
}
]
}