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