Danh sách hoá đơn

URL: {host}/api/invoices

Method: GET

Header:

Parameter
Mô tả

Authorization

{Bear + access_token}

Accept

application/json

Path Parameters:

Parameter
Required
Mô tả

page

x

Phân trang

limit

x

Số lượng trên một trang

Response :

Parameter
Mô tả

date

Ngày tạo

type

Loại hóa đơn: trả trước, trả sau (subscription | retail )

invoice_number

Mã hóa đơn

total_money

Tổng tiền

status

Trạng thái (pending | paid)

{
    "success": true,
    "data": {
        "items": [
            {
                "invoice": {
                    "date": "2023-06",
                    "invoice_number": 641115,
                    "total_money": 798000,
                    "type": "retail",
                    "status": "pending"
                }
            },
            {
                "invoice": {
                    "date": "2022-11",
                    "invoice_number": 770197,
                    "total_money": 399000,
                    "type": null,
                    "status": "pending"
                }
            },
            {
                "invoice": {
                    "date": "2021-12",
                    "invoice_number": 0,
                    "total_money": 0,
                    "type": null,
                    "status": "paid"
                }
            }
        ],
        "total": 3,
        "current_page": 1,
        "last_page": 1
    }
}

Last updated