NONSTOPAY Documentations
DocumentationNonstopay
  • PAYIN API Documentation
    • I-PREREQUISITE
    • II-HOW TO USE THE API
      • Create invoice CREDIT CARD (POST)
      • Create invoice UPI (POST)
      • Create invoice CRYPTO (POST)
      • Get an invoice status (GET)
      • Get invoice infos (GET)
      • Get invoice history (GET)
      • Get crypto payable currencies (GET)
    • III- INTEGRATION
    • IV- Webhook notification (callbacks)
  • PAYIN NFT API Documentation
    • I-PREREQUISITE
    • II-HOW TO USE THE API
      • NFT - Create invoice (POST)
      • NFT - Get an invoice status (GET)
      • NFT - Get invoice infos (GET)
      • NFT - Get invoice history (GET)
    • III- INTEGRATION
    • IV- Webhook notification (callbacks)
  • PAYOUT API Documentation
    • I-PREREQUISITE
    • II- INTEGRATION
    • III-PAYOUT FUNDS
    • IV-PAYOUT PAYMENT
    • V- Webhook notification (callbacks)
  • Guide for Affiliate
    • Registration and login
    • Features
  • Guide to Smart Settlement
    • Registration and login
    • Features
    • Whitelabel
  • Payment Crypto > Payable currencies value list
  • External Links
Powered by GitBook
On this page
  • REQUEST
  • RESPONSE
  • SAMPLE REQUEST CODE
  1. PAYIN API Documentation
  2. II-HOW TO USE THE API

Get crypto payable currencies (GET)

PreviousGet invoice history (GET)NextIII- INTEGRATION

Last updated 4 months ago

REQUEST

The query is an HTTP GET request where your provided api key will be used as an http header.

API-KEY (Use the api key we’ve sent to you here).

“API-KEY: 0d8d8e89a6cdcd”


RESPONSE

Our service will return a JSON object.

For errors
  • 50001 : API-KEY required

  • 50007 : Invalid API-KEY

Example :

{ “errorCode”: 50001, “errorMessage” : “invalid API-KEY” }
Success response

{
    "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"
        },
        ...
 }
        

Example :

{
    "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"
        },
        ...
 }

SAMPLE REQUEST CODE

<?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);
        }
    }   

https://usdc.nonstopay.net/api/payable-currencies/list/