POST api/Product/ListPurchaseOrderHistory
Request Information
URI Parameters
None.
Body Parameters
ListPurchaseOrderHistoryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductId | globally unique identifier |
None. |
|
| PageSize | integer |
None. |
|
| PageIndex | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductId": "cba04b29-c252-43c3-adda-a6add4ed283d",
"PageSize": 1,
"PageIndex": 1
}
application/xml, text/xml
Sample:
<ListPurchaseOrderHistoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Product"> <PageIndex>1</PageIndex> <PageSize>1</PageSize> <ProductId>cba04b29-c252-43c3-adda-a6add4ed283d</ProductId> </ListPurchaseOrderHistoryRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PaginatorResponseOfListPurchaseOrderHistory| 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. |
|
| Items | Collection of ListPurchaseOrderHistory |
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,
"Items": [
{
"SupplierName": "sample string 1",
"PurchaseOrderCode": "sample string 2",
"PurchaseOrderDate": "2025-10-26T13:04:45.5832473+07:00",
"Price": 4.0,
"Quantity": 5
},
{
"SupplierName": "sample string 1",
"PurchaseOrderCode": "sample string 2",
"PurchaseOrderDate": "2025-10-26T13:04:45.5832473+07:00",
"Price": 4.0,
"Quantity": 5
}
]
}
application/xml, text/xml
Sample:
<PaginatorResponseOfListPurchaseOrderHistoryUQB_PquzW 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.Product">
<d2p1:ListPurchaseOrderHistory>
<d2p1:Price>4</d2p1:Price>
<d2p1:PurchaseOrderCode>sample string 2</d2p1:PurchaseOrderCode>
<d2p1:PurchaseOrderDate>2025-10-26T13:04:45.5832473+07:00</d2p1:PurchaseOrderDate>
<d2p1:Quantity>5</d2p1:Quantity>
<d2p1:SupplierName>sample string 1</d2p1:SupplierName>
</d2p1:ListPurchaseOrderHistory>
<d2p1:ListPurchaseOrderHistory>
<d2p1:Price>4</d2p1:Price>
<d2p1:PurchaseOrderCode>sample string 2</d2p1:PurchaseOrderCode>
<d2p1:PurchaseOrderDate>2025-10-26T13:04:45.5832473+07:00</d2p1:PurchaseOrderDate>
<d2p1:Quantity>5</d2p1:Quantity>
<d2p1:SupplierName>sample string 1</d2p1:SupplierName>
</d2p1:ListPurchaseOrderHistory>
</Items>
<PayingAmount>3</PayingAmount>
<TotalDebt>6</TotalDebt>
<TotalIncome>4</TotalIncome>
<TotalMoney>2</TotalMoney>
<TotalOrderAmount>7</TotalOrderAmount>
<TotalPaid>8</TotalPaid>
<TotalSpend>5</TotalSpend>
</PaginatorResponseOfListPurchaseOrderHistoryUQB_PquzW>