Currencies
ActiveCollab ships with following currencies predefined:
Response: HTTP 200, application/json (Hide)
GET /currencies
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
[ { "id": 3, "class": "Currency", "url_path": "\/currencies\/3", "name": "British Pound", "updated_on": null, "code": "GBP", "is_default": false, "decimal_spaces": 2, "decimal_rounding": 0 }, { "id": 1, "class": "Currency", "url_path": "\/currencies\/1", "name": "Euro", "updated_on": null, "code": "EUR", "is_default": false, "decimal_spaces": 2, "decimal_rounding": 0 }, { "id": 4, "class": "Currency", "url_path": "\/currencies\/4", "name": "Japanese Yen", "updated_on": null, "code": "JPY", "is_default": false, "decimal_spaces": 2, "decimal_rounding": 0 }, { "id": 2, "class": "Currency", "url_path": "\/currencies\/2", "name": "US Dollar", "updated_on": null, "code": "USD", "is_default": true, "decimal_spaces": 2, "decimal_rounding": 0 } ]
Default currency is pre-selected in invoice and expense forms. It can be listed and set using /currencies/default:
Response: HTTP 200, application/json (Hide)
GET /currencies/default
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13
{ "single": { "id": 2, "class": "Currency", "url_path": "\/currencies\/2", "name": "US Dollar", "updated_on": null, "code": "USD", "is_default": true, "decimal_spaces": 2, "decimal_rounding": 0 } }
Response: HTTP 200, application/json (Hide)
PUT /currencies/default
Payload:
1 2 3
{ "currency_id": 1 }
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13
{ "single": { "id": 1, "class": "Currency", "url_path": "\/currencies\/1", "name": "Euro", "updated_on": 1430164713, "code": "EUR", "is_default": true, "decimal_spaces": 2, "decimal_rounding": 0 } }