Accepted Currencies
The endpoint retrieves the list of cryptocurrencies available for payment processing through OxaPay. These currencies are configured by you on the "Merchant Service" page of your account, specifying the cryptocurrencies your business accepts for payments.
GET
https://api.oxapay.com/v1/payment/accepted-currencies
Authentication
You must include the Merchant API Key in the request header to authenticate your access to the API.
merchant_api_key*
string
Your merchant API Key for authentication and authorization.
{
"data": {
"list": string[] // An array containing the cryptocurrency symbols that are accepted for payments.
},
"message": string, // A message containing additional information about the result of the request.
"error": {
"type": string,
"key": string,
"message": string
} || {}, // An object that provides details about any errors that occurred.
"status": integer, // The status of the request response. Typically provided as a numeric code (e.g., 200 for success or other codes for errors).
"version": string // The version of the API being used.
}
Please note that a successful request will return status 200. In case of any issues or validation problems, refer to the corresponding error for further details.
API Request Sample Codes
curl -X GET https://api.oxapay.com/v1/payment/accepted-currencies \
-H "merchant_api_key: YOUR_MERCHANT_API_KEY" \
-H "Content-Type: application/json" \
These example code snippets demonstrate how to request the "Accepted Coins" endpoint using different programming languages. You can customize the data parameters according to your specific requirements.
API Response Example
{
"data": {
"list": [
"BTC",
"ETH",
"USDT",
"USDC",
"BNB",
"DOGE",
]
},
"message": "Operation completed successfully!",
"error": {},
"status": 200,
"version": "1.0.0"
}
The response example above is provided to help you understand the format and structure of the response. If you have any further questions or need assistance, please feel free to contact to your account manager.
Last updated