Chi tiết 1 hoá đơn

URL: {host}/api/invoice/{invoice_number}/detail

Method: GET

invoice_number: Mã hóa đơn

Header:

ParameterMô tả

Authorization

{Bear + access_token}

Accept

application/json

Response :

ParameterMô tả

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)

provisional

Tổng tiền tạm tính (chưa trừ thuế)

tax_money

Số tiền thuế

tax

Thuế

order

Đơn hàng trong hóa đơn

order.employer

Nhân sự

order.items.id

Định danh item

order.items.name

Tên item

order.items.price

Giá trị

order.items.quality

Số lượng

order.items.attributes

Thuộc tính item

order.items.conditions

Giảm giá

order.created_at

Ngày tạo

order.amount

Tổng tiền order

{
    "success": true,
    "data": [
        {
            "invoice_number": 641115,
            "status": "pending",
            "type": "retail",
            "provisional": "798000",
            "tax_money": 0,
            "tax": 10,
            "total_money": 798000,
            "order": [
                {
                    "employer": "Thoại văn",
                    "items": {
                        "4121": {
                            "id": "4121",
                            "name": "Khóa học Test 1",
                            "price": 0,
                            "quantity": 1,
                            "attributes": {
                                "biz_employer_id": 1,
                                "employer_name": "Thoại văn",
                                "biz_course_id": 12,
                                "course_name": "Khóa học Test 1"
                            },
                            "conditions": []
                        },
                        "4131": {
                            "id": "4131",
                            "name": "Khóa học test 2",
                            "price": 0,
                            "quantity": 1,
                            "attributes": {
                                "biz_employer_id": 1,
                                "employer_name": "Thoại văn",
                                "biz_course_id": 13,
                                "course_name": "Khóa học test 2"
                            },
                            "conditions": []
                        }
                    },
                    "created_at": "16/06/2023",
                    "amount": "0"
                },
                {
                    "employer": "Thoại văn",
                    "items": {
                        "492": {
                            "id": "492",
                            "name": "KTG01 - Kế toán tổng hợp từ A - Z - Ai cũng có thể trở thành kế toán tổng hợp trong 14 giờ",
                            "price": 499000,
                            "quantity": 1,
                            "attributes": {
                                "biz_employer_id": 2,
                                "employer_name": "hoang6",
                                "biz_course_id": 9,
                                "course_name": "KTG01 - Kế toán tổng hợp từ A - Z - Ai cũng có thể trở thành kế toán tổng hợp trong 14 giờ"
                            },
                            "conditions": []
                        },
                        "4102": {
                            "id": "4102",
                            "name": "KTG04 - Nguyên lý kế toán cho người mới bắt đầu",
                            "price": 299000,
                            "quantity": 1,
                            "attributes": {
                                "biz_employer_id": 2,
                                "employer_name": "hoang6",
                                "biz_course_id": 10,
                                "course_name": "KTG04 - Nguyên lý kế toán cho người mới bắt đầu"
                            },
                            "conditions": []
                        }
                    },
                    "created_at": "16/06/2023",
                    "amount": "798,000"
                }
            ]
        }
    ]
}

Last updated