POST api/PurchaseOrder/ListPurchaseOrder
Request Information
URI Parameters
None.
Body Parameters
SearchPurchaseOrderRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| From | date |
None. |
|
| To | date |
None. |
|
| Status | integer |
None. |
|
| CreatedId | globally unique identifier |
None. |
|
| ImporterId | globally unique identifier |
None. |
|
| SupplierId | integer |
None. |
|
| KeySearch | string |
None. |
|
| PageSize | integer |
None. |
|
| PageIndex | integer |
None. |
|
| ProductId | globally unique identifier |
None. |
|
| UnpaidSuppliers | boolean |
None. |
|
| IsSearchError | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"From": "2026-11-17T15:50:35.6740356+07:00",
"To": "2026-11-17T15:50:35.6740356+07:00",
"Status": 1,
"CreatedId": "9d7d976b-61de-44ed-ae2e-4ab0c56ac86d",
"ImporterId": "4919d6b0-c779-408d-886f-8c573a6d777d",
"SupplierId": 1,
"KeySearch": "sample string 1",
"PageSize": 1,
"PageIndex": 1,
"ProductId": "515cd687-4ab6-4b08-871c-b41f24f1b9e7",
"UnpaidSuppliers": true,
"IsSearchError": true
}
application/xml, text/xml
Sample:
<SearchPurchaseOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.PurchaseOrder"> <CreatedId>9d7d976b-61de-44ed-ae2e-4ab0c56ac86d</CreatedId> <From>2026-11-17T15:50:35.6740356+07:00</From> <ImporterId>4919d6b0-c779-408d-886f-8c573a6d777d</ImporterId> <IsSearchError>true</IsSearchError> <KeySearch>sample string 1</KeySearch> <PageIndex>1</PageIndex> <PageSize>1</PageSize> <ProductId>515cd687-4ab6-4b08-871c-b41f24f1b9e7</ProductId> <Status>1</Status> <SupplierId>1</SupplierId> <To>2026-11-17T15:50:35.6740356+07:00</To> <UnpaidSuppliers>true</UnpaidSuppliers> </SearchPurchaseOrderRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
PaginatorResponseOfListPurchaseOrderResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Count | integer |
None. |
|
| TotalMoney | decimal number |
None. |
|
| PayingAmount | decimal number |
None. |
|
| TotalIncome | decimal number |
None. |
|
| TotalSpend | decimal number |
None. |
|
| TotalDebt | decimal number |
None. |
|
| TotalOrderAmount | decimal number |
None. |
|
| TotalPaid | decimal number |
None. |
|
| NhapHang_SoTienDaDua | decimal number |
None. |
|
| NhapHang_SoLuongSanPham | decimal number |
None. |
|
| NhapHang_TongTienSanPham | decimal number |
None. |
|
| NhapHang_HoanTien | decimal number |
None. |
|
| NhapHang_GhiChuTien | decimal number |
None. |
|
| SumTotalRevenue | decimal number |
None. |
|
| SumTotalExpense | decimal number |
None. |
|
| SumTotalRefund | decimal number |
None. |
|
| SumBudgetVariance | decimal number |
None. |
|
| Items | Collection of ListPurchaseOrderResponse |
None. |
Response Formats
application/json, text/json
Sample:
{
"Count": 1,
"TotalMoney": 2.0,
"PayingAmount": 3.0,
"TotalIncome": 4.0,
"TotalSpend": 5.0,
"TotalDebt": 6.0,
"TotalOrderAmount": 7.0,
"TotalPaid": 8.0,
"NhapHang_SoTienDaDua": 9.0,
"NhapHang_SoLuongSanPham": 10.0,
"NhapHang_TongTienSanPham": 11.0,
"NhapHang_HoanTien": 12.0,
"NhapHang_GhiChuTien": 13.0,
"SumTotalRevenue": 14.0,
"SumTotalExpense": 15.0,
"SumTotalRefund": 16.0,
"SumBudgetVariance": 17.0,
"Items": [
{
"Code": "sample string 1",
"CreatedId": "055fe59c-cd60-4d97-9c49-7d5f057e4025",
"CreatedTime": "2026-11-17T15:50:35.7032983+07:00",
"Status": 0,
"StatusStr": "Phiếu tạm",
"TotalOrder": 4.0,
"Note": "sample string 5",
"Discount": 1.0,
"DiscountType": 1,
"SupplierId": 1,
"SupplierName": "sample string 6",
"Debt": 1.0,
"PayingAmount": 7.0,
"RemainingDebt": 8.0,
"PurchaseOrderDateTime": "2026-11-17T15:50:35.7032983+07:00",
"Id": "30585509-b9e4-45d7-9e0d-36d1759e702d",
"ImporterId": "2c382ec3-9292-415c-b67a-af0398b51e82",
"UpdatedId": "151e5c40-e119-4a33-b53d-d0c03c1aadcc",
"UpdatedTime": "2026-11-17T15:50:35.7032983+07:00",
"ProductIds": [
"c6f8de90-16cf-4921-abb0-8d77862fbbb6",
"8ca40f59-9cb2-4689-88ea-8e6f3434b66e"
],
"PaymentType": 12,
"PurchaseOrderItemDtos": [
{
"Id": 1,
"ProductId": "d348a549-3c2b-43af-b869-dee9dd6351b2",
"Quantity": 3,
"UnitPrice": 4.0,
"Discount": 5.0,
"DiscountType": 6,
"TotalPrice": 7.0,
"Note": "sample string 8",
"PurchaseOrderId": "36cad399-e45a-42f6-9ce5-3ac50207b787",
"ProductCode": "sample string 10",
"ProductName": "sample string 11",
"SupplierName": "sample string 12"
},
{
"Id": 1,
"ProductId": "d348a549-3c2b-43af-b869-dee9dd6351b2",
"Quantity": 3,
"UnitPrice": 4.0,
"Discount": 5.0,
"DiscountType": 6,
"TotalPrice": 7.0,
"Note": "sample string 8",
"PurchaseOrderId": "36cad399-e45a-42f6-9ce5-3ac50207b787",
"ProductCode": "sample string 10",
"ProductName": "sample string 11",
"SupplierName": "sample string 12"
}
]
},
{
"Code": "sample string 1",
"CreatedId": "055fe59c-cd60-4d97-9c49-7d5f057e4025",
"CreatedTime": "2026-11-17T15:50:35.7032983+07:00",
"Status": 0,
"StatusStr": "Phiếu tạm",
"TotalOrder": 4.0,
"Note": "sample string 5",
"Discount": 1.0,
"DiscountType": 1,
"SupplierId": 1,
"SupplierName": "sample string 6",
"Debt": 1.0,
"PayingAmount": 7.0,
"RemainingDebt": 8.0,
"PurchaseOrderDateTime": "2026-11-17T15:50:35.7032983+07:00",
"Id": "30585509-b9e4-45d7-9e0d-36d1759e702d",
"ImporterId": "2c382ec3-9292-415c-b67a-af0398b51e82",
"UpdatedId": "151e5c40-e119-4a33-b53d-d0c03c1aadcc",
"UpdatedTime": "2026-11-17T15:50:35.7032983+07:00",
"ProductIds": [
"c6f8de90-16cf-4921-abb0-8d77862fbbb6",
"8ca40f59-9cb2-4689-88ea-8e6f3434b66e"
],
"PaymentType": 12,
"PurchaseOrderItemDtos": [
{
"Id": 1,
"ProductId": "d348a549-3c2b-43af-b869-dee9dd6351b2",
"Quantity": 3,
"UnitPrice": 4.0,
"Discount": 5.0,
"DiscountType": 6,
"TotalPrice": 7.0,
"Note": "sample string 8",
"PurchaseOrderId": "36cad399-e45a-42f6-9ce5-3ac50207b787",
"ProductCode": "sample string 10",
"ProductName": "sample string 11",
"SupplierName": "sample string 12"
},
{
"Id": 1,
"ProductId": "d348a549-3c2b-43af-b869-dee9dd6351b2",
"Quantity": 3,
"UnitPrice": 4.0,
"Discount": 5.0,
"DiscountType": 6,
"TotalPrice": 7.0,
"Note": "sample string 8",
"PurchaseOrderId": "36cad399-e45a-42f6-9ce5-3ac50207b787",
"ProductCode": "sample string 10",
"ProductName": "sample string 11",
"SupplierName": "sample string 12"
}
]
}
]
}
application/xml, text/xml
Sample:
<PaginatorResponseOfListPurchaseOrderResponsezelsgFU8 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Generics">
<Count>1</Count>
<Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/Common.Model.Response.PurchaseOrder">
<d2p1:ListPurchaseOrderResponse>
<d2p1:Code>sample string 1</d2p1:Code>
<d2p1:CreatedId>055fe59c-cd60-4d97-9c49-7d5f057e4025</d2p1:CreatedId>
<d2p1:CreatedTime>2026-11-17T15:50:35.7032983+07:00</d2p1:CreatedTime>
<d2p1:Debt>1</d2p1:Debt>
<d2p1:Discount>1</d2p1:Discount>
<d2p1:DiscountType>1</d2p1:DiscountType>
<d2p1:Id>30585509-b9e4-45d7-9e0d-36d1759e702d</d2p1:Id>
<d2p1:ImporterId>2c382ec3-9292-415c-b67a-af0398b51e82</d2p1:ImporterId>
<d2p1:Note>sample string 5</d2p1:Note>
<d2p1:PayingAmount>7</d2p1:PayingAmount>
<d2p1:PaymentType>12</d2p1:PaymentType>
<d2p1:ProductIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>c6f8de90-16cf-4921-abb0-8d77862fbbb6</d4p1:guid>
<d4p1:guid>8ca40f59-9cb2-4689-88ea-8e6f3434b66e</d4p1:guid>
</d2p1:ProductIds>
<d2p1:PurchaseOrderDateTime>2026-11-17T15:50:35.7032983+07:00</d2p1:PurchaseOrderDateTime>
<d2p1:PurchaseOrderItemDtos xmlns:d4p1="http://schemas.datacontract.org/2004/07/Common.Model.Dto.PurchaseOrder">
<d4p1:PurchaseOrderItemDto>
<d4p1:Discount>5</d4p1:Discount>
<d4p1:DiscountType>6</d4p1:DiscountType>
<d4p1:Id>1</d4p1:Id>
<d4p1:Note>sample string 8</d4p1:Note>
<d4p1:ProductCode>sample string 10</d4p1:ProductCode>
<d4p1:ProductId>d348a549-3c2b-43af-b869-dee9dd6351b2</d4p1:ProductId>
<d4p1:ProductName>sample string 11</d4p1:ProductName>
<d4p1:PurchaseOrderId>36cad399-e45a-42f6-9ce5-3ac50207b787</d4p1:PurchaseOrderId>
<d4p1:Quantity>3</d4p1:Quantity>
<d4p1:SupplierName>sample string 12</d4p1:SupplierName>
<d4p1:TotalPrice>7</d4p1:TotalPrice>
<d4p1:UnitPrice>4</d4p1:UnitPrice>
</d4p1:PurchaseOrderItemDto>
<d4p1:PurchaseOrderItemDto>
<d4p1:Discount>5</d4p1:Discount>
<d4p1:DiscountType>6</d4p1:DiscountType>
<d4p1:Id>1</d4p1:Id>
<d4p1:Note>sample string 8</d4p1:Note>
<d4p1:ProductCode>sample string 10</d4p1:ProductCode>
<d4p1:ProductId>d348a549-3c2b-43af-b869-dee9dd6351b2</d4p1:ProductId>
<d4p1:ProductName>sample string 11</d4p1:ProductName>
<d4p1:PurchaseOrderId>36cad399-e45a-42f6-9ce5-3ac50207b787</d4p1:PurchaseOrderId>
<d4p1:Quantity>3</d4p1:Quantity>
<d4p1:SupplierName>sample string 12</d4p1:SupplierName>
<d4p1:TotalPrice>7</d4p1:TotalPrice>
<d4p1:UnitPrice>4</d4p1:UnitPrice>
</d4p1:PurchaseOrderItemDto>
</d2p1:PurchaseOrderItemDtos>
<d2p1:RemainingDebt>8</d2p1:RemainingDebt>
<d2p1:Status>DRAFT</d2p1:Status>
<d2p1:SupplierId>1</d2p1:SupplierId>
<d2p1:SupplierName>sample string 6</d2p1:SupplierName>
<d2p1:TotalOrder>4</d2p1:TotalOrder>
<d2p1:UpdatedId>151e5c40-e119-4a33-b53d-d0c03c1aadcc</d2p1:UpdatedId>
<d2p1:UpdatedTime>2026-11-17T15:50:35.7032983+07:00</d2p1:UpdatedTime>
</d2p1:ListPurchaseOrderResponse>
<d2p1:ListPurchaseOrderResponse>
<d2p1:Code>sample string 1</d2p1:Code>
<d2p1:CreatedId>055fe59c-cd60-4d97-9c49-7d5f057e4025</d2p1:CreatedId>
<d2p1:CreatedTime>2026-11-17T15:50:35.7032983+07:00</d2p1:CreatedTime>
<d2p1:Debt>1</d2p1:Debt>
<d2p1:Discount>1</d2p1:Discount>
<d2p1:DiscountType>1</d2p1:DiscountType>
<d2p1:Id>30585509-b9e4-45d7-9e0d-36d1759e702d</d2p1:Id>
<d2p1:ImporterId>2c382ec3-9292-415c-b67a-af0398b51e82</d2p1:ImporterId>
<d2p1:Note>sample string 5</d2p1:Note>
<d2p1:PayingAmount>7</d2p1:PayingAmount>
<d2p1:PaymentType>12</d2p1:PaymentType>
<d2p1:ProductIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>c6f8de90-16cf-4921-abb0-8d77862fbbb6</d4p1:guid>
<d4p1:guid>8ca40f59-9cb2-4689-88ea-8e6f3434b66e</d4p1:guid>
</d2p1:ProductIds>
<d2p1:PurchaseOrderDateTime>2026-11-17T15:50:35.7032983+07:00</d2p1:PurchaseOrderDateTime>
<d2p1:PurchaseOrderItemDtos xmlns:d4p1="http://schemas.datacontract.org/2004/07/Common.Model.Dto.PurchaseOrder">
<d4p1:PurchaseOrderItemDto>
<d4p1:Discount>5</d4p1:Discount>
<d4p1:DiscountType>6</d4p1:DiscountType>
<d4p1:Id>1</d4p1:Id>
<d4p1:Note>sample string 8</d4p1:Note>
<d4p1:ProductCode>sample string 10</d4p1:ProductCode>
<d4p1:ProductId>d348a549-3c2b-43af-b869-dee9dd6351b2</d4p1:ProductId>
<d4p1:ProductName>sample string 11</d4p1:ProductName>
<d4p1:PurchaseOrderId>36cad399-e45a-42f6-9ce5-3ac50207b787</d4p1:PurchaseOrderId>
<d4p1:Quantity>3</d4p1:Quantity>
<d4p1:SupplierName>sample string 12</d4p1:SupplierName>
<d4p1:TotalPrice>7</d4p1:TotalPrice>
<d4p1:UnitPrice>4</d4p1:UnitPrice>
</d4p1:PurchaseOrderItemDto>
<d4p1:PurchaseOrderItemDto>
<d4p1:Discount>5</d4p1:Discount>
<d4p1:DiscountType>6</d4p1:DiscountType>
<d4p1:Id>1</d4p1:Id>
<d4p1:Note>sample string 8</d4p1:Note>
<d4p1:ProductCode>sample string 10</d4p1:ProductCode>
<d4p1:ProductId>d348a549-3c2b-43af-b869-dee9dd6351b2</d4p1:ProductId>
<d4p1:ProductName>sample string 11</d4p1:ProductName>
<d4p1:PurchaseOrderId>36cad399-e45a-42f6-9ce5-3ac50207b787</d4p1:PurchaseOrderId>
<d4p1:Quantity>3</d4p1:Quantity>
<d4p1:SupplierName>sample string 12</d4p1:SupplierName>
<d4p1:TotalPrice>7</d4p1:TotalPrice>
<d4p1:UnitPrice>4</d4p1:UnitPrice>
</d4p1:PurchaseOrderItemDto>
</d2p1:PurchaseOrderItemDtos>
<d2p1:RemainingDebt>8</d2p1:RemainingDebt>
<d2p1:Status>DRAFT</d2p1:Status>
<d2p1:SupplierId>1</d2p1:SupplierId>
<d2p1:SupplierName>sample string 6</d2p1:SupplierName>
<d2p1:TotalOrder>4</d2p1:TotalOrder>
<d2p1:UpdatedId>151e5c40-e119-4a33-b53d-d0c03c1aadcc</d2p1:UpdatedId>
<d2p1:UpdatedTime>2026-11-17T15:50:35.7032983+07:00</d2p1:UpdatedTime>
</d2p1:ListPurchaseOrderResponse>
</Items>
<NhapHang_GhiChuTien>13</NhapHang_GhiChuTien>
<NhapHang_HoanTien>12</NhapHang_HoanTien>
<NhapHang_SoLuongSanPham>10</NhapHang_SoLuongSanPham>
<NhapHang_SoTienDaDua>9</NhapHang_SoTienDaDua>
<NhapHang_TongTienSanPham>11</NhapHang_TongTienSanPham>
<PayingAmount>3</PayingAmount>
<SumBudgetVariance>17</SumBudgetVariance>
<SumTotalExpense>15</SumTotalExpense>
<SumTotalRefund>16</SumTotalRefund>
<SumTotalRevenue>14</SumTotalRevenue>
<TotalDebt>6</TotalDebt>
<TotalIncome>4</TotalIncome>
<TotalMoney>2</TotalMoney>
<TotalOrderAmount>7</TotalOrderAmount>
<TotalPaid>8</TotalPaid>
<TotalSpend>5</TotalSpend>
</PaginatorResponseOfListPurchaseOrderResponsezelsgFU8>