GET
/
currencies
/
{id}
const { FedaPay, Currency } = require('fedapay');
/* Replace YOUR_SECRETE_API_KEY with your real API key */
FedaPay.setApiKey("YOUR_SECRETE_API_KEY");
/* Specify whether you want to run your query in test or live mode */
FedaPay.setEnvironment('sandbox'); //or setEnvironment('live');
/* show a currency */
const currency = await Currency.retrieve( ID, params = {}, headers = {} );
[
  {
    "id": 123,
    "name": "<string>",
    "modes": [
      "<string>"
    ],
    "prefix": "<string>",
    "suffix": "<string>",
    "account_id": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "default": true
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

currency ID.

Response

200
application/json
List of currencies
id
integer

Balance ID.

name
string

Currency name.

modes
string[]

Available modes for the currency

prefix
string

Currency prefix.

suffix
string

Currency suffix.

account_id
integer

Account ID associated with the balance

created_at
string

Date and time of balance creation.

updated_at
string

Date and time of last balance update.

default
boolean

Is this currency the default one?