1. v1
Tourwell Open APIs
  • Tổng quan
  • Hướng dẫn xác thực
  • API Zalo Mini App (Beta)
  • API Changelog
  • Error Response
  • Khách hàng
    • v1
      • Get by id
      • Get all customer
      • Create customer
      • Update customer
      • Get order history
      • Get destinations
      • Get guests
      • Get by id care history
      • Create company
      • Get all care history
      • Get all company
  • Đơn hàng
    • v1
      • Get by id
        GET
      • Get all order
        GET
      • Get Passengers Order
        GET
      • Create order tour
        POST
      • Create order product
        POST
      • Create order hotel
        POST
      • Create order flight
        POST
      • Confirm payment order
        POST
      • Cancel order
        POST
      • Import Order Flight
        POST
      • Create cost order
        POST
      • Update cost order
        PATCH
      • Delete cost order
        DELETE
      • Create order multiple services
        POST
      • Add services to order.
        POST
      • Change order status
        POST
  • Điều hành
    • v1
      • Overview
      • Create row cost
      • Update row cost
      • Delete row cost
  • Sản phẩm
    • v1
      • Create product
      • Get by id
      • Calendar pricing
      • Get all product
      • Get schedule by id
      • Update product
  • Chiết tinh giá
    • v1
  • Nhà cung cấp
    • v1
      • Get all suppliers
      • Get suppliers products
      • Get all tour guides
      • Create Supplier & Hotel
      • Create Prices Suppliers products
      • Append Prices Hotel
  • Lịch khởi hành
    • v1
      • Get all tour
      • Create tour
  • Lead (Cơ hội)
    • Overview
    • Update History
    • v1
      • Get all lead
      • Get by id
      • Create lead
      • Update lead
  • Báo giá
    • v1
      • Get all
      • Update schedules
      • Update policy
  • Khách sạn
    • v1
      • Get all hotel
      • Get by id
  • Kế toán
    • Phiếu thu
      • v1
        • Get all receipt
        • Create receipt
        • Update receipt
        • Confirm Receipt Success
    • Phiếu chi
      • v1
        • Get all payment
        • Confirm Payment
    • Hóa đơn bán ra
      • Update invoice
      • Issue Invoice
      • Get by id
      • Cancel invoice
    • Hóa đơn mua vào
      • Import
  • Phê duyệt
    • v1
      • Overview
      • Summary
      • Approvals
  • 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
    • Hạng thành viên
      • Get All
    • Loại dịch vụ
    • Mã sân bay
      • Get All Airport
    • Phương thức thanh toán
      • Get All
    • Nguồn bán hàng
      • Get All
    • Phễu chuyển đổi lead
      • Trạng thái lead
      • Trạng thái báo giá
  • Hướng dẫn tích hợp
    • Hướng dẫn tích hợp thanh toán trực tuyến qua Website và Tourwell
    • Hướng dẫn tích hợp thanh toán trực tuyến qua Website, Cổng thanh toán và Tourwell
  • MCP
    • Hướng dẫn kết nối
  • Schemas
    • ErrorResponse
  1. v1

Change order status

POST
/orders/{id}/status
Chuyển đơn hàng qua lại giữa Đang xử lý và Thành công. Kết quả giống thao tác đổi trạng thái trên màn quản trị:
ghi lịch sử đơn, đồng bộ công nợ, phân loại / phân hạng khách hàng và gửi webhook như bình thường.
statusTrạng tháiXử lý
0Đang xử lýXóa ngày chốt đơn, mở khóa đơn
1Thành côngGhi nhận ngày chốt đơn, mở khóa đơn, gửi webhook order.confirm
Chỉ áp dụng cho đơn đang ở trạng thái Đang xử lý hoặc Thành công. Đơn Đã hủy hoặc Giữ chỗ trả 400.
Hủy đơn dùng Cancel order (POST /orders/{id}/cancel). Giữ chỗ đi theo luồng tạo đơn giữ chỗ
(Create order tour POST /orders/tours), không chuyển bằng API này.
Đơn đã ở đúng trạng thái được truyền → 400, dữ liệu không thay đổi.
Hệ thống bật cấu hình yêu cầu thanh toán trước khi chuyển thành công: đơn chưa có khoản thanh toán nào không chuyển được sang 1 (400).
Chuyển sang Thành công không tự chuyển điều hành dịch vụ. Muốn chuyển điều hành, dùng Transfer operator (POST /orders/{id}/transfer-operator).

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Header Params

Body Params application/json

Examples
{
    "status": 1
}

Request Code 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
curl --location 'https://demo.tourwell.net/orders/1728/status' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "status": 1
}'

Responses

🟢200Thành công
application/json
Bodyapplication/json

Example
{
    "success": true,
    "message": "Chuyển trạng thái thành công",
    "data": {
        "id": 1728,
        "code": "UP1728",
        "status": 1,
        "status_title": "Thành công"
    }
}
🟠400Lỗi nghiệp vụ
🟠401Chưa xác thực
🟠404Không tìm thấy
🟠422Sai dữ liệu
Modified at 2026-11-02 06:02:29
Previous
Add services to order.
Next
Overview
Built with