List Currencies
Return every currency Anton supports, across fiat, crypto, and stablecoin. Use these codes when building payout or FX requests.
GET
/
v1
/
currencies
List supported currencies
curl --request GET \
--url https://api.antonpayments.com/v1/currencies \
--header 'Authorization: Bearer <token>' \
--header 'DPoP: <api-key>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>', DPoP: '<api-key>'}};
fetch('https://api.antonpayments.com/v1/currencies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.antonpayments.com/v1/currencies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"DPoP: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.antonpayments.com/v1/currencies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("DPoP", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"code": "USD",
"name": "US Dollar",
"decimals": 2,
"symbol": "$",
"type": "fiat"
},
{
"code": "USDC",
"name": "USD Coin",
"decimals": 6,
"symbol": "USDC",
"type": "stablecoin"
}
]
}Authorizations
Per-request DPoP proof JWT (RFC 9449). MUST accompany the Authorization: DPoP <access_token> header on every protected operation. The proof is signed by the merchant's private DPoP key and carries htm, htu, iat, jti, and ath claims.
Response
200 - application/json
Supported currencies.
Show child attributes
Show child attributes
Was this page helpful?
⌘I
List supported currencies
curl --request GET \
--url https://api.antonpayments.com/v1/currencies \
--header 'Authorization: Bearer <token>' \
--header 'DPoP: <api-key>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>', DPoP: '<api-key>'}};
fetch('https://api.antonpayments.com/v1/currencies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.antonpayments.com/v1/currencies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"DPoP: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.antonpayments.com/v1/currencies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("DPoP", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"code": "USD",
"name": "US Dollar",
"decimals": 2,
"symbol": "$",
"type": "fiat"
},
{
"code": "USDC",
"name": "USD Coin",
"decimals": 6,
"symbol": "USDC",
"type": "stablecoin"
}
]
}