This is a read only API to get a list of currencies supported by the application.
URL |
https://api_url/v1/currency |
Supported Methods |
GET |
Description |
Returns currencies supported within Versaccounts |
Accepted Query Formats
GET /currency[.format] |
retrieve all currencies |
GET /currency/1[.format] |
retrieve currency with ID = 1 |
Elements
id |
Unique ID assigned to currency record |
name |
currency name as per [ISO-4217] |
currency_code |
3-character code as per [ISO-4217] |
id |
Unique ID assigned to currency record |
name |
currency name as per [ISO-4217] |
currency_code |
3-character code as per [ISO-4217] |
id |
Unique ID assigned to currency record |
name |
currency name as per [ISO-4217] |
currency_code |
3-character code as per [ISO-4217] |
Examples
Retrieve all currencies in XML format:
$ curl -i --header "VERSACCOUNTS_AUTHORIZATION:409696900e0b3f5a4297e3cd5823f734f0095e66" https://api_url/v1/currency.xml
<?xml version="1.0" encoding="UTF-8"?>
<currencies>
<currency>
<id>1</id>
<name>Canadian dollar</name>
<currency_code>CAD</currency_code>
</currency>
<currency>
<id>2</id>
<name>United States dollar</name>
<currency_code>USD</currency_code>
</currency>
<currency>
<id>3</id>
<name>European Euro</name>
<currency_code>EUR</currency_code>
</currency>
. . .
</currencies
Retrieve currency ID=1 in JSON format:
$ curl -i --header "VERSACCOUNTS_AUTHORIZATION:409696900e0b3f5a4297e3cd5823f734f0095e66" https://api_url/v1/currency/1.json
Comments and Suggestions
0 comments
Please sign in to leave a comment.
Related articles