Tourwell Open APIs
  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
  • Đơn hàng
    • v1
      • Get by id
        GET
      • Get all 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
  • Sản phẩm
    • v1
      • Create product
      • Get by id
      • Calendar pricing
      • Get all product
      • Get schedule by id
  • Lịch khởi hành
  • Lead (Cơ hội)
    • Overview
    • Update History
    • 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
        • Create 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ụ
    • Mã sân bay
      • Get All Airport
  • 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
  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

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 --location --request GET 'https://demo.tourwell.net/api/v1/orders/' \
--header 'Authorization: Bearer <token>'

Responses

🟢200
application/json
Body

Example
{
    "data": {
        "id": 1074,
        "code": "UP2074",
        "link_erp": "http://tour.upwell.test/admin/order/1074/show",
        "customer": {
            "id": 2147,
            "code": "KH2147",
            "name": "(Chị) Thân Thị Cẩm Lệ",
            "link_erp": "http://tour.upwell.test/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",
                    "tour_info": {
                        "code": "TD744",
                        "name": "Tour Hà Giang - 2 Gói",
                        "departure_date": "28/05/2025",
                        "return_date": "30/05/2025"
                    }
                },
                "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,
                    "total_com_partner": 500000,
                    "total_com_staff": 600000
                },
                "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": "",
        "status": "Thành công",
        "status_code": 1,
        "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-12-25 11:08:39
Previous
Get order history
Next
Get all order
Built with