Accepted Coins

The endpoint allows you to retrieve the list of cryptocurrencies that are available for payments through OxaPay. These cryptocurrencies are set by you as the merchant in the "Merchant" tab on your account, indicating the coins accepted for transactions on your platform or website.

POST https://api.oxapay.com/merchants/allowedCoins

Request Body

NameTypeDescription

merchant*

string

Your merchant API key for authentication and authorization.

{
  "result": integer, // The result code indicates the success or failure of the request.
  "message": string, // A message providing additional information about the result.
  "allowed": array // An array containing the cryptocurrency symbols that are accepted for payments.
}

By making a request to this endpoint with your valid merchant API key, you can obtain the list of accepted cryptocurrencies for OxaPay payments and tailor your payment options accordingly.

Please note that a successful request will return a result code 100. In case of any issues or validation problems, refer to the corresponding result codes for further details.

Example codes

curl -X POST https://api.oxapay.com/merchants/allowedCoins \
-d "merchant=YOUR_MERCHANT_API_KEY"

Please replace YOUR_MERCHANT_API_KEY with your actual OxaPay merchant API key when using these code snippets. These snippets will send a POST request to the "Accepted Coins" endpoint and print the response containing the list of accepted cryptocurrencies for OxaPay payments.

Last updated