Currencies

The Currencies API provides information about supported currencies for invoice creation.

Endpoints

Get Supported Currencies

Retrieves a list of all supported currencies.

Endpoint: GET /api/v1/currencies

Authentication: None

Response:

JSON
1[
2 {
3 "code": "USD",
4 "name": "US Dollar",
5 "is_fiat": true,
6 "decimal_places": 2,
7 "min_amount": "0.01",
8 "max_amount": "25000.00"
9 },
10 {
11 "code": "EUR",
12 "name": "Euro",
13 "is_fiat": true,
14 "decimal_places": 2,
15 "min_amount": "0.01",
16 "max_amount": "25000.00"
17 },
18 {
19 "code": "XNO",
20 "name": "Nano",
21 "is_fiat": false,
22 "decimal_places": 30,
23 "min_amount": "0.000001",
24 "max_amount": "25000.00"
25 }
26]

Currency Properties

PropertyDescription
codeThe currency code (e.g., USD, EUR, NANO)
nameThe full name of the currency
is_fiatWhether the currency is a fiat currency
decimal_placesThe number of decimal places supported
min_amountThe minimum amount that can be used in an invoice
max_amountThe maximum amount that can be used in an invoice

Using Currencies

When creating an invoice, you can specify the nominal_currency parameter to set the currency for the invoice. The API will automatically convert the amount to Nano using the current exchange rate.

Example:

JSON
1{
2 "nominal_amount": 10.00,
3 "nominal_currency": "USD",
4 "destinations": [
5 {
6 "account": "nano_1abc...",
7 "primary": true
8 }
9 ]
10}

This will create an invoice for $10.00 USD, converted to the equivalent amount in Nano.