Tourwell Open APIs
  1. Hóa đơn
Tourwell Open APIs
  • Tổng quan
  • Hướng dẫn xác thực
  • API Beta 1.0
  • API Zalo Mini App (Beta)
  • Khách hàng
    • v1
      • Get by id
      • Get all customer
      • Create customer
      • Update customer
      • Get order history
  • Đơn hàng
    • v1
      • Get by id
      • Get all order
      • Create order tour
      • Create order product
      • Create order hotel
      • Confirm payment order
  • Sản phẩm
    • v1
      • Create product
      • Get by id
      • Calendar pricing
  • Lịch khởi hành
  • Lead (Cơ hội)
    • v1
      • Get all lead
      • Get by id
      • Create lead
      • Update lead
  • Khách sạn
    • v1
      • Get all hotel
      • Get by id
  • Kế toán
    • Phiếu thu
      • v1
        • Get all receipt
    • Phiếu chi
      • v1
        • Get all payment
        • Confirm Payment
    • Hóa đơn
      • Update invoice
        PUT
      • Issue Invoice
        POST
      • Get by id
        GET
      • Cancel invoice
        POST
  • Cấu hình
    • Zalo ZNS
      • Danh sách Tag
      • Get token
    • Địa điểm
      • Search
    • Nhân sự nội bộ
      • Search
    • Webhook
      • Hướng dẫn cài đặt
    • Trạng thái khách hàng
      • Get All
    • Loại dịch vụ
  1. Hóa đơn

Cancel invoice

POST
/api/v1/invoices/{id}/cancel
Hủy hóa đơn

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
integer 
required
Id hóa đơn từ CRM
Example:
17
Body Params application/json
cancel_note
string 
optional
Lý do hủy
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
Previous
Get by id
Next
Zalo ZNS
Built with