OnlinePay API
  1. API Reference
OnlinePay API
  • Introduction
  • How to start
  • Country Code
  • Currency Code
  • Error Code
  • API Reference
    • Credit Card
      POST
    • Alipay
      POST
    • Union Pay
      POST
    • WeChat
      POST
    • Cryptocurrency Payment
      POST
    • OnlinePay CheckOut
      POST
    • notifyUrl
      POST
    • Refund
      POST
    • Query
      POST
    • QueryOrderList
      POST
  1. API Reference

Refund

POST
https://pay.online.ai/refund/apply
There are refunds for Credit Cards and Alipay,
UnionPay no refund.

Request

Body Params application/json

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 Code 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

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
Previous
notifyUrl
Next
Query
Built with