- Tổng quan
- Hướng dẫn xác thực
- API Beta 1.0
- API Zalo Mini App (Beta)
- Khách hàng
- Đơn hàng
- Sản phẩm
- Lịch khởi hành
- Lead (Cơ hội)
- Khách sạn
- Kế toán
- Cấu hình
- Zalo ZNS
- Địa điểm
- Nhân sự nội bộ
- Webhook
- Trạng thái khách hàng
- Loại dịch vụ
- Zalo ZNS
Cancel invoice
POST
/api/v1/invoices/{id}/cancel
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
integer
required
Example:
17
Body Params application/json
cancel_note
string
optional
Example
{
"cancel_note": "Hóa đơn xuất sai số tiền"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://demo.tourwell.net/api/v1/invoices/17/cancel' \
--header 'Content-Type: application/json' \
--data-raw '{
"cancel_note": "Hóa đơn xuất sai số tiền"
}'
Responses
🟢201Created
application/json
Body
success
boolean
required
message
string
required
data
object
required
code
string
required
Example
{"success":true,"message":"Invoice Canceled successfully","data":{"code":"HD017"}}
Modified at 2025-05-16 06:33:21