Void Transaction


Transaction Cancellation Conditions

Cancellation is only allowed when all of the following conditions are met:
  1. The transaction can be cancelled only if it was paid by card (payment_method=CARD).
  2. The transaction can be cancelled only if the order status is CAPTURED (order_status=CAPTURED).
  3. The transaction can be cancelled only if it has not yet reached the settlement time. Settlement schedule:
    • Before 16:00 (4:00 PM): Funds are settled on the next working day (T + 1).
      Example: 15:30 on Tuesday (T3) → settled on Wednesday (T4).
    • After 16:00 (4:00 PM): Funds are settled after 2 working days (T + 2).
      Example: 17:00 on Tuesday (T3) → settled on Thursday (T5).
    • After 16:00 on Friday (T6): Funds are settled on Monday (T2) of the following week.
POST
https://pgapi-sandbox.sepay.vn/v1/order/voidTransaction
  -u "MERCHANT_123:your-secret-key" \
  -H "Content-Type: application/json" \
  -d '{
    "order_invoice_number": "{order_invoice_number}"
  }'

Parameters

NameTypeRequiredDescription
order_invoice_number
stringRequired
Invoice number of the payment transaction to void