Change Currency

Change the currency/rate

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areapurchases.json
GeneralYesParameters described in overviewsee overviewStructure of an API call
ActionYesThe action to performaction=changecurrency
IdentifierYesPurchase ID or UUIDpurchase=10008229
CurrencyYesCurrency Codecurrency=1/EUR
CurrencyRateYesCurrency Ratecurrencyrate=1.18

Example request:

http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.9&action=changecurrency&currency=1/EUR&currencyrate=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}"
    }
  ]
}