OnlinePay API
  1. Refund
OnlinePay API
  • Introduction
    • Introduction
    • How to Start
    • Country Code
    • Country Info
    • Currency Code
    • Error Code
    • Transfer Order Info Type
    • Transfer Order File Type
    • Per Bank
    • Spei Bank
  • Payin
    • OnRamps API
      GET
    • Alipay API
      POST
    • Credit Card API
      POST
    • Crypto Pay API
      POST
    • GCash API
      POST
    • PerTransfer API
      POST
    • PIX API
      POST
    • SEPA API
      POST
    • SPEI API
      POST
    • Union Pay API
      POST
    • WeChat API
      POST
    • CheckOut
      POST
    • CheckOut Payment
      POST
  • Payout
    • Bank Account
      POST
    • Card
      POST
    • Per Transfer
      POST
    • Pix
      POST
    • CheckOut
      POST
    • Spei Payout
      POST
  • Notify
    • Notify WebHook API
    • Card Notify WebHook API
  • Refund
    • Refund API
      POST
  • Review
    • Upload SEPA File API
  • Query
    • Query API
    • QueryBalance API
    • QueryOrderList API
  • Card
    • CreateCardholder API
    • CreateCard API
    • QueryCardInfo API
    • ActiveCard API
    • TopUpCard API
    • CardWithdraw API
    • QueryCardTransaction API
    • QueryCardBalance API
    • FreezeCard API
    • UnFreezeCard API
    • CancelCard API
    • AddVpaScene API
    • UploadFile API
  1. Refund

Refund API

Testing Env
https://testpay.onlinepay.ai
Testing Env
https://testpay.onlinepay.ai
POST
refund/apply
There are refunds for SEPA,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": "12323425345",
    "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://testpay.onlinepay.airefund/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": "12323425345",
    "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 2025-03-18 08:33:00
Previous
Card Notify WebHook API
Next
Upload SEPA File API
Built with