DocsEndpoints

Void a payment

Cancels a payment that has not yet settled.

POSThttps://pay.syok2pay-sandbox.com/v1/void
Base URL
https://pay.syok2pay-sandbox.com

Request body

merchant_coderequired
string

Your merchant code

reference_norequired
string

Unique void reference

original_reference_norequired
string

Reference of the original payment

Example response

json
{
  "success": true,
  "data": {
    "reference_no": "VOID-20260428-001",
    "txn_id": "txn_abc123",
    "txn_status": "VOIDED"
  },
  "trace_id": "xid_abc123"
}

// representative — data fields are the processor passthrough