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 refund order.
The request ID that is used to track a refund request. The request ID is provided by you and must be unique.
"123e4567-e89b-12d3-a456-426614174004"
The amount to refund in cryptocurrency. The amount must be a positive number and can have up to two decimal places
"0.25"
The ID of the cryptocurrency used for refund. 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"
Specifies the source of funds for the refund:
Merchant
: The refund amount will be deducted from the merchant balance.Psp
: The refund amount will be deducted from the developer balance.
Merchant
, Psp
"Merchant"
The merchant ID.
"M1001"
The address where the refunded cryptocurrency will be sent.
"0x9876543210abcdef1234567890abcdef12345678"
The ID of the original pay-in order associated with this refund. Use this to track refunds against specific payments.
"R20250304-M1001-1001"
Whether to charge developer fee to the merchant. This field is only valid when refund_type
is Merchant
. For more information, please refer to Funds allocation and balances.
-
true
: The fee amount (specified inmerchant_fee_amount
) will be deducted from the merchant's balance and added to the developer's balance -
false
: The merchant is not charged any developer fee
When enabled, ensure both merchant_fee_amount
and merchant_fee_token_id
are properly specified.
false
The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by merchant_fee_token_id
. This field is only valid when refund_type
is Merchant
. For more information, please refer to Funds allocation and balances.
This field is required when charge_merchant_fee
is true
. Must be:
- A positive integer with up to two decimal places.
- Less than the refund amount
"0.01"
The ID of the cryptocurrency used for the developer fee. It must be the same as token_id
. 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"
Response
Refund transaction created successfully.
The refund order ID.
"R20250304-M1001-1001"
The ID of the cryptocurrency used for refund.
"ETH_USDT"
The ID of the blockchain network on which the refund transaction occurs.
"ETH"
The amount in cryptocurrency to be returned for this refund order.
"0.0025"
The recipient's wallet address where the refund will be sent.
"0x9876543210abcdef1234567890abcdef12345678"
The current status of the refund order. For information about transaction status, see Transaction statuses and sub-statuses.
Pending
: The refund order has been created but the transaction has not been initiated.Processing
: The refund order is currently being processed, with at least one refund transaction in progress.Completed
: All refund transactions have been completed successfully.PartiallyCompleted
: Some refund transactions have been completed successfully, while others have failed.Failed
: All refund transactions have failed.PendingConfirmation
: The refund order has been created but the address to send (to_address
) has not been specified. Once you use the Update refund order operation to specify the address, the status will be updated toPending
.
Pending
, Processing
, Completed
, PartiallyCompleted
, Failed
, PendingConfirmation
"Pending"
The request ID provided by you when creating the refund request.
"123e4567-e89b-12d3-a456-426614174004"
The ID of the pay-in order corresponding to this refund.
"O20250304-M1001-1001"
The merchant ID.
"M1001"
Specifies the source of funds for the refund:
Merchant
: The refund amount will be deducted from the merchant balance.Psp
: The refund amount will be deducted from the developer balance.
Merchant
, Psp
"Merchant"
The creation time of the refund order, represented as a UNIX timestamp in seconds.
1744689600
The last update time of the refund order, represented as a UNIX timestamp in seconds.
1744689600
The initiator of this settlement request. Can return either an API key or the Payments App's ID.
- Format
api_key_<API_KEY>
: Indicates the settlement request was initiated via the Payments API using the API key. - Format
app_<APP_ID>
: Indicates the settlement request was initiated through the Payments App using the App ID.
"b2ae1b5aaade686c968ef2bbd31cc75ba94e5a85fd9cb0b85b81dcc15f920e9d"
An array of transactions associated with this refund order. Each transaction represents a separate blockchain operation related to the refund process.
Whether to charge developer fee to the merchant for the refund.
-
true
: The fee amount (specified inmerchant_fee_amount
) will be deducted from the merchant's balance and added to the developer's balance -
false
: The merchant is not charged any developer fee.
false
The developer fee amount to charge the merchant, denominated in the cryptocurrency specified by merchant_fee_token_id
. This is only applicable if charge_merchant_fee
is set to true
.
"0.0001"
The ID of the cryptocurrency used for the developer fee. This is only applicable if charge_merchant_fee
is set to true.
"ETH_USDT"