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

Update lead

PUT
/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
id
integer 
required
Id lead
Example:
1001
Query Params
service
string 
optional
Example:
Yêu cầu dịch vụ
note
string 
optional
Example:
Ghi chú/Mô tả
date_range
string 
optional
Example:
Khoảng thời gian dự kiến
adult
integer 
optional
Example:
Số người lớn dự kiến
sale_email
string 
optional
Example:
Email tài khoản nhân viên nhận lead
state_id
integer 
optional
Trạng thái lead
Example:
1

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 PUT 'https://demo.tourwell.net/api/v1/leads/1001?service=Yêu cầu dịch vụ&note=Ghi chú/Mô tả&date_range=Khoảng thời gian dự kiến&adult=Số người lớn dự kiến&sale_email=Email tài khoản nhân viên nhận lead&state_id=1'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2025-02-21 04:54:15
Previous
Create lead
Next
Get all hotel
Built with