This operation creates a pay-in order.
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.
The request body to create a pay-in order.
The merchant ID.
"1001"
A unique reference code assigned by the developer to identify this order in their system.
"P20240201001"
The developer fee for the order. It is added to the base amount (pricing_amount) to determine the final charge. For example, if pricing_amount is "100.00" and fee_amount is "2.00", the payer will be charged "102.00" in total, with "100.00" being settled to the merchant account and "2.00" settled to the developer account. Values must be greater than 0 and contain two decimal places.
"2.00"
The ID of the cryptocurrency used for payment. Supported values:
ETH_USDC, ARBITRUM_USDC, SOL_USDC, BASE_USDC, MATIC_USDC, BSC_USDCTRON_USDT, ETH_USDT, ARBITRUM_USDT, SOL_USDT, BASE_USDT, MATIC_USDT, BSC_USDT"ETH_USDT"
A unique reference code assigned by the merchant to identify this order in their system.
"M20240201001"
The pricing currency that denominates pricing_amount and fee_amount. If left empty, both values will be denominated in payable_currency.
Currently, For a complete list of supported currencies, see Supported chains and tokens.
"USD"
The base amount of the order, excluding the developer fee (specified in fee_amount). Values must be greater than 0 and contain two decimal places.
"100.00"
The total amount the payer needs to pay, denominated in the specified payable_currency. If this field is left blank, the system will automatically calculate the amount at order creation using the following formula: (pricing_amount + fee_amount) / current exchange rate.
Values must be greater than 0 and contain two decimal places.
"103.03"
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:
received_token_amount field will no longer be updatedtransactionLate webhook event.1800
The allowed amount deviation, with precision up to 1 decimal place.
For example, if payable_amount is 100.00 and amount_tolerance is 0.50:
"0.5"
This field has been deprecated. Please use pricing_currency instead.
"USD"
This field has been deprecated. Please use pricing_amount instead.
"100.00"
This field has been deprecated. Please use payable_currency instead.
"ETH_USDT"
This field has been deprecated.
false
This field has been deprecated.
"1.00"
The request was successful.
The order ID.
"5001"
A unique reference code assigned by the developer to identify this order in their system.
"P20240201001"
The developer fee for the order. It is added to the base amount to determine the final charge.
"2.00"
The ID of the blockchain network where the payment transaction should be made.
"ETH"
The cryptocurrency amount to be paid for this order.
"103.03"
The exchange rate between payable_currency and pricing_currency, calculated as (pricing_amount + fee_amount) / payable_amount.
payable_amount was not provided in the order creation request.
"0.99"
The recipient wallet address to be used for the payment transaction.
"0x1234567890abcdef1234567890abcdef12345678"
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"
A unique reference code assigned by the merchant to identify this order in their system.
"M20240201001"
The pricing currency of the order.
"USD"
The base amount of the order, excluding the developer fee (specified in fee_amount).
"100.00"
The ID of the cryptocurrency used for payment.
"ETH_USDT"
The allowed amount deviation, with precision up to 1 decimal place.
For example, if payable_amount is 100.00 and amount_tolerance is 0.50:
"0.5"
The expiration time of the pay-in order, represented as a UNIX timestamp in seconds.
1711324800
The created time of the order, represented as a UNIX timestamp in seconds.
1744689600
The updated 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 settlement process.
This field has been deprecated. Please use pricing_currency instead.
This field has been deprecated. Please use pricing_amount instead.
This field has been deprecated. Please use payable_currency instead.
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"