Refund
POST
https://pay.online.ai/refund/apply
UnionPay no refund.
Request
Body Params application/json
merNo
integer
required
merOrderNo
string
required
amount
string
required
notifyUrl
string
optional
<= 512 characters
sign
string
required
<= 512 characters
operationType
string
required
version
string
required
tradeNo
string
required
remark
string
optional
<= 1000 characters
Example
{
"merNo": "111111",
"merOrderNo": "222222",
"amount": "10",
"version": "V3.0.0",
"tradeNo": "333333",
"sign": "9D6FDF4880B00B002B1F2AB61AE9A721",
"notifyUrl": "https://www.example.com",
"remark": "remark",
"operationType": "refund"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://pay.online.ai/refund/apply' \
--header 'Content-Type: application/json' \
--data-raw '{
"merNo":"111111",
"merOrderNo":"222222",
"amount":"10",
"version":"V3.0.0",
"tradeNo":"333333",
"sign":"9D6FDF4880B00B002B1F2AB61AE9A721",
"notifyUrl":"https://www.example.com",
"remark":"remark",
"operationType":"refund"
}'
Responses
🟢200Success
application/json
Body
code
string
required
message
string
required
data
object
optional
refundNo
string
required
tradeNo
string
required
merNo
string
required
merOrderNo
string
required
refundAmount
string
required
refundCurrency
string
required
Example
{
"code": "00000",
"message": "SUCCESS",
"data": {
"refundNo": "444444",
"tradeNo": "333333",
"merNo": "111111",
"merOrderNo": "222222",
"refundAmount": "10",
"refundCurrency": "CNY"
}
}
Modified at 2023-04-28 03:37:35