List of currencies
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 |
Company | Yes | The company number | company=1 | |
Action | Yes | The action to perform | action=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
}
]
}