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

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
}

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

Last updated