VOID

Overview

This endpoint is used to reverse (or void) a transaction. A reversal is typically used to cancel a transaction on the same day it was made, before the funds have settled.

Environments

Environment
Protocol
HTTP Method
URL

Sandbox

HTTPS

POST

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

Production

HTTPS

POST

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

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

The request signature. See Signature Generation Guide.

Request Body Parameters

To identify the transaction to be reversed, 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 reversal request, generated by your system.

oriCheckoutId

String

Conditionally Required

The original checkoutId of the transaction you want to reverse.

oriTransIndexCode

String

Conditionally Required

The original transIndexCode of the transaction you want to reverse.

amount

String

Yes

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

notifyUrl

String

No

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

Request Example

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

Response Body

The response object contains the immediate status of the reversal 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

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 reversal, generated by the payment platform.

data.transIndexCode

String

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

data.result

Integer

An integer code representing the status of the reversal. See Reversal Status Codes below.

data.amount

String

The reversed amount.

data.oriCheckoutId

String

The checkoutId of the original transaction that was reversed.

data.oriTransIndexCode

String

The transIndexCode of the original transaction that was reversed.

Reversal Status Codes

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

Result Code
Description

0

Success

1

Failure

2

Pending / In Progress

Success Response Example

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

Last updated