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 all order
      • Create order tour
      • Create order product
      • Create order hotel
      • Confirm payment order
  • 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
      • 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
    • 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

Create lead

POST
/api/v1/leads

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
contact_name
string 
required
Tên khách hàng
Example:
Nguyễn Văn A
contact_phone
string 
required
Số điện thoại khách hàng
Example:
0988889999
contact_email
string 
optional
Email khách hàng
Example:
kh@example.com
service
string 
required
Yêu cầu dịch vụ
Example:
Tour nhật bản 3N2D
note
string 
optional
Ghi chú/Mô tả
Example:
Đoàn có trẻ em 5 tuổi
date_range
string 
optional
Khoảng thời gian dự kiến
Example:
02/05/2025-07/05/2025
adult
integer 
optional
Số người lớn dự kiến
Example:
5
source_id
integer 
optional
ID nguồn từ cấu hình
Example:
1
branch_office_id
integer 
optional
ID chi nhánh từ cấu hình
Example:
1
sale_email
string 
optional
Email tài khoản nhân viên nhận lead
Example:
sale@gmail.com
state_id
integer 
optional
Trạng thái lead
Example:
1
Body Params multipart/form-data
object {0}

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 POST 'https://demo.tourwell.net/api/v1/leads?contact_name=Nguyễn Văn A&contact_phone=0988889999&contact_email=kh@example.com&service=Tour nhật bản 3N2D&note=Đoàn có trẻ em 5 tuổi&date_range=02/05/2025-07/05/2025&adult=5&source_id=1&branch_office_id=1&sale_email=sale@gmail.com&state_id=1'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2025-02-21 04:52:42
Previous
Get by id
Next
Update lead
Built with