Void Transaction
Transaction Cancellation Conditions
Cancellation is only allowed when all of the following conditions are met:
- The transaction can be cancelled only if it was paid by card (
payment_method=CARD). - The transaction can be cancelled only if the order status is
CAPTURED(order_status=CAPTURED). - 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.
- Before 16:00 (4:00 PM): Funds are settled on the next working day (T + 1).
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
| Name | Type | Required | Description |
|---|---|---|---|
order_invoice_number | string | Required | Invoice number of the payment transaction to void |