GET api/product/{id}/history/purchases
Lists purchase orders and invoices matching query parameters, that have specified product in detail table
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Product guid |
globally unique identifier |
Required |
| Status | OrderStatus |
None. |
|
| SupplierIdentifier | Collection of byte |
None. |
|
| SupplierIdentifierGuid | globally unique identifier |
None. |
|
| PLUG_UID | Collection of byte |
None. |
|
| PluGuid | globally unique identifier |
None. |
|
| StoreID |
Matches against either the ordered for store, or the ordered from store for store transfers |
integer |
None. |
| TransfersOnlyStore |
When true, StoreID is only matched against the ordered from store for store transfers |
boolean |
None. |
| OrdersOnlyStore |
When true, StoreID is only matched against the ordered for store |
boolean |
None. |
| Search | string |
None. |
|
| OrderNo | string |
None. |
|
| DetailSearch | DetailSearchType |
None. |
|
| OrderType | string |
None. |
|
| ShowHeader | ShowHeaderType |
None. |
|
| ExcludeCompleted | boolean |
None. |
|
| ExcludeStarted | boolean |
None. |
|
| ExcludeSent | boolean |
None. |
|
| ExcludeInvoices | boolean |
None. |
|
| ExcludeCancelled | boolean |
None. |
|
| CreatedBefore |
Local created date filtering before |
date |
None. |
| CreatedAfter |
Local created date filtering after |
date |
None. |
| SentBefore |
Local sent date filtering before |
date |
None. |
| DueDateBefore |
Due date filtering before |
date |
None. |
| DueDateAfter |
Due date filtering after |
date |
None. |
| SentAfter |
Local sent date filtering after |
date |
None. |
| StockReceivedAfter |
Local stock received after |
date |
None. |
| StockReceivedBefore |
Local stock received after |
date |
None. |
| TradingPartner | OrderTradingPartner |
None. |
|
| TransferInvoiced | boolean |
None. |
|
| AutoOrder | boolean |
None. |
|
| SortBy | OrderSortBy |
None. |
|
| Sort | SortOrder |
None. |
|
| Relations | boolean |
None. |
|
| Details | boolean |
None. |
|
| Skip |
Number of records to skip over |
integer |
None. |
| Take |
Number of records to take |
integer |
None. |
| TotalCount | integer |
Relation. This field may not always be loaded or used for updates. |
Body Parameters
None.
Response Information
Resource Description
PageList containing list of purchase history records and count of all matching purchase history
PageListOfPurchaseHistory| Name | Description | Type | Additional information |
|---|---|---|---|
| Type | string |
None. |
|
| List | Collection of PurchaseHistory |
None. |
|
| Skip |
Number of records to skip over |
integer |
None. |
| Take |
Number of records to take |
integer |
None. |
| TotalCount | integer |
Relation. This field may not always be loaded or used for updates. |
Response Formats
application/json, text/json
{
"type": "PurchaseHistory",
"list": [
{
"$id": "2",
"invoiceIdentifier": "92impGt/gEq5sBHi7JRh8A==",
"invoiceIdentifierGuid": "a4a668f7-7f6b-4a80-b9b0-11e2ec9461f0",
"invoiceNo": "sample string 1",
"invoiceDate": "2026-06-03T18:36:07.6967795",
"invoiceText": "sample string 2",
"invoiceSupplierIdentifier": "WSAQmbx0nEu0Z08xnK757Q==",
"invoiceSupplierIdentifierGuid": "99102059-74bc-4b9c-b467-4f319caef9ed",
"invoiceSupplierName": "sample string 3",
"invoiceStatus": 1,
"completed": "2026-06-03T18:36:07.6967795",
"invoiceQty": 4.1,
"invoiceCost": 5.1,
"invoiceExtCost": 6.1,
"hasInvoice": true,
"orderGuid": "jC7PCxfP4UqohdBJjHmrpw==",
"orderIdentifier": "0bcf2e8c-cf17-4ae1-a885-d0498c79aba7",
"orderID": 1,
"sent": "2026-06-03T18:36:07.6967795",
"sentLocal": "2026-06-03T18:36:07.6967795",
"sentByUser": "sample string 8",
"orderDescription": "sample string 9",
"orderSupplierIdentifier": "+/QnoBAe3EqAH1jY+rgpcg==",
"orderSupplierIdentifierGuid": "a027f4fb-1e10-4adc-801f-58d8fab82972",
"orderSupplierName": "sample string 10",
"orderQty": 11.1,
"orderCost": 12.1,
"hasOrder": true
},
{
"$ref": "2"
}
],
"skip": 1,
"take": 1,
"totalCount": 1
}
application/xml, text/xml
<PageListOfPurchaseHistoryyDisaqof xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.Common">
<Skip>1</Skip>
<Take>1</Take>
<TotalCount>1</TotalCount>
<List xmlns:d2p1="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Orders">
<d2p1:PurchaseHistory>
<d2p1:Completed>2026-06-03T18:36:07.6967795+00:00</d2p1:Completed>
<d2p1:HasInvoice>true</d2p1:HasInvoice>
<d2p1:HasOrder>true</d2p1:HasOrder>
<d2p1:InvoiceCost>5.1</d2p1:InvoiceCost>
<d2p1:InvoiceDate>2026-06-03T18:36:07.6967795+00:00</d2p1:InvoiceDate>
<d2p1:InvoiceExtCost>6.1</d2p1:InvoiceExtCost>
<d2p1:InvoiceIdentifier>92impGt/gEq5sBHi7JRh8A==</d2p1:InvoiceIdentifier>
<d2p1:InvoiceIdentifierGuid>a4a668f7-7f6b-4a80-b9b0-11e2ec9461f0</d2p1:InvoiceIdentifierGuid>
<d2p1:InvoiceNo>sample string 1</d2p1:InvoiceNo>
<d2p1:InvoiceQty>4.1</d2p1:InvoiceQty>
<d2p1:InvoiceStatus>1</d2p1:InvoiceStatus>
<d2p1:InvoiceSupplierIdentifier>WSAQmbx0nEu0Z08xnK757Q==</d2p1:InvoiceSupplierIdentifier>
<d2p1:InvoiceSupplierIdentifierGuid>99102059-74bc-4b9c-b467-4f319caef9ed</d2p1:InvoiceSupplierIdentifierGuid>
<d2p1:InvoiceSupplierName>sample string 3</d2p1:InvoiceSupplierName>
<d2p1:InvoiceText>sample string 2</d2p1:InvoiceText>
<d2p1:OrderCost>12.1</d2p1:OrderCost>
<d2p1:OrderDescription>sample string 9</d2p1:OrderDescription>
<d2p1:OrderGuid>jC7PCxfP4UqohdBJjHmrpw==</d2p1:OrderGuid>
<d2p1:OrderID>1</d2p1:OrderID>
<d2p1:OrderIdentifier>0bcf2e8c-cf17-4ae1-a885-d0498c79aba7</d2p1:OrderIdentifier>
<d2p1:OrderQty>11.1</d2p1:OrderQty>
<d2p1:OrderSupplierIdentifier>+/QnoBAe3EqAH1jY+rgpcg==</d2p1:OrderSupplierIdentifier>
<d2p1:OrderSupplierIdentifierGuid>a027f4fb-1e10-4adc-801f-58d8fab82972</d2p1:OrderSupplierIdentifierGuid>
<d2p1:OrderSupplierName>sample string 10</d2p1:OrderSupplierName>
<d2p1:Sent>2026-06-03T18:36:07.6967795+00:00</d2p1:Sent>
<d2p1:SentByUser>sample string 8</d2p1:SentByUser>
<d2p1:SentLocal>2026-06-03T18:36:07.6967795+00:00</d2p1:SentLocal>
</d2p1:PurchaseHistory>
<d2p1:PurchaseHistory>
<d2p1:Completed>2026-06-03T18:36:07.6967795+00:00</d2p1:Completed>
<d2p1:HasInvoice>true</d2p1:HasInvoice>
<d2p1:HasOrder>true</d2p1:HasOrder>
<d2p1:InvoiceCost>5.1</d2p1:InvoiceCost>
<d2p1:InvoiceDate>2026-06-03T18:36:07.6967795+00:00</d2p1:InvoiceDate>
<d2p1:InvoiceExtCost>6.1</d2p1:InvoiceExtCost>
<d2p1:InvoiceIdentifier>92impGt/gEq5sBHi7JRh8A==</d2p1:InvoiceIdentifier>
<d2p1:InvoiceIdentifierGuid>a4a668f7-7f6b-4a80-b9b0-11e2ec9461f0</d2p1:InvoiceIdentifierGuid>
<d2p1:InvoiceNo>sample string 1</d2p1:InvoiceNo>
<d2p1:InvoiceQty>4.1</d2p1:InvoiceQty>
<d2p1:InvoiceStatus>1</d2p1:InvoiceStatus>
<d2p1:InvoiceSupplierIdentifier>WSAQmbx0nEu0Z08xnK757Q==</d2p1:InvoiceSupplierIdentifier>
<d2p1:InvoiceSupplierIdentifierGuid>99102059-74bc-4b9c-b467-4f319caef9ed</d2p1:InvoiceSupplierIdentifierGuid>
<d2p1:InvoiceSupplierName>sample string 3</d2p1:InvoiceSupplierName>
<d2p1:InvoiceText>sample string 2</d2p1:InvoiceText>
<d2p1:OrderCost>12.1</d2p1:OrderCost>
<d2p1:OrderDescription>sample string 9</d2p1:OrderDescription>
<d2p1:OrderGuid>jC7PCxfP4UqohdBJjHmrpw==</d2p1:OrderGuid>
<d2p1:OrderID>1</d2p1:OrderID>
<d2p1:OrderIdentifier>0bcf2e8c-cf17-4ae1-a885-d0498c79aba7</d2p1:OrderIdentifier>
<d2p1:OrderQty>11.1</d2p1:OrderQty>
<d2p1:OrderSupplierIdentifier>+/QnoBAe3EqAH1jY+rgpcg==</d2p1:OrderSupplierIdentifier>
<d2p1:OrderSupplierIdentifierGuid>a027f4fb-1e10-4adc-801f-58d8fab82972</d2p1:OrderSupplierIdentifierGuid>
<d2p1:OrderSupplierName>sample string 10</d2p1:OrderSupplierName>
<d2p1:Sent>2026-06-03T18:36:07.6967795+00:00</d2p1:Sent>
<d2p1:SentByUser>sample string 8</d2p1:SentByUser>
<d2p1:SentLocal>2026-06-03T18:36:07.6967795+00:00</d2p1:SentLocal>
</d2p1:PurchaseHistory>
</List>
</PageListOfPurchaseHistoryyDisaqof>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
PK ���\�u � 5 xl/workbook.xml � (� ��;�0D�H���Ć�d�hҦHo�,�G�#r�#�ҥۙ�};l2nh��G����}� ċ�cA�]g��!J�"�뤀ڈ�HN�8y�F�^Z��?,o��� A�Jq�q��!��fO �O2k��Dd ��K��")����<p��soK�a�
�G����MFsq��o�
�����PK ���\���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d�
�d�k��<�H���V���=
��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ
�1Z�$�8z�R��3
tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b
��%#H'�2}���e�B)��~j/F�t��PK
���\L��' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R8fc1f39acb254ee3" /></Relationships>PK ���\�0H� xl/worksheets/sheet1.xml � (� ��]o�0�������K"��T�]Ջ����l'���J�u�
��9~},�ۗ�gi��}I�!�}�+�rxr���٠ͳm�t��ݚ6��ٲ����>���jm:���9 ]ת�;]�:�;D1���V8��m��©ۿ�G#E"t�Ԫ��EV)�}L��sxG�{
*� �Rr��`<���Ǐ�Uq`�
~�?P�Z�Z���R�ĂS�ֆ'��8::�ރ�\3rO���71��K��:����oM&��:]���a�q����x����D$���e�d�������㒈�4M(����UMS#� '����P���՝_�p1~�����:��L|_䒸_�ح���د�d!���d�����a��� �)�q�\�/j��))�0���I�<h� w����+PK ���\��y�� P xl/_rels/workbook.xml.rels � (� ��Kn�0@�b;�'_�M7l)p�q�ؑmJ9[=R�P�Jm����h~OO��|���ަ����55�A�l;���s�O춛�2� ��'q����5�^�8I��M�h�&b�::Ku�R�XAݒ�Lr�����zP�l�yB� Ӌu'�# G�:5��<��D*�}[áyʰl8*[a�>L͇����;_Ȉ&�F3ųRgM�*�K��Kp��K�ey�ִ���\�iUeB�75z��/PK ���\Ѓc'2 E
xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK ���\���� � xl/sharedStrings.xml � (� ePMK�0�+!w��T��ʪ���$�!}�a����*�_oV�{��)w���H�"Vr�
) m��|��.� 6�*� I��K"يTɑy�Қ����`V�b
�3L��)��i����(�u0��qF��3���?�\]r�-���R�/w�����Mk�3�o������0';�ۜ�rR�CPM�,�H� BrV��n��_�5hH��=xR��Q����U����O��PK- ���\�u � 5 xl/workbook.xmlPK- ���\���� � [Content_Types].xmlPK-
���\L��' ' V _rels/.relsPK- ���\�0H� � xl/worksheets/sheet1.xmlPK- ���\��y�� P � xl/_rels/workbook.xml.relsPK- ���\Ѓc'2 E
� xl/styles.xmlPK- ���\���� � l xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
PK ���\2�G� 5 xl/workbook.xml � (� ����0��&�C��(b
)��x���V�O�||K $���~;l2nx3���/]��lI�o{P��w�8�C��E���ƴo:�S�]���i���x������|Ը����Bln��0�$��֝MD��M��.�B�+�p��(9���G�\)�po)-��
�e��
o�
�����PK ���\���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d�
�d�k��<�H���V���=
��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ
�1Z�$�8z�R��3
tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b
��%#H'�2}���e�B)��~j/F�t��PK
���\�~' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R774aef5f31ec42ad" /></Relationships>PK ���\�0H� xl/worksheets/sheet1.xml � (� ��]o�0�������K"��T�]Ջ����l'���J�u�
��9~},�ۗ�gi��}I�!�}�+�rxr���٠ͳm�t��ݚ6��ٲ����>���jm:���9 ]ת�;]�:�;D1���V8��m��©ۿ�G#E"t�Ԫ��EV)�}L��sxG�{
*� �Rr��`<���Ǐ�Uq`�
~�?P�Z�Z���R�ĂS�ֆ'��8::�ރ�\3rO���71��K��:����oM&��:]���a�q����x����D$���e�d�������㒈�4M(����UMS#� '����P���՝_�p1~�����:��L|_䒸_�ح���د�d!���d�����a��� �)�q�\�/j��))�0���I�<h� w����+PK ���\k�@ � P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8i�8��ݰ���=��&vd����G�
XE�Tb�������4����M#9���-Y�tj�}���n�{EL�s iņL���A�D�܌6u��)�=��<��*�k��e��e���փ�g'O����:19�cl��5Y�٩��s�J���˪A��M-�ˈ���;_�䥬kʢV��Q�U���%�t�Ӳ�P[ɮkģ���J��Fo�b�PK ���\Ѓc'2 E
xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK ���\���� � xl/sharedStrings.xml � (� ePMK�0�+!w��T��ʪ���$�!}�a����*�_oV�{��)w���H�"Vr�
) m��|��.� 6�*� I��K"يTɑy�Қ����`V�b
�3L��)��i����(�u0��qF��3���?�\]r�-���R�/w�����Mk�3�o������0';�ۜ�rR�CPM�,�H� BrV��n��_�5hH��=xR��Q����U����O��PK- ���\2�G� 5 xl/workbook.xmlPK- ���\���� � [Content_Types].xmlPK-
���\�~' ' V _rels/.relsPK- ���\�0H� � xl/worksheets/sheet1.xmlPK- ���\k�@ � P � xl/_rels/workbook.xml.relsPK- ���\Ѓc'2 E
� xl/styles.xmlPK- ���\���� � m xl/sharedStrings.xmlPK � �