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
      • 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 by id

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

Responses

🟢200
application/json
Body

Example
{
    "data": {
        "id": 2111,
        "code": "LUP2111",
        "link_erp": "http://tour.upwell.test/admin/lead/2111/show",
        "service": "Tour Hà Giang - 2 Gói",
        "note": null,
        "customer": {
            "id": 2145,
            "code": "KH2145",
            "name": "(Quý khách) KH đại lý CÂP 1",
            "link_erp": "http://tour.upwell.test/admin/customer/2145/show",
            "omi_id": ""
        },
        "creator": {
            "id": 1,
            "name": "Admin"
        },
        "sales_person": {
            "id": 1,
            "name": "Admin"
        },
        "source": [],
        "state": {
            "title": "Đã tạo đơn hàng",
            "color": "#67B173"
        },
        "tag": null,
        "orders": [
            {
                "id": 1001,
                "code": "UP2001",
                "link_erp": "http://tour.upwell.test/admin/order/1001/show"
            },
            {
                "id": 1002,
                "code": "UP2002",
                "link_erp": "http://tour.upwell.test/admin/order/1002/show"
            },
            {
                "id": 1017,
                "code": "UP2017",
                "link_erp": "http://tour.upwell.test/admin/order/1017/show"
            },
            {
                "id": 1018,
                "code": "UP2018",
                "link_erp": "http://tour.upwell.test/admin/order/1018/show"
            }
        ],
        "quotes": [
            {
                "id": 92,
                "code": "BG092",
                "status": "Xác nhận nhu cầu",
                "status_code": 0,
                "currency": {
                    "foreign_currency": "vnd",
                    "base_currency": "vnd",
                    "exchange_rate": 1
                },
                "total_revenue": {
                    "foreign": 0,
                    "base": 2000000
                },
                "pax_summary": {
                    "total_adult": 1,
                    "total_children": 0,
                    "total_infant": 0,
                    "total_pax": 1
                }
            }
        ],
        "created_at": "25/04/2025 08:37:52",
        "created_at_timestamp": 1745545072000
    }
}
Modified at 2025-02-11 02:54:28
Previous
Get all lead
Next
Create lead
Built with