settings/currencies/print

Retrieves the list of all currencies defined in the platform with code and name, returning an Excel, JSON or XML file.

URL

(GET) /api/settings/currencies/print

PARAMETERS

The URL parameters are:

format

The report format, any of:

  • Excel (default)

  • Xml

  • Json

Optional, string

RESULTS

The method returns a file “currencies” in the following format:

JSON

The file content is a JSON array. See example below:

[ { "v": "AED", "t": "United Arab Emirates Dirham" }, { "v": "AFN", "t": "Afghan Afghani" }, { "v": "ALL", "t": "Albanian Lek" }, { "v": "AMD", "t": "Armenian Dram" }, ... ]

XML

<?xml version="1.0" encoding="utf-8"?> <Rows> <Row> <v>AED</v> <t>United Arab Emirates Dirham</t> </Row> <Row> <v>AFN</v> <t>Afghan Afghani</t> </Row> <Row> <v>ALL</v> <t>Albanian Lek</t> </Row> <Row> <v>AMD</v> <t>Armenian Dram</t> </Row> ... </Rows>

EXCEL

The report is an .xlsx file.

 

Copyright Wordbee - Buzzin' Outside the Box since 2008