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-27T01:55:34.4663892+07:00",
"to": "2026-11-27T01:55:34.4663892+07:00",
"status": 1,
"createdId": "a4cee4fe-9335-481e-82ab-7d53d065a3fa",
"importerId": "079b231a-2503-42b2-9d30-c20bc3c77c21",
"supplierId": 1,
"keySearch": "sample string 1",
"pageSize": 1,
"pageIndex": 1,
"productId": "ddfca551-cc8b-4e63-899c-7a5b50595a90",
"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>a4cee4fe-9335-481e-82ab-7d53d065a3fa</CreatedId> <From>2026-11-27T01:55:34.4663892+07:00</From> <ImporterId>079b231a-2503-42b2-9d30-c20bc3c77c21</ImporterId> <IsSearchError>true</IsSearchError> <KeySearch>sample string 1</KeySearch> <PageIndex>1</PageIndex> <PageSize>1</PageSize> <ProductId>ddfca551-cc8b-4e63-899c-7a5b50595a90</ProductId> <Status>1</Status> <SupplierId>1</SupplierId> <To>2026-11-27T01:55:34.4663892+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": "4436a1da-9846-4f6c-8759-77300b549860",
"createdTime": "2026-11-27T01:55:34.4964843+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-27T01:55:34.4964843+07:00",
"id": "b1f9400b-35cc-4bfc-81c1-09c20d343bae",
"importerId": "5a89fa25-688c-4f9a-9378-f118e37ac4b7",
"updatedId": "d2f9ea6a-39ce-4324-b760-6d3a0e010ceb",
"updatedTime": "2026-11-27T01:55:34.4974615+07:00",
"productIds": [
"bc8888e0-f5b0-4fcc-9441-aaf96c4d42c7",
"3188fa6b-7df6-4413-868b-847291d01619"
],
"paymentType": 12,
"purchaseOrderItemDtos": [
{
"id": 1,
"productId": "d9f32f8c-017d-411b-bb43-ea6d7f883760",
"quantity": 3,
"unitPrice": 4.0,
"discount": 5.0,
"discountType": 6,
"totalPrice": 7.0,
"note": "sample string 8",
"purchaseOrderId": "19585ef9-955d-4ccc-8551-a2db9d5252ec",
"productCode": "sample string 10",
"productName": "sample string 11",
"supplierName": "sample string 12"
},
{
"id": 1,
"productId": "d9f32f8c-017d-411b-bb43-ea6d7f883760",
"quantity": 3,
"unitPrice": 4.0,
"discount": 5.0,
"discountType": 6,
"totalPrice": 7.0,
"note": "sample string 8",
"purchaseOrderId": "19585ef9-955d-4ccc-8551-a2db9d5252ec",
"productCode": "sample string 10",
"productName": "sample string 11",
"supplierName": "sample string 12"
}
]
},
{
"code": "sample string 1",
"createdId": "4436a1da-9846-4f6c-8759-77300b549860",
"createdTime": "2026-11-27T01:55:34.4964843+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-27T01:55:34.4964843+07:00",
"id": "b1f9400b-35cc-4bfc-81c1-09c20d343bae",
"importerId": "5a89fa25-688c-4f9a-9378-f118e37ac4b7",
"updatedId": "d2f9ea6a-39ce-4324-b760-6d3a0e010ceb",
"updatedTime": "2026-11-27T01:55:34.4974615+07:00",
"productIds": [
"bc8888e0-f5b0-4fcc-9441-aaf96c4d42c7",
"3188fa6b-7df6-4413-868b-847291d01619"
],
"paymentType": 12,
"purchaseOrderItemDtos": [
{
"id": 1,
"productId": "d9f32f8c-017d-411b-bb43-ea6d7f883760",
"quantity": 3,
"unitPrice": 4.0,
"discount": 5.0,
"discountType": 6,
"totalPrice": 7.0,
"note": "sample string 8",
"purchaseOrderId": "19585ef9-955d-4ccc-8551-a2db9d5252ec",
"productCode": "sample string 10",
"productName": "sample string 11",
"supplierName": "sample string 12"
},
{
"id": 1,
"productId": "d9f32f8c-017d-411b-bb43-ea6d7f883760",
"quantity": 3,
"unitPrice": 4.0,
"discount": 5.0,
"discountType": 6,
"totalPrice": 7.0,
"note": "sample string 8",
"purchaseOrderId": "19585ef9-955d-4ccc-8551-a2db9d5252ec",
"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>4436a1da-9846-4f6c-8759-77300b549860</d2p1:CreatedId>
<d2p1:CreatedTime>2026-11-27T01:55:34.4964843+07:00</d2p1:CreatedTime>
<d2p1:Debt>1</d2p1:Debt>
<d2p1:Discount>1</d2p1:Discount>
<d2p1:DiscountType>1</d2p1:DiscountType>
<d2p1:Id>b1f9400b-35cc-4bfc-81c1-09c20d343bae</d2p1:Id>
<d2p1:ImporterId>5a89fa25-688c-4f9a-9378-f118e37ac4b7</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>bc8888e0-f5b0-4fcc-9441-aaf96c4d42c7</d4p1:guid>
<d4p1:guid>3188fa6b-7df6-4413-868b-847291d01619</d4p1:guid>
</d2p1:ProductIds>
<d2p1:PurchaseOrderDateTime>2026-11-27T01:55:34.4964843+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>d9f32f8c-017d-411b-bb43-ea6d7f883760</d4p1:ProductId>
<d4p1:ProductName>sample string 11</d4p1:ProductName>
<d4p1:PurchaseOrderId>19585ef9-955d-4ccc-8551-a2db9d5252ec</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>d9f32f8c-017d-411b-bb43-ea6d7f883760</d4p1:ProductId>
<d4p1:ProductName>sample string 11</d4p1:ProductName>
<d4p1:PurchaseOrderId>19585ef9-955d-4ccc-8551-a2db9d5252ec</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>d2f9ea6a-39ce-4324-b760-6d3a0e010ceb</d2p1:UpdatedId>
<d2p1:UpdatedTime>2026-11-27T01:55:34.4974615+07:00</d2p1:UpdatedTime>
</d2p1:ListPurchaseOrderResponse>
<d2p1:ListPurchaseOrderResponse>
<d2p1:Code>sample string 1</d2p1:Code>
<d2p1:CreatedId>4436a1da-9846-4f6c-8759-77300b549860</d2p1:CreatedId>
<d2p1:CreatedTime>2026-11-27T01:55:34.4964843+07:00</d2p1:CreatedTime>
<d2p1:Debt>1</d2p1:Debt>
<d2p1:Discount>1</d2p1:Discount>
<d2p1:DiscountType>1</d2p1:DiscountType>
<d2p1:Id>b1f9400b-35cc-4bfc-81c1-09c20d343bae</d2p1:Id>
<d2p1:ImporterId>5a89fa25-688c-4f9a-9378-f118e37ac4b7</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>bc8888e0-f5b0-4fcc-9441-aaf96c4d42c7</d4p1:guid>
<d4p1:guid>3188fa6b-7df6-4413-868b-847291d01619</d4p1:guid>
</d2p1:ProductIds>
<d2p1:PurchaseOrderDateTime>2026-11-27T01:55:34.4964843+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>d9f32f8c-017d-411b-bb43-ea6d7f883760</d4p1:ProductId>
<d4p1:ProductName>sample string 11</d4p1:ProductName>
<d4p1:PurchaseOrderId>19585ef9-955d-4ccc-8551-a2db9d5252ec</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>d9f32f8c-017d-411b-bb43-ea6d7f883760</d4p1:ProductId>
<d4p1:ProductName>sample string 11</d4p1:ProductName>
<d4p1:PurchaseOrderId>19585ef9-955d-4ccc-8551-a2db9d5252ec</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>d2f9ea6a-39ce-4324-b760-6d3a0e010ceb</d2p1:UpdatedId>
<d2p1:UpdatedTime>2026-11-27T01:55:34.4974615+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>