Accepted Coins
Request Body
Name
Type
Description
{
"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.
}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);
?>Last updated