Tourwell Open APIs
  1. Hóa đơn
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
        • Confirm Payment
    • Hóa đơn
      • Update invoice
        PUT
      • Issue Invoice
        POST
      • Get by id
        GET
      • Cancel invoice
        POST
  • 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. Hóa đơn

Get by id

GET
/api/v1/invoices/{id}
Lấy thông tin hóa đơn

Request

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

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 GET 'https://demo.tourwell.net/api/v1/invoices/'

Responses

🟢200OK
application/json
Body

Example
{
    "data": {
        "id": 0,
        "code": "string",
        "created_at": "string",
        "creator_info": {
            "id": 0,
            "name": "string",
            "email": "string"
        },
        "total_amount": {
            "foreign": 0,
            "base": "string"
        },
        "order_info": {
            "id": 0,
            "code": "string",
            "link_erp": "string",
            "customer": {
                "id": 0,
                "code": "string",
                "name": "string",
                "link_erp": "string"
            },
            "company": [
                "string"
            ],
            "creator": {
                "id": 0,
                "name": "string"
            },
            "source": {
                "id": 0,
                "name": "string"
            },
            "sales_person": [
                {
                    "id": 0,
                    "name": "string"
                }
            ],
            "services": [
                {
                    "id": 0,
                    "service_info": {
                        "id": 0,
                        "name": "string",
                        "code": "string"
                    },
                    "item_info": {
                        "name": "string",
                        "description": "string"
                    },
                    "departure_date": "string",
                    "return_date": "string",
                    "seat_number": "string",
                    "room_number": "string",
                    "pickup_location": "string",
                    "pickup_time": "string",
                    "visa_count": null,
                    "passenger_note": "string",
                    "service_code_note": "string",
                    "financial_summary": {
                        "total_amount": 0,
                        "total_amount_cost": 0,
                        "total_amount_profit": 0
                    },
                    "prices": [
                        {
                            "stt": 0,
                            "object": {
                                "title": "string",
                                "description": "string",
                                "note": null
                            },
                            "commission": {
                                "partner": 0,
                                "staff": 0,
                                "total_partner": 0,
                                "total_com_staff": 0
                            },
                            "unit_price": {
                                "original": "string",
                                "forex": 0
                            },
                            "quantity": 0,
                            "period": 0,
                            "unit": "string",
                            "vat": {
                                "value": 0,
                                "type": "string",
                                "type_label": "string"
                            },
                            "amount_total": {
                                "original": "string",
                                "forex": 0
                            },
                            "grand_total": {
                                "original": "string",
                                "forex": 0
                            },
                            "currency": "string"
                        }
                    ]
                }
            ],
            "created_at": "string",
            "order_at": "string",
            "cancel_at": "string",
            "currency": {
                "foreign_currency": "string",
                "base_currency": "string",
                "exchange_rate": 0
            },
            "total_payment": {
                "foreign": "string",
                "base": 0
            },
            "total_paid": {
                "foreign": "string",
                "base": 0
            },
            "total_remaining": {
                "foreign": "string",
                "base": 0
            },
            "total_discount": {
                "foreign": "string",
                "base": 0
            },
            "payment_state": "string"
        },
        "request_info": {
            "request_at": "string",
            "service_summary": "string",
            "note": "string",
            "tax_code": "string",
            "company_name": "string",
            "company_address": "string",
            "description": "string",
            "forward_email": "string"
        },
        "export_info": {
            "export_code": null,
            "export_date": "string",
            "export_note": null,
            "export_by": "string"
        },
        "invoice_provider": {
            "id": 0,
            "name": "string",
            "type": "string",
            "callback": {
                "api_url": "string",
                "api_token": "string"
            }
        }
    }
}
Modified at 2025-05-16 06:33:10
Previous
Issue Invoice
Next
Cancel invoice
Built with