Hủy đơn hàng

Hủy đơn hàng VA qua SePay API v2. Chỉ đơn hàng trạng thái Pending mới có thể hủy.


Hủy đơn hàng

DELETE
https://userapi.sepay.vn/v2/bank-accounts/{ba_xid}/orders/{order_xid}
Lưu ý

Chỉ đơn hàng trạng thái Pending mới có thể hủy.

Tham số
ba_xidstringrequired

UUID tài khoản ngân hàng

order_xidstringrequired

UUID đơn hàng

Code mẫu
>
>
>
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)

Body rỗng.

Lỗi
HTTPerror_codeMô tả
422invalid_stateTrạng thái đơn hàng không phải Pending