API Interface
API BASE URL
Token List
Interface Description: Get a list of TOKENs supported by the system.
Interface Address:
/v1/transactions/currency
Request Parameters: None
Field Description
Field | Type | Description |
---|---|---|
currency_id | string | Currency ID |
chain | string | Chain |
token | string | Token |
contract | string | Contract address |
protocol | string | Protocol |
logo | string | Logo |
decimal | int | Decimal |
Sample Response
Get Amount
Interface Description: Get the current exchange price between TOKEN and fiat currency.
Interface Address: /v1/transactions/amount
Request Parameters
Field | Type | Description |
---|---|---|
currency_id | string | |
fiat_name | string | Fiat name (USD) |
fiat_amount | string | Fiat amount (1.2) |
Field Description
Field | Type | Description |
---|---|---|
amount | string | The number of tokens that need to be paid |
Sample Response
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 | Type | Description |
---|---|---|
out_trade_no | string | Merchant Order ID |
currency_id | string | Currency ID |
fiat_name | string | Fiat name |
fiat_amount | string | Fiat amount |
Field Description
Field | Type | Description |
---|---|---|
trade_no | string | ReelPay order ID |
pay_address | string | The temporary payment address for current order,only effectivewithin the order validity period. |
time_expire | string | Payment deadline |
amount | string | The number of tokens that need to be paid |
chain | string | Chain Name |
token | string | Token symbol |
decimal | int | Token decimal |
contract | string | Contract address |
Sample Response
Order Information Interface
Interface Description: Check the order status through this interface.
Interface Address: /v1/transactions
Request Parameters
Field | Type | Description |
---|---|---|
trade_no | string | ReelPay order ID |
Field Description
Field | Type | Description |
---|---|---|
trade_no | string | ReelPay order ID |
out_trade_no | string | Merchant Order ID |
chain | string | Chain Name |
token | string | Token symbol |
contract | string | Contract address |
protocol | string | Protocol |
logo | string | Logo |
decimal | int | Token decimal |
fiat_name | string | Fiat name (USD) |
fiat_amount | string | Fiat amount (1.2) |
status | string |
Sample Response
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
Field | Type | Description |
---|---|---|
trade_no | string | ReelPay order ID |
Sample Response
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 | Type | Description |
---|---|---|
txid | string | TXID transaction on the chain |
trade_no | string | ReelPay order ID |
fuel | int | GAS fee deduction method「1: merchant 2: user」 |
Field Description
Field | Type | Description |
---|---|---|
merchant_deduction | string | Merchant deduction amount |
actual_receipt | string | Actual amount received by the user |
Sample Response
Last updated