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

Update invoice

PUT
/api/v1/invoices/{id}
Cập nhật thông tin 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:
25
Body Params application/json
total_amount
string 
optional
Số tiền hóa đơn
description
string 
optional
Nội dung xuất hóa đơn (theo yêu cầu của khách hàng)
note
string 
optional
Lưu ý riêng cho kế toán
service_summary
string 
optional
Dịch vụ khách sử dụng
tax_code
string 
optional
Mã số thuế
company_name
string 
optional
Tên công ty
company_address
string 
optional
Địa chỉ hóa đơn
forward_email
string 
optional
Email nhận hóa đơn khi phát hành
lookup_url
string 
optional
Link kiêm tra số hóa sau khi phát hành thành công
Example
{
    "total_amount": "195480000",
    "description": "Tour Hà Giang",
    "note": "Hóa đơn 8%",
    "service_summary": "Tour Hà Giang",
    "tax_code": "0110114715",
    "company_name": "CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ UPWELL",
    "company_address": "Số nhà 20, Ngõ 66a, Phố Triều Khúc, Xã Tân Triều, Huyện Thanh Trì, Thành phố Hà Nội, Việt Nam",
    "forward_email": "kt@upwell.vn",
    "lookup_url": "https://app3.meinvoice.vn/login/1?ReturnUrl=%2F"
}

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 PUT 'https://demo.tourwell.net/api/v1/invoices/25' \
--header 'Content-Type: application/json' \
--data-raw '{
    "total_amount": "195480000",
    "description": "Tour Hà Giang",
    "note": "Hóa đơn 8%",
    "service_summary": "Tour Hà Giang",
    "tax_code": "0110114715",
    "company_name": "CÔNG TY TNHH GIẢI PHÁP CÔNG NGHỆ UPWELL",
    "company_address": "Số nhà 20, Ngõ 66a, Phố Triều Khúc, Xã Tân Triều, Huyện Thanh Trì, Thành phố Hà Nội, Việt Nam",
    "forward_email": "kt@upwell.vn",
    "lookup_url": "https://app3.meinvoice.vn/login/1?ReturnUrl=%2F"
}'

Responses

🟢201Created
application/json
Body
success
boolean 
required
message
string 
required
data
object 
required
code
string 
required
Example
{"success":true,"message":"Invoice updated successfully","data":{"code":"HD025"}}
Modified at 2025-05-30 10:07:46
Previous
Confirm Payment
Next
Issue Invoice
Built with