Currencies

List of currencies

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areapurchases.json
GeneralYesParameters described in overviewsee overviewStructure of an API call
CompanyYesThe company numbercompany=1
ActionYesThe action to performaction=currencies

Example request:

http://<SERVER>/jsonapi/purchases.json?user=user&password=user&version=3.8&action=currencies&company=1

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 5,
  "totalpages": 1,
  "responsemessage": "",
  "pagerows": 0,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "currencyCode": "",
      "currencyCurrencyName": "- Base currency -",
      "variable_selected": false
    },
    {
      "currencyCode": "1/AED",
      "currencyCurrencyName": "Dirhams",
      "variable_selected": false
    },
    {
      "currencyCode": "1/EUR",
      "currencyCurrencyName": "Euro",
      "variable_selected": false
    },
    {
      "currencyCode": "1/KWD",
      "currencyCurrencyName": "Kuwaiti dinar",
      "variable_selected": false
    },
    {
      "currencyCode": "1/USD",
      "currencyCurrencyName": "US Dollars",
      "variable_selected": false
    }
  ]
}