Tourwell Open APIs
  1. v1
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
      • Get all order
        GET
      • Create order tour
        POST
      • Create order product
        POST
      • Create order hotel
        POST
      • Confirm payment order
        POST
  • 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
      • Issue Invoice
      • Get by id
      • Cancel invoice
  • 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. v1

Get by id

GET
/api/v1/orders/{id}

Request

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

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 GET 'https://demo.tourwell.net/api/v1/orders/'

Responses

🟢200OK
application/json
Body
data
object 
required
id
integer 
required
code
string 
required
link_erp
string 
required
customer
object 
required
company
array[string]
required
Thông tin công ty/doanh nghiệp/đối tác
creator
object 
required
source
object 
required
sales_person
array [object {2}] 
required
services
array [object {14}] 
required
Danh sách dịch vụ
created_at
string 
required
order_at
string 
required
cancel_at
string 
required
currency
object 
required
total_payment
object 
required
Tổng tiền đơn hàng
total_paid
object 
required
Tổng tiền đã thanh toán
total_remaining
object 
required
Tổng tiền còn thiếu
total_discount
object 
required
Thông tin chiết khấu/giảm giá
payment_state
string 
required
Trạng thái thanh toán
Example
{"data":{"id":1074,"code":"UP2074","link_erp":"http://tour.upwell.local/admin/order/1074/show","customer":{"id":2147,"code":"KH2147","name":"(Chị) Thân Thị Cẩm Lệ","link_erp":"http://tour.upwell.local/admin/customer/2147/show"},"company":[],"creator":{"id":1,"name":"Admin"},"source":{"id":1,"name":"Nguồn 1"},"sales_person":[{"id":1,"name":"Admin"}],"services":[{"id":1481,"service_info":{"id":15,"name":"Tour đoàn riêng","code":"private_tour"},"item_info":{"name":"Tour Hà Giang - 2 Gói","description":"Tour đoàn riêng"},"departure_date":"28/05/2025","return_date":"30/05/2025","seat_number":null,"room_number":null,"pickup_location":null,"pickup_time":"","visa_count":null,"passenger_note":null,"service_code_note":null,"financial_summary":{"total_amount":0,"total_amount_cost":0,"total_amount_profit":0},"prices":[{"stt":1,"object":{"title":"Người lớn","description":"","note":null},"commission":{"partner":20000,"staff":0,"total_partner":100000,"total_com_staff":0},"unit_price":{"original":"2,000,000","forex":0},"quantity":5,"period":1,"unit":null,"vat":{"value":0,"type":"percent","type_label":"Chưa gồm VAT"},"amount_total":{"original":"10,000,000","forex":0},"grand_total":{"original":"10,000,000","forex":0},"currency":"vnd"},{"stt":2,"object":{"title":"Mũ","description":"Mũ","note":null},"commission":{"partner":0,"staff":0,"total_partner":0,"total_com_staff":0},"unit_price":{"original":"150,000","forex":0},"quantity":1,"period":1,"unit":null,"vat":{"value":0,"type":"percent","type_label":"Chưa gồm VAT"},"amount_total":{"original":"150,000","forex":0},"grand_total":{"original":"150,000","forex":0},"currency":"vnd"},{"stt":3,"object":{"title":"Lặn","description":"Lặn","note":null},"commission":{"partner":0,"staff":0,"total_partner":0,"total_com_staff":0},"unit_price":{"original":"100,000","forex":0},"quantity":1,"period":1,"unit":null,"vat":{"value":0,"type":"percent","type_label":"Chưa gồm VAT"},"amount_total":{"original":"100,000","forex":0},"grand_total":{"original":"100,000","forex":0},"currency":"vnd"},{"stt":4,"object":{"title":"Ăn trưa","description":"Ăn trưa","note":null},"commission":{"partner":0,"staff":0,"total_partner":0,"total_com_staff":0},"unit_price":{"original":"50,000","forex":0},"quantity":1,"period":1,"unit":null,"vat":{"value":0,"type":"percent","type_label":"Chưa gồm VAT"},"amount_total":{"original":"50,000","forex":0},"grand_total":{"original":"50,000","forex":0},"currency":"vnd"}]}],"created_at":"28/05/2025 20:20","order_at":"28/05/2025 23:15","cancel_at":"","currency":{"foreign_currency":"vnd","base_currency":"vnd","exchange_rate":1},"total_payment":{"foreign":"9800000","base":9800000},"total_paid":{"foreign":"0","base":0},"total_remaining":{"foreign":"9800000","base":9800000},"total_discount":{"foreign":"500000","base":500000},"payment_state":"Chưa thanh toán"}}
Modified at 2025-06-04 00:12:53
Previous
Get order history
Next
Get all order
Built with