API for Refund

Introduction

Merchants can initiate a refund by calling this API, allowing for partial or full refunds. Refund order supported all token and network for payment.

If the email field is filled out, 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

Request Parameters

Body Parameters:

ParameterSignature RequiredRequiredTypeLengthDescription
appIdYesYesstring64appID
merchantOrderNoYesYesstring64Merchant order number
walletAddressYesYesstring64User Wallet address
refundAmountYesYesstring32Refund amount
refundTokenYesYesstring32Refund token
refundNetworkYesYesstring32Refund network
emailNoNostring64User email
refundReasonNoNostring64Refund reason
memoNoNostring64Memo
signNoYesstring256Signature

Response Example

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