API for Refund

Introduction

Merchants can initiate a refund by calling this API, allowing for partial or full refunds. Refunds are supported for all tokens and networks used in payments.

If the email field is provided, ACH will send a refund notification email to the user after the refund is processed.

API Description

Request Method: POST

Request URL: open/api/payment/refund

Body Parameters

ParameterSignature RequiredRequiredTypeLengthDescription
appIdYesYesstring64Application ID
merchantOrderNoYesYesstring64Merchant order number
walletAddressYesYesstring64User's wallet address
refundAmountYesYesstring32Refund amount
refundTokenYesYesstring32Refund token
refundNetworkYesYesstring32Refund network
emailNoNostring64User's email
refundReasonNoNostring64Reason for the refund
memoNoNostring64Memo
signNoYesstring256Signature

Response Example

{
    "code": "0",
    "msg": "success",
    "model": "",
    "traceId": "66cff1bec8a8a398c1c8e80e38e7572e",
    "success": true,
    "error": false
}