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
      • Cancel order
  • 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)
    • v1
      • Get all lead
        GET
      • Get by id
        GET
      • Create lead
        POST
      • Update lead
        PUT
  • 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 all lead

GET
/api/v1/leads
API: Danh sách lead (cơ hội)
Trả về danh sách lead (cơ hội) với phân trang, lọc, sắp xếp và tìm kiếm.

Request

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

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/leads' \
--header 'Authorization: Bearer <token>'

Responses

🟢200
application/json
Body

Example
{
    "data": [
        {
            "id": 2115,
            "code": "LUP2115",
            "link_erp": "http://tour.upwell.test/admin/lead/2115/show",
            "service": "Tour Hà Giang - 2 Gói",
            "note": null,
            "customer": {
                "id": 2155,
                "code": "KH2155",
                "name": "(Chị) Thân Thị Cẩm Lệ",
                "link_erp": "http://tour.upwell.test/admin/customer/2155/show",
                "omi_id": ""
            },
            "creator": {
                "id": 1,
                "name": "Admin"
            },
            "sales_person": {
                "id": 1,
                "name": "Admin"
            },
            "source": {
                "id": 1,
                "name": "Nguồn 1"
            },
            "state": {
                "title": "Chưa cập nhật",
                "color": "#f3f6f9"
            },
            "tag": null,
            "orders": [],
            "quotes": [
                {
                    "id": 97,
                    "code": "BG097",
                    "status": "Xác nhận nhu cầu",
                    "status_code": 0,
                    "currency": {
                        "foreign_currency": "VND",
                        "base_currency": "VND",
                        "exchange_rate": 1
                    },
                    "total_revenue": {
                        "foreign": 1500000,
                        "base": 1500000
                    },
                    "pax_summary": {
                        "total_adult": 1,
                        "total_children": 0,
                        "total_infant": 0,
                        "total_pax": 1
                    }
                }
            ],
            "created_at": "23/07/2025 08:13:26",
            "created_at_timestamp": 1753233206000
        }
    ],
    "links": {
        "first": "http://tour.upwell.test/api/v1/leads?page=1",
        "last": "http://tour.upwell.test/api/v1/leads?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/leads?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Sau &raquo;",
                "active": false
            }
        ],
        "path": "http://tour.upwell.test/api/v1/leads",
        "per_page": 25,
        "to": 1,
        "total": 1
    }
}
Modified at 2025-09-29 08:22:48
Previous
Get schedule by id
Next
Get by id
Built with