Paywizard Integration
WizarPOS
  • Overview
  • Choose Your Best Practice
  • Cloud API
    • Quick Start - Cloud API
    • PayWizard Open Platform API Signature Guide V3
    • POS & Payment Terminal Binding Process
      • API 1: [Deprecated]Get Access Tokens
      • API 2: Bind POS & Payment Terminal
      • API 3: Get POS & Terminal Binding List
      • API : Unbind Terminal with POS
    • Do Transactions
      • API 4: POS Initiate Transaction
        • Transaction Request Example
      • API 5: POS System Query Transaction Results
      • Transaction Type
      • Terminal API: Subscribe Transaction Results
    • Get Transaction Result
      • API: Transaction Result Push
      • API: Get Transaction Result
      • API: Get Merchant Infomation
    • E-Receipt Intro
      • Terminal API : Upload Transaction Info
      • Terminal API : Upload Settlement Info
  • Semi integration
    • Quick Start - Semi Integration
    • Payment App Integration Protocol
    • Payment App AIDL Integration
  • payment parameter
    • Quick Start - Payment Parameter Push
    • TSYS Transit Parameter Push
    • Fiserv Parameter Push
    • Query Push Status
  • online card payment
    • Quick Start - Online Payment
    • Web Element Integration
    • Client Checkout Page SDK
  • APM (QR/WALLET)
    • Quick Start: QR Payment API Integration
    • Quick Pay - Merchant Scan
    • Generate QR Code - Customer Scan
    • Query Transaction Status
    • Refund
    • VOID
    • Close Order
  • loyalty
    • Quick Start - Loyalty API
    • Activate
    • Query
    • Top-up
    • Pay
    • Void
    • Issue Points
    • Redeem Points
    • Add Tip
Powered by GitBook
On this page
  1. APM (QR/WALLET)

Refund

PreviousQuery Transaction StatusNextVOID

Last updated 8 hours ago

CtrlK
  • Overview
  • Environments
  • Headers
  • Request Body Parameters
  • Request Example

Overview

This endpoint is used to issue a full or partial refund for a previously completed transaction.

Note: Partial refunds are not supported by all payment channels. Please check the documentation for your specific channel.

Environments

Environment
Protocol
HTTP Method
URL

Sandbox

HTTPS

POST

https://uat.paywizard.biz/ovstrade/openPay/refundOrder

Production

HTTPS

POST

https://portal.paywizard.biz/ovstrade/openPay/refundOrder

Headers

Key
Type
Required
Description

Content-Type

String

Yes

Must be application/json.

jwt-token

String

Yes

The transaction token obtained using your developer credentials.

sign

String

Yes

Request Body Parameters

To identify the transaction to be refunded, you must provide either the oriCheckoutId or the oriTransIndexCode.

Parameter
Type
Required
Description

clientId

String

Yes

Your unique developer ID.

transIndexCode

String

Yes

A new, unique order ID for this specific refund request, generated by your system.

oriCheckoutId

String

Conditionally Required

Note: You must provide at least one of the original identifiers (oriCheckoutId or oriTransIndexCode). If both are sent, oriCheckoutId will take precedence.

Request Example

{
    "clientId": "825429536610058240",
    "transIndexCode": "202506091432000000013",
    "oriCheckoutId": "917121926164512768",
    "amount": "0.01"
}

Response Body

The response object contains the immediate status of the refund request.

Parameter
Type
Description

code

Integer

The HTTP status code. 200 indicates a successful request. Any other value indicates an error.

msg

String

A human-readable message describing the result. "success" on successful requests.

timestamp

String

The UTC timestamp of the response. Format: YYYY-MM-DD HH:mm:ss.

data

Object

Refund Status Codes

The result field indicates the immediate outcome of the refund request. The final status may be delivered via the notifyUrl.

Result Code
Description

0

Success

1

Failure

2

Pending / In Progress

Success Response Example

JSON

{
    "code": 200,
    "msg": "success",
    "timestamp": "2025-06-09 15:32:00",
    "data": {
        "mid": "007889-3-006",
        "paywizardId": "10280000002",
        "checkoutId": "917122074735149056",
        "transIndexCode": "202506091432000000015",
        "amount": "0.01",
        "result": 0,
        "oriCheckoutId": "917121926164512768",
        "oriTransIndexCode": "202506091432000000012"
    }
}

The request signature. See Signature Generation Guide.

The original checkoutId of the transaction you want to refund.

oriTransIndexCode

String

Conditionally Required

The original transIndexCode of the transaction you want to refund.

amount

String

Yes

The amount to be refunded. Example: "1.50".

notifyUrl

String

No

The callback URL where you will receive the final refund result notification.

A container for the successful response data. Null on error.

data.mid

String

The merchant ID.

data.paywizardId

String

The unique platform ID for the transaction.

data.checkoutId

String

The new, unique transaction ID for this refund, generated by the payment platform.

data.transIndexCode

String

The unique refund order ID that you provided in the request.

data.result

Integer

An integer code representing the status of the refund. See Refund Status Codes below.

data.amount

String

The refunded amount.

data.oriCheckoutId

String

The checkoutId of the original transaction that was refunded.

data.oriTransIndexCode

String

The transIndexCode of the original transaction that was refunded.