Refund
Refund
Last updated
Refund
Last updated
When a refund is needed due to the buyer's or seller's reason after an order has been placed for some time, the seller can refund the payment to the buyer through the refund interface. After receiving and verifying the refund request, BonusPay will initiate the refund to the refund address according to the refund rules, and an additional refund fee will be charged.
Interface Address
Sandbox URL:
Production URL:
CREATED
Created
SUCCESS
Refunded successfully
FAILURE
Refund failed
Http Header
Language
Content-Language
Optional
String(10)
en
en-English
Signature
sign
Required
String
Merchant ID
Partner-Id
Required
String(12)
Http Body
Request Time
requestTime
Required
Timestamp(3)
1581493898000
Business Content
bizContent
Required
PlaceRefundOrderRequest
-
Business Content
Refund Merchant Order No
refundMerchantOrderNo
Required
String(64)
Me23484
-
Original Merchant Order No
originMerchantOrderNo
Optional
String(64)
-
Either originMerchantOrderNo or originOrderNo is required, and they cannot be empty or have values at the same time
Original BonusPay Order No
originOrderNo
Optional
String(32)
22000000000001
Refund Amount
amount
Required
Money
-
Backend Callback URL
notifyUrl
Optional
String(200)
-
Operator Name for Refund
operatorName
Optional
String(200)
-
Refund Reason
reason
Optional
String(64)
-
Chain Code
chainCode
Optional
String(32)
ETH
This parameter is required for chain payment
Refund Address
refundAddress
Optional
String(128)
This parameter is required for chain payment
Reserved Field
reserved
Optional
String(200)
Merchant reserved field, the returned content will be same with the content submitted by the merchant
Http Header
Signature
sign
Required
String
-
The body field in Http Body is only returned when applyStatus is SUCCESS and code is 0.
Http Body
Response Header
head
Required
ResponseHeader
-
Response Body
body
Optional
PlaceRefundOrderResponse
-
Refund Order
refundOrder
Optional
RefundOrder
-
Refund Summary
refundSummary
Optional
RefundSummary
-
Return Codes
0
SUCCESS
Success
400
INVALID_PARAMETER
Invalid parameter
Adjust request parameters
400
REQUESTTIME_TOO_EARLY
Request time is too early compared to the current time
Adjust request time
400
REQUESTTIME_TOO_LATER
Request time is too late compared to the current time
Adjust request time
402
RATE_LIMIT_REJECT
Request frequency is too high
Reduce request frequency
403
UNAUTHORIZED
Unauthorized API access
Contact BonusPay
404
SERVICE_NOT_AVAILABLE
API service is not available
Contact BonusPay
500
SYSTEM_ERROR
System error
Contact BonusPay, try again later
504
SERVICE_TIMEOUT
Service timeout
Try again later
601
RISK_FAIL
Risk verification failed
Adjust business
77002
ORDER_FAILURE
Failed orders cannot be refunded
Adjust merchant order number
77004
MERCHANT_ORDER_NO_NOT_EXIST
The order with the specified merchant order number does not exist
Adjust merchant order number
77005
REFUND_AMOUNT_EXCEEDED
The refund amount exceeds the amount available for refund Available refund amount is the original order amount minus refunded amount and amount in refund process
Adjust refund amount
77013
REFUND_MERCHANT_ORDER_NO_EXIST
A refund request with the same order number and different business parameters is made
Adjust refund merchant order number
77016
ORDER_NO_NOT_EXIST
The order with the specified BonusPay order number does not exist
Adjust BonusPay order number
77024
ORDER_NOT_PAID
A refund request is made for an unpaid order
Adjust business parameters