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 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
    • Phiếu chi
      • v1
        • Get all payment
          GET
        • Confirm Payment
          POST
    • 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

Confirm Payment

POST
/api/v1/billings/payments/{id}/confirm-payment

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
integer 
required
Body Params multipart/form-data
files[]
file 
optional
Danh tách tệp đính kèm UNC
confirm_at
string 
optional
Ngày xác nhận
Example:
14/05/2025
confirm_note
string 
optional
Ghi chú
Example:
Xác nhận thanh toán qua API
payment_method_id
integer 
optional
Phương thức thanh toán
Example:
0
forward_email
string 
optional
Email nhận UNC khi xác nhận
Example:
kt@upwell.vn
confirm_by_email
string 
required
Email người xác nhận
Example:
kt@upwell.vn
confirm_status
integer 
required
Trạng thái quy định:
1: Đồng ý duyệt
2: Không duyệt
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 POST 'https://demo.tourwell.net/api/v1/billings/payments//confirm-payment' \
--form 'files[]=@""' \
--form 'confirm_at="14/05/2025"' \
--form 'confirm_note="Xác nhận thanh toán qua API"' \
--form 'payment_method_id="0"' \
--form 'forward_email="kt@upwell.vn"' \
--form 'confirm_by_email="kt@upwell.vn"' \
--form 'confirm_status="1"'

Responses

🟢201Created
application/json
Body
success
boolean 
required
message
string 
required
data
object 
required
code
string 
required
Example
{"success":true,"message":"Payment updated successfully","data":{"code":"PC712"}}
Modified at 2025-05-14 10:22:48
Previous
Get all payment
Next
Update invoice
Built with