API Interface

API BASE URL

https://api.reelpay.com

Token List

  • Interface Description: Get a list of TOKENs supported by the system.

  • Interface Address:/v1/transactions/currency

  • Request Parameters: None

  • Field Description

Sample Response

{
    "code": 200,
    "message": "success",
    "data": [
        {
            "currency_id":"ZxkanKiq9w2skt7e9CSR4oUX2q9F23LB",
            "chain": "Ethereum",
            "token": "ETH",
            "contract": "ETH",
            "protocol": "ERC-20",
            "logo": "https://reel-block-n.s3.ap-east-1.amazonaws.com/coin/png/202211/2ff17a95bbd65925.png",
            "decimal": 18
        },
        {
            "currency_id":"ZxkanKiq9w2skt7e9CSR4oUX2q9F23cc",
            "chain": "BSC",
            "token": "COLX",
            "contract": "0xF8aCF86194443DCde55fc5B9e448e183c290D8Cb",
            "protocol": "BEP-20",
            "logo": "https://reel-block-n.s3.ap-east-1.amazonaws.com/coin/png/202211/4178bc4853d1e691.png",
            "decimal": 8
        }
    ]
}

Get Amount

Interface Description: Get the current exchange price between TOKEN and fiat currency.

Interface Address: /v1/transactions/amount

Request Parameters

Field Description

Sample Response

{
    "code": 200,
    "message": "success",
    "data": {
        "amount": "0.00007971"
    }
}

Create Payment Order

Interface Description: Submit a ReelPay payment order and get an acknowledgment message through this interface.

Interface Address: /v1/transactions/pay

Request Parameters

Field Description

Sample Response

{
        "code": 200,
        "message": "success",
        "data": {
                "trade_no": "uz54NEW9TVhLSIDHUSYB4aEFupKoE7I8",
                "pay_address": "0x988519e9ba1c147ff687f4b59009d7573c49efed",
                "time_expire": 1673264871,
                "amount": "0.00007971",
                "chain": "Ethereum",
                "token": "ETH",
                "contract": "ETH",
                "decimal": 18
        }
}

Order Information Interface

Interface Description: Check the order status through this interface.

Interface Address: /v1/transactions

Request Parameters

Field Description

Sample Response

{
    "code": 200,
    "message": "success",
    "data": {
        "trade_no": "uGHT9KRRvLIl4WW8JAaTWmETf3mz8D60",
        "out_trade_no": "12344556dss",
        "chain": "Ethereum",
        "token": "ETH",
        "contract": "ETH",
        "fiat_name": "usd",
        "fiat_amount": "0.1",
        "amount": "0.00007974",
        "pay_address": "0x988519e9ba1c147ff687f4b59009d7573c49efed",
        "status": "TO-BE-PAID",
        "time_expire": 1672988562
    }
}

Close Order

Interface Description: Pending orders are closed through this interface. (Transactions closed by the merchant may result in unavailable payments already finished by the user.)

Interface Address: /v1/transactions/close

Request Parameters

Sample Response

{
    "code": 200,
    "message": "success",
    "data": null
}

Request Refund

Interface Description: The merchant can refund the payment to the user's address through this interface. (When refunding, the user's address must be actual; the contract address may result in the user not receiving the correct payment.)

Interface Address: /v1/transactions/refund

Request Parameters

Field Description

Sample Response

{
    "code": 200,
    "message": "success",
    "data": {
        "merchant_deduction": "1.0002",
        "actual_receipt": "0.0001"
    }
}

Last updated