Documentation
  • INTRODUCTION 🤝
    • 👋 Welcome to Paychant
    • Getting started with Paychant 🚀
  • INTEGRATIONS ⛓
    • Integration options
    • Redirect Integration
    • Overlay Embed
    • Parameters
    • Testing Environment
  • RESOURCES
    • Api Keys
    • Webhooks
    • Supported Fiat Currency
    • Supported Stablecoins
  • API Reference
    • Rest API Reference
Powered by GitBook
On this page
  • Get Price
  • Get asset price
  • Available fiats
  • Get supported fiat currency
  • Available assets
  • Get supported assets based on action and env
  • Available Payment Methods
  • Get supported payment method based on fiat currency type

Was this helpful?

  1. API Reference

Rest API Reference

All endpoints as subject to rate limiting

PreviousSupported Stablecoins

Last updated 7 months ago

Was this helpful?

Get Price

Get asset price

GET /price/{chain}/{asset}?to={fiat}&action={action}

Path Parameters

Name
Type
Description

chain*

String

asset

String

Query Parameters

Name
Type
Description

to*

String

action*

String

fiatValue

Integer

This is an optional integer parameter. If this is selected, the value is used to calculate the returned asset price.

assetValue

Integer

This is an optional integer parameter. If this is selected, the value is used to calculate the returned fiat price.

networkFee

String

This is an optional string parameter of either [ON - OFF]. If ON is selected, paychant network fee will be calculated along side to get the fiat/asset price.

paymentMethod

String

{
    "usd": 1,
    "ngn": 1186.04,
    "price": 1216.45
}

{
    "usd": 0.099,
    "usdc": 0.00084,
    "price": 1213.11
}

Available fiats

Get supported fiat currency

GET /fiat

[
    {
        "fiat": "NGN"
    },
    {
        "fiat": "GHS"
    },
    ...
]

Available assets

Get supported assets based on action and env

GET /assets/{action}/{env}

Path Parameters

Name
Type
Description

action*

String

env

String

[
    {
        "chain": "CELO",
        "asset": "CELO"
    },
    {
        "chain": "BSC",
        "asset": "BNB"
    },
    {
        "chain": "ETHEREUM",
        "asset": "ETH"
    },
    ...
]

Available Payment Methods

Get supported payment method based on fiat currency type

GET /payment-method/{fiat}

Path Parameters

Name
Type
Description

fiat

String

[
    {
        "name": "M-Pesa",
        "nameId": "m_pesa"
    },
    {
        "name": "Bank Transfer",
        "nameId": "bank_transfer"
    },
    ...
]

This is an optional string parameter. If this is selected, the transaction fee for the payment method will be calculated along side to get the fiat/asset price. List of supported payment methods id can be found

https://api-partner.paychant.com
Check Supported Stablecoin
Check Supported Stablecoin
Check Supported Fiat Currency
Check Parameters for more info
Check Parameters for more info
Check Parameters for more info
Check Supported Fiat Currency
here