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

Request Parameters

Body Parameters

ParameterSignature RequiredRequiredTypeLengthDescription
appIdYesYesstring64Application ID
subMerchantNoNoNostring64Sub-merchant number
refundOrderNoNoNostring64Refund order number, customized by the merchant
merchantOrderNoYesYesstring64Merchant order number, the number used when creating an order
walletAddressYesYesstring64User's wallet address
refundAmountYesYesstring32Refund amount
refundTokenYesYesstring32Refund token
refundNetworkYesYesstring32Refund network
emailNoNostring64User's email
refundReasonNoNostring64Reason for the refund
memoNoNostring64Memo
signNoYesstring256Signature
Check on About the sign

Response Example

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

Did this page help you?