Tourwell Open APIs
  1. v1
Tourwell Open APIs
  • Tổng quan
  • Hướng dẫn xác thực
  • 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
      • Create order flight
      • Confirm payment order
  • Sản phẩm
    • v1
      • Create product
        POST
      • Get by id
        GET
      • Calendar pricing
        GET
      • Get all product
        GET
      • Get schedule by id
        GET
  • 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
        • 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 schedule by id

GET
/api/v1/products/{id}/schedule
API: Lấy lịch khởi hành theo sản phẩm
API này cho phép lấy danh sách các tour (lịch khởi hành) thuộc về một sản phẩm cụ thể. Dữ liệu trả về có thể dùng để hiển thị calendar, danh sách tour, hoặc để đồng bộ vào website bán hàng.
Endpoint
{id}: ID của sản phẩm cần lấy lịch khởi hành.

Request

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

Query 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/products/181/schedule?start_date=01/09/2025&end_date=30/09/2025' \
--header 'Authorization: Bearer <token>'

Responses

🟢200
application/json
Body

Example
{
    "data": [
        {
            "id": 887,
            "code": "TD887",
            "name": "Tour Châu Âu ghép 05/09",
            "departure_date": "05/09/2025",
            "return_date": "09/09/2025",
            "status": "Mở bán",
            "status_code": 1,
            "product": {
                "id": 181,
                "name": "Tour Châu Âu",
                "status": "Đang kinh doanh"
            },
            "seat": {
                "total": 10,
                "public": 10,
                "booked_confirmed": 0,
                "hold_pending": 0,
                "used": 0,
                "remain_total": 10,
                "remain_public": 10
            },
            "pax": {
                "total": 0,
                "total_adult": 0,
                "total_children": 0,
                "total_infant": 0
            },
            "pricing": [
                {
                    "price_rule_id": 1,
                    "price_rule_name": "Người lớn",
                    "price": {
                        "amount": 15000000,
                        "currency": "VND"
                    }
                }
            ]
        },
        {
            "id": 886,
            "code": "TD886",
            "name": "Tour Châu Âu ghép 03/09",
            "departure_date": "03/09/2025",
            "return_date": "07/09/2025",
            "status": "Mở bán",
            "status_code": 1,
            "product": {
                "id": 181,
                "name": "Tour Châu Âu",
                "status": "Đang kinh doanh"
            },
            "seat": {
                "total": 10,
                "public": 10,
                "booked_confirmed": 0,
                "hold_pending": 0,
                "used": 0,
                "remain_total": 10,
                "remain_public": 10
            },
            "pax": {
                "total": 0,
                "total_adult": 0,
                "total_children": 0,
                "total_infant": 0
            },
            "pricing": [
                {
                    "price_rule_id": 1,
                    "price_rule_name": "Người lớn",
                    "price": {
                        "amount": 15000000,
                        "currency": "VND"
                    }
                }
            ]
        }
    ],
    "links": {
        "first": "http://tour.upwell.test/api/v1/products/181/schedule?page=1",
        "last": "http://tour.upwell.test/api/v1/products/181/schedule?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Trước",
                "active": false
            },
            {
                "url": "http://tour.upwell.test/api/v1/products/181/schedule?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Sau &raquo;",
                "active": false
            }
        ],
        "path": "http://tour.upwell.test/api/v1/products/181/schedule",
        "per_page": 25,
        "to": 2,
        "total": 2
    }
}
Modified at 2025-09-26 09:41:15
Previous
Get all product
Next
Get all lead
Built with