Authorizations
The API key. For more details, refer to API key.
In the API playground, enter your API secret, and your API key will be accordingly calculated.
Body
The request body to create a pay-in order.
The merchant ID.
"1001"
The ID of the cryptocurrency used for payment. Supported values:
- USDC:
ETH_USDC
,ARBITRUM_USDCOIN
,SOL_USDC
,BASE_USDC
,MATIC_USDC2
,BSC_USDC
- USDT:
TRON_USDT
,ETH_USDT
,ARBITRUM_USDT
,SOL_USDT
,BASE_USDT
,MATIC_USDT
,BSC_USDT
"ETH_USDT"
The base amount of the order, excluding the developer fee (specified in fee_amount
), in the currency specified by currency
. If currency
is not specified, the amount is in the cryptocurrency specified by token_id
.
Values must be greater than 0
and contain two decimal places.
"100.00"
The developer fee for the order, in the currency specified by currency
. If currency
is not specified, the fee is in the cryptocurrency specified by token_id
.
If you are a merchant directly serving payers, set this field to 0
. Developer fees are only relevant for platforms like payment service providers (PSPs) that charge fees to their downstream merchants.
The developer fee is added to the base amount (order_amount
) to determine the final charge. For example:
- Base amount (
order_amount
): "100.00" - Developer fee (
fee_amount
): "2.00" - Total charged to customer: "102.00"
Values can contain up to two decimal places.
"2.00"
A unique reference code assigned by you as a developer to identify this order in your system. This code must be unique across all orders in your system. The code should have a maximum length of 128 characters.
"P20240201001"
The fiat currency for the base order amount and the developer fee. Currently, only USD
is supported.
If left empty, both order_amount
and fee_amount
will be denominated in the cryptocurrency specified by token_id
"USD"
A unique reference code assigned by the merchant to identify this order in their system. The code should have a maximum length of 128 characters.
"M20240201001"
The number of seconds until the pay-in order expires, counted from when the request is sent. For example, if set to 1800
, the order will expire in 30 minutes. Must be greater than zero and cannot exceed 3 hours (10800 seconds). After expiration:
- The order status becomes final and cannot be changed
- The
received_token_amount
field will no longer be updated - Funds received after expiration will be categorized as late payments and can only be settled from the developer balance.
- A late payment will trigger a
transactionLate
webhook event.
1800
This field has been deprecated.
false
A custom exchange rate that defines how much fiat currency equals 1 unit of cryptocurrency. If not provided, the system's default exchange rate will be used.
For example, if the fiat currency is USD and the cryptocurrency is USDT, setting custom_exchange_rate
to "0.99"
means that 1 USDT will be valued at 0.99 USD.
"1.00"
Response
The request was successful.
The order ID.
"5001"
The ID of the cryptocurrency used for payment. Supported tokens:
- USDC:
ETH_USDC
,ARBITRUM_USDCOIN
,SOL_USDC
,BASE_USDC
,MATIC_USDC2
,BSC_USDC
- USDT:
TRON_USDT
,ETH_USDT
,ARBITRUM_USDT
,SOL_USDT
,BASE_USDT
,MATIC_USDT
,BSC_USDT
"ETH_USDT"
The ID of the blockchain network where the payment transaction should be made. Supported chains:
- USDC:
ETH
,ARBITRUM
,SOL
,BASE
,MATIC
,BSC
- USDT:
TRON
,ETH
,ARBITRUM
,SOL
,BASE
,MATIC
,BSC
"ETH"
The cryptocurrency amount to be paid for this order.
"103.03"
The recipient wallet address to be used for the payment transaction.
"0x1234567890abcdef1234567890abcdef12345678"
The fiat currency of the order.
"USD"
The base amount of the order in fiat currency, excluding the developer fee (specified in fee_amount
).
"100.00"
The developer fee for the order in fiat currency. It is added to the base amount (order_amount
) to determine the final charge.
"2.00"
The exchange rate between a currency pair. Expressed as the amount of fiat currency per one unit of cryptocurrency. For example, if the cryptocurrency is USDT and the fiat currency is USD, a rate of "0.99" means 1 USDT = 0.99 USD.
"0.99"
A unique reference code assigned by the developer to identify this order in their system.
"P20240201001"
The current status of the pay-in order:
Pending
: The order has been created and is awaiting payment. No incoming transaction has been detected.Processing
: An incoming transaction has been detected at the recipient address.Completed
: The payment has been fully received and is now complete.Expired
: The order has reached its expiration time without receiving any payment, or the order has been cancelled by the Update pay-in order operation.Underpaid
: The order has reached its expiration time. A payment was received but the amount is less than the order's required amount.
Pending
, Processing
, Completed
, Expired
, Underpaid
"Pending"
The total cryptocurrency amount received for this order. Updates until the expiration time. Precision matches the token standard (e.g., 6 decimals for USDT).
"103.0305"
The merchant ID.
"1001"
The expiration time of the pay-in order, represented as a UNIX timestamp in seconds.
1711324800
A unique reference code assigned by the merchant to identify this order in their system.
"M20240201001"
The creation time of the order, represented as a UNIX timestamp in seconds.
1744689600
The last update time of the order, represented as a UNIX timestamp in seconds.
1744689600
An array of transactions associated with this pay-in order. Each transaction represents a separate blockchain operation related to the pay-in process.
The current status of a settlement.
Pending
: The settlement has been created and is awaiting processing.Processing
: The settlement is being processed.Completed
: The funds have been successfully deposited into the bank account or the withdrawal crypto address.PartiallyCompleted
: Some settlement transactions have been completed successfully, while others have failed.Failed
: The settlement could not be completed due to an error.
Pending
, Processing
, Completed
, PartiallyCompleted
, Failed
"Pending"