Cancel VA
Cancel a VA of an order via SePay API v2. Only Unpaid VAs can be cancelled.
Cancel VA
DELETE
https://userapi.sepay.vn/v2/bank-accounts/{ba_xid}/orders/{order_xid}/va/{va_number}Note
Only VAs with Unpaid status can be cancelled.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
ba_xid | string (UUID) | Bank account UUID |
order_xid | string (UUID) | Order UUID |
va_number | string | VA number |
Code Examples
>
>
>
curl --request DELETE \--url https://userapi.sepay.vn/v2/bank-accounts/f9e8d7c6-b5a4-3210-fedc-ba0987654321/orders/b2c3d4e5-f6a7-8901-bcde-f12345678902/va/963NQDORD1234567890AB \--header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
Response (HTTP 204)
Empty body.
Errors
| HTTP | error_code | Description |
|---|---|---|
| 422 | invalid_state | VA status is not Unpaid |