Pokoapp.xyz
  • Overview
    • 🛠️What we do
    • 😎Our vision
    • 📌Key products
    • 🤖Getting help & support
    • 👋Meet our team
  • Onramp Aggregator
    • What is Onramp Aggregator
    • Getting Started
    • Why use Onramp Aggregator
    • Onramp Aggregator dashboard
    • SDK integration & documentation
      • Web integration
        • Parameters
        • Redirect integration
        • Iframe integration
        • Customized integration
        • Theme customization
        • Quote API
        • URL signature
      • Mobile integration
        • Android native
        • Poko SDK for React Native
      • Dashboard API
      • Check availability of pairs API
      • Deployment examples
      • Support for integration
    • Dashboard
    • Testing guideline
    • Token coverage
    • Country & payment method coverage
    • Pricing
    • FAQs
  • Direct Checkout
    • What is Direct Checkout
    • Why use Direct Checkout
    • Integration
      • NFT Checkout & Defi
      • Wallet
        • Whitelist Endpoints
      • Setup Widget
      • Off-chain integration
    • Dashboard
    • Testing guideline
    • Country & payment method coverage
    • Pricing
    • KYC
  • Coverage
    • 🖇️Token coverage
    • 🌎Country & payment method coverage
    • 📋Request token & country coverage
  • Other resources
    • Readings about payments
Powered by GitBook
On this page
  1. Onramp Aggregator
  2. SDK integration & documentation

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"
        ]
    }
]
PreviousDashboard APINextDeployment examples

Last updated 1 year ago