OxaPay Docs
Legacy
Legacy
  • Introduction
  • Getting Started
  • Integrations
    • Payment Links
    • Donations
    • Merchant API
    • Payout API
    • Plugins
      • WooCommerce
      • WISECP
      • Clientexec
      • Blesta
      • WHMCS
      • PrestaShop
      • Easy Digital Downloads
      • Paid Memberships Pro
      • Gravity Forms
      • Restrict Content Pro
    • Merchant and Payout Service with API
  • API Reference
    • Creating an Invoice
    • Creating White-Label Payment
    • Creating Static Wallet
    • Revoking Static Wallet
    • Static Wallets List
    • Payment Information
    • Payment History
    • Accepted Coins
    • Price
    • Creating Payout
    • Payout Information
    • Payout History
    • Account Balance
    • Exchange Rate
    • Exchange Calculate
    • Exchange Pairs
    • Exchange Request
    • Exchange History
    • Supported Currencies
    • Supported Fiat Currencies
    • Supported Networks
    • System Status
    • Result code table
    • Merchant status table
    • Payout status table
  • Webhook
  • Use Cases
  • Troubleshooting
Powered by GitBook
On this page
  1. API Reference

Accepted Coins

PreviousPayment HistoryNextPrice

Last updated 26 days ago

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

Name
Type
Description

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 for further details.

Example codes

curl -X POST https://api.oxapay.com/merchants/allowedCoins \
-d '{"merchant": "YOUR_MERCHANT_API_KEY"}'
<?php

$url = "https://api.oxapay.com/merchants/allowedCoins";

$data = array(
    "merchant" => 'YOUR_MERCHANT_API_KEY'
);

$options = array(
    'http' => array(
        'header' => 'Content-Type: application/json',
        'method'  => 'POST',
        'content' => json_encode($data),
    ),
);

$context  = stream_context_create($options);
$response = file_get_contents($url, false, $context);
$result = json_decode($response);
var_dump($result);
?>
const axios = require('axios');
const url = 'https://api.oxapay.com/merchants/allowedCoins';
const data = JSON.stringify({
    merchant: 'YOUR_MERCHANT_API_KEY'
});

axios.post(url, data)
    .then(response => {
        console.log(response.data);
    })
    .catch(error => {
        console.error(error);
    });
import requests
import json

url = "https://api.oxapay.com/merchants/allowedCoins"
data = {
    'merchant': 'YOUR_MERCHANT_API_KEY'
}
response = requests.post(url, data=json.dumps(data))
result = response.json()
print(result)

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.

result codes