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": "ff369373-c24a-4dbe-8878-f50991daf499",
"CreatedTime": "2025-10-26T13:11:33.2553141+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-10-26T13:11:33.2572286+07:00",
"Id": "0f03bf42-baed-485a-835e-422964d8bb1b",
"ImporterId": "e594a094-e599-4d4c-8b81-80a1196eb388",
"UpdatedId": "64c3b29d-4309-4e2f-809e-12bf370e58c7",
"UpdatedTime": "2025-10-26T13:11:33.2572286+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>ff369373-c24a-4dbe-8878-f50991daf499</CreatedId> <CreatedTime>2025-10-26T13:11:33.2553141+07:00</CreatedTime> <Discount>6</Discount> <DiscountType>7</DiscountType> <Id>0f03bf42-baed-485a-835e-422964d8bb1b</Id> <ImporterId>e594a094-e599-4d4c-8b81-80a1196eb388</ImporterId> <Note>sample string 5</Note> <PayingAmount>12</PayingAmount> <PaymentType>20</PaymentType> <PurchaseOrderDateTime>2025-10-26T13:11:33.2572286+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>64c3b29d-4309-4e2f-809e-12bf370e58c7</UpdatedId> <UpdatedTime>2025-10-26T13:11:33.2572286+07:00</UpdatedTime> </PurchaseOrderDto>