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": "b7fd5bf4-fe19-4c3b-8db7-148d9e249292",
"createdTime": "2026-11-27T01:55:42.2011635+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": "2026-11-27T01:55:42.203889+07:00",
"id": "68db5139-2e0e-4e2b-9d1d-91cf2695f380",
"importerId": "c60b9180-5bc1-4e1e-94fd-3f840a464d3e",
"updatedId": "afefa9ee-6e3f-42e9-9437-a0c61455de19",
"updatedTime": "2026-11-27T01:55:42.2046475+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>b7fd5bf4-fe19-4c3b-8db7-148d9e249292</CreatedId> <CreatedTime>2026-11-27T01:55:42.2011635+07:00</CreatedTime> <Discount>6</Discount> <DiscountType>7</DiscountType> <Id>68db5139-2e0e-4e2b-9d1d-91cf2695f380</Id> <ImporterId>c60b9180-5bc1-4e1e-94fd-3f840a464d3e</ImporterId> <Note>sample string 5</Note> <PayingAmount>12</PayingAmount> <PaymentType>20</PaymentType> <PurchaseOrderDateTime>2026-11-27T01:55:42.203889+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>afefa9ee-6e3f-42e9-9437-a0c61455de19</UpdatedId> <UpdatedTime>2026-11-27T01:55:42.2046475+07:00</UpdatedTime> </PurchaseOrderDto>