PayAgency Logo
Crypto PaymentsCrypto payin

Crypto Payin Supported Currencies

Fetch all supported cryptocurrencies for Pay Agency's Crypto Payin API. This endpoint returns a list of available cryptocurrencies for payin based on country and amount.

API Endpoint

POST https://backend.pay.agency/api/v1/live/crypto/currencies

Parameters

ParameterTypeDescriptionRequired
countryStringCountry code (ISO 3166-1 alpha-2 format)Yes
amountNumberTransaction amount (can be any decimal value, e.g., 45, 20.5, 10.00)Yes

Request Example

curl --location 'https://backend.pay.agency/api/v1/live/crypto/currencies' \
--header 'Authorization: Bearer YOUR_SECRET_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "country": "AE",
  "amount": 45
}'

Payload

{
  "amount": 45,
  "country": "AE"
}

Example Responses

Success Response

{
  "message": "Crypto currencies fetched successfully",
  "data": [
    {
      "name": "Bitcoin",
      "code": "BTC",
      "symbol": "₿"
    },
    {
      "name": "Tether",
      "code": "USDT",
      "symbol": "₮"
    },
    {
      "name": "XRP",
      "code": "XRP",
      "symbol": "XRP"
    }
  ]
}

Error Responses

{
  "message": "Authentication token is missing."
}
{
  "message": "Invalid Secret Key."
}

Integration Examples

You can use this endpoint in any backend or frontend application. Here are some sample requests in different languages:

const axios = require('axios');
 
const payload = {
  country: 'AE',
  amount: 45
};
 
const response = await axios.post(
  'https://backend.pay.agency/api/v1/live/crypto/currencies',
  payload,
  {
    headers: {
      'Content-Type': 'application/json',
      'Authorization': 'Bearer YOUR_SECRET_KEY'
    }
  }
);
 
console.log(response.data);

Notes

  • The endpoint requires a valid Bearer token in the Authorization header.
  • The response will include all supported cryptocurrencies for the given country and amount.

On this page