API Reference

Invoice Detail

Request

[GET] /api/v1/invoice/detail/{invoice_id}
Content-Type: application/json
x-client-id: <client_id>
x-signature: <signature>
x-timestamp: <timestamp>

Body

Response

Content-Type: application/json

Body

NameTypeDescription
iduuid.UUIDID
order_codestringOrder code
system_codestringSystem code
value_attime.TimeInvoice create date
due_attime.TimeInvoice end date
total_amountfloat64Total amount
tax_amountfloat64Tax amount
contact_infostruct-parent
contact_namecontact_info: string
contact_numbercontact_info: string
payment_config[]string
payment_due_amountfloat64

Errors

StatusMesssage
200Success
401Unauthorized

Example

Request

[GET] /api/v1/invoice/detail/{invoice_id}

Response

{
    "message": {
        "content": "Thực thi API thành công"
    },
    "code": 102000,
    "request_id": "ee5f77cf-d9ba-4fdf-9f88-4148815733d8",
    "data": {
        "id": "92890a75-c0d4-4329-90ad-235ee602ce08",
        "order_code": "HD31",
        "system_code": "SOSPMFA3",
        "value_at": "2024-09-05T16:59:59.999Z",
        "due_at": "2024-10-05T16:59:59.999Z",
        "total_amount": 350000,
        "tax_amount": 45455,
        "contact_info": {
            "contact_name": "NhanTr150",
            "contact_number": ""
        },
        "payment_config": [
            "fcefa968-fe00-4d06-a431-53bd001e7f4b"
        ],
        "payment_due_amount": 350000,
        "created_at": "2024-09-09T07:24:12.819169Z"
    }
}