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
Name | Type | Description |
---|---|---|
id | uuid.UUID | ID |
order_code | string | Order code |
system_code | string | System code |
value_at | time.Time | Invoice create date |
due_at | time.Time | Invoice end date |
total_amount | float64 | Total amount |
tax_amount | float64 | Tax amount |
contact_info | struct-parent | |
contact_name | contact_info: string | |
contact_number | contact_info: string | |
payment_config | []string | |
payment_due_amount | float64 |
Errors
Status | Messsage |
---|---|
200 | Success |
401 | Unauthorized |
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"
}
}