GET api/PurchaseOrder/GetDetail/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
PurchaseOrderDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
None. |
|
| CreatedId | globally unique identifier |
None. |
|
| CreatedTime | date |
None. |
|
| Status | PurchaseOrderStatusEnum |
None. |
|
| StatusStr | string |
None. |
|
| TotalOrder | decimal number |
None. |
|
| Note | string |
None. |
|
| Discount | decimal number |
None. |
|
| DiscountType | integer |
None. |
|
| SupplierId | integer |
None. |
|
| TotalQuantity | integer |
None. |
|
| TotalDiscount | decimal number |
None. |
|
| SupplierName | string |
None. |
|
| PayingAmount | decimal number |
None. |
|
| RemainingDebt | decimal number |
None. |
|
| PurchaseOrderDateTime | date |
None. |
|
| Id | globally unique identifier |
None. |
|
| ImporterId | globally unique identifier |
None. |
|
| UpdatedId | globally unique identifier |
None. |
|
| UpdatedTime | date |
None. |
|
| TotalProduct | integer |
None. |
|
| PaymentType | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": "sample string 1",
"CreatedId": "fba4389a-eb0a-4be1-aeed-7e03b1f9a379",
"CreatedTime": "2025-12-24T20:25:49.9347543+07:00",
"Status": 0,
"StatusStr": "Phiếu tạm",
"TotalOrder": 4.0,
"Note": "sample string 5",
"Discount": 6.0,
"DiscountType": 7,
"SupplierId": 8,
"TotalQuantity": 9,
"TotalDiscount": 10.0,
"SupplierName": "sample string 11",
"PayingAmount": 12.0,
"RemainingDebt": 13.0,
"PurchaseOrderDateTime": "2025-12-24T20:25:49.9366774+07:00",
"Id": "535b15d7-537e-4a7e-8646-617ef59f32ae",
"ImporterId": "7ea12076-cd23-4782-8538-6ab7e632cc89",
"UpdatedId": "f6903c78-0c72-4196-b370-4fae48a52702",
"UpdatedTime": "2025-12-24T20:25:49.9376773+07:00",
"TotalProduct": 19,
"PaymentType": 20
}
application/xml, text/xml
Sample:
<PurchaseOrderDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Dto.PurchaseOrder"> <Code>sample string 1</Code> <CreatedId>fba4389a-eb0a-4be1-aeed-7e03b1f9a379</CreatedId> <CreatedTime>2025-12-24T20:25:49.9347543+07:00</CreatedTime> <Discount>6</Discount> <DiscountType>7</DiscountType> <Id>535b15d7-537e-4a7e-8646-617ef59f32ae</Id> <ImporterId>7ea12076-cd23-4782-8538-6ab7e632cc89</ImporterId> <Note>sample string 5</Note> <PayingAmount>12</PayingAmount> <PaymentType>20</PaymentType> <PurchaseOrderDateTime>2025-12-24T20:25:49.9366774+07:00</PurchaseOrderDateTime> <RemainingDebt>13</RemainingDebt> <Status>DRAFT</Status> <SupplierId>8</SupplierId> <SupplierName>sample string 11</SupplierName> <TotalDiscount>10</TotalDiscount> <TotalOrder>4</TotalOrder> <TotalProduct>19</TotalProduct> <TotalQuantity>9</TotalQuantity> <UpdatedId>f6903c78-0c72-4196-b370-4fae48a52702</UpdatedId> <UpdatedTime>2025-12-24T20:25:49.9376773+07:00</UpdatedTime> </PurchaseOrderDto>