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

Parameter

Signature Required

Required

Type

Length

Description

appId

Yes

Yes

string

64

Application ID

merchantOrderNo

Yes

Yes

string

64

Merchant order number

walletAddress

Yes

Yes

string

64

User's wallet address

refundAmount

Yes

Yes

string

32

Refund amount

refundToken

Yes

Yes

string

32

Refund token

refundNetwork

Yes

Yes

string

32

Refund network

email

No

No

string

64

User's email

refundReason

No

No

string

64

Reason for the refund

memo

No

No

string

64

Memo

sign

No

Yes

string

256

Signature
Check on About the sign

Response Example

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