Check availability of pairs API

API for checking if pair is available

Endpoint

  • Staging: https://stg.api.onramp.pokoapp.xyz/api/pair-available

  • Production: https://api.onramp.pokoapp.xyz/api/pair-available

Making request

  • Method: GET

  • Header: attach your API_KEY into this key x-api-key

  • Params

    • fiat: fiat currency (VND, USD,...)

    • cryptoIds: list of cryptos (MATIC-polygon,TOWER-polygon,...)

Example code

var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://stg.api.onramp.pokoapp.xyz/api/pair-available?fiat=PHP&cryptoIds=MATIC-polygon,TOWER-polygon',
  'headers': {
    'x-api-key': 'YOUR_API_KEY'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Response

  • available: true/false

  • providers: list of proividers support the current pair

Example response

[
    {
        "fiat": "PHP",
        "crypto": "MATIC-polygon",
        "available": true,
        "providers": [
            "transak",
            "onmeta",
            "transfi",
            "sardine"
        ]
    },
    {
        "fiat": "PHP",
        "crypto": "TOWER-polygon",
        "available": true,
        "providers": [
            "onmeta"
        ]
    }
]

Last updated