Rest API Reference

All endpoints as subject to rate limiting

Get Price

Get asset price

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

Path Parameters

NameTypeDescription

chain*

String

asset

String

Query Parameters

NameTypeDescription

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

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 here

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

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

NameTypeDescription

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

NameTypeDescription

fiat

String

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

Last updated