List Currencies

List Currencies

GET https://api.ocamba.com/v2/ocamba/currencies
Returns a list of Currencies

Tip

Searchable field is name. Sortable fields are: name, code, rate and id.

Filterable fields are: name, code, rate and id.

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/v2/ocamba/currencies" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/ocamba/currencies';
const options = {
  method: 'GET',
  headers: {
    Authorization: `Bearer {TOKEN}`
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
$ch = curl_init("https://api.ocamba.com/v2/ocamba/currencies");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

{
  "total": 8,
  "items": [
    {
      "id": "CNY",
      "code": "CNY",
      "name": "Chinese Yuan Renminbi",
      "rate": 6.3848
    },
    {
      "id": "EUR",
      "code": "EUR",
      "name": "Euro",
      "rate": 0.88963
    },
    {
      "id": "ILS",
      "code": "ILS",
      "name": "Israeli Shekel",
      "rate": 3.09698
    }
  ]
}
Responses