Get crypto payable currencies (GET)
Last updated
Last updated
The query is an HTTP GET request where your provided api key will be used as an http header.
Our service will return a JSON object.
{ “errorCode”: 50001, “errorMessage” : “invalid API-KEY” }
{
"list": [
{
"value": "USDT_polygon",
"name": "Tether USD (Polygon)",
"url_icon_crypto": "https://usdc.nonstopay.net/icons_currencies/Tether_USD_(USDT).svg",
"url_icon_network": "https://usdc.nonstopay.net/icons_currencies/Polygon_(Polygon).svg"
},
{
"value": "USDT_tron",
"name": "Tether USD (Tron)",
"url_icon_crypto": "https://usdc.nonstopay.net/icons_currencies/Tether_USD_(USDT).svg",
"url_icon_network": "https://usdc.nonstopay.net/icons_currencies/Tron_(TRC20).svg"
},
{
"value": "USDT_bsc",
"name": "Tether USD (Binance Smart Chain)",
"url_icon_crypto": "https://usdc.nonstopay.net/icons_currencies/Tether_USD_(USDT).svg",
"url_icon_network": "https://usdc.nonstopay.net/icons_currencies/Binance_Smart_Chain_(BEP20).svg"
},
...
}
{
"list": [
{
"value": "USDT_polygon",
"name": "Tether USD (Polygon)",
"url_icon_crypto": "https://usdc.nonstopay.net/icons_currencies/Tether_USD_(USDT).svg",
"url_icon_network": "https://usdc.nonstopay.net/icons_currencies/Polygon_(Polygon).svg"
},
{
"value": "USDT_tron",
"name": "Tether USD (Tron)",
"url_icon_crypto": "https://usdc.nonstopay.net/icons_currencies/Tether_USD_(USDT).svg",
"url_icon_network": "https://usdc.nonstopay.net/icons_currencies/Tron_(TRC20).svg"
},
{
"value": "USDT_bsc",
"name": "Tether USD (Binance Smart Chain)",
"url_icon_crypto": "https://usdc.nonstopay.net/icons_currencies/Tether_USD_(USDT).svg",
"url_icon_network": "https://usdc.nonstopay.net/icons_currencies/Binance_Smart_Chain_(BEP20).svg"
},
...
}
<?php
// First, please install the php-curl-class library through composer
// git repository: https://github.com/php-curl-class/php-curl-class
// Installation: composer require php-curl-class/php-curl-class
require __DIR__ . '/vendor/autoload.php';
use Curl\Curl;
$API_KEY = ''; // Your API-KEY (We sent it to you)
// URL to get an invoice status (IP-restricted call)
$url = 'https://usdc.nonstopay.net/api/payable-currencies/list/';
$curl = new Curl();
$curl->setHeader('Content-Type', 'application/json');
$curl->setHeader('API-KEY', $API_KEY);
$curl->get($url);
if ($curl->error) {
echo 'Error: ' . $curl->errorMessage . "\n";
} else {
echo 'Data server received via GET:' . "\n";
if( property_exists($curl->response, "list") ){
var_dump( $curl->response);
}else{
var_dump( $curl->response);
}
}