List Currencies

List Currencies

GET https://api.ocamba.com/v2/ocamba/currencies

Returns a list of Currencies

Query parameters

parameters

Response schemas

GET https://api.ocamba.com/v2/ocamba/currencies HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X GET "https://api.ocamba.com/v2/ocamba/currencies" \
  -H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/v2/ocamba/currencies", {
  method: "GET",
  headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$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

HTTP/1.1 200 OK
Content-Type: application/json

{
  "total": 8,
  "items": [
    {
      "id": "CNY",
      "code": "CNY",
      "name": "Chinese Yuan Renminbi",
      "rate": 6.3848
    }
  ]
}
Responses
Tip
1
Searchable field is name.
2
Sortable fields are: name, code, rate and id.
3
Filterable fields are: name, code, rate and id.