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": "FBJp/XTQxU6hzJLFVOYtaw==",
"invoiceIdentifierGuid": "fd691214-d074-4ec5-a1cc-92c554e62d6b",
"invoiceNo": "sample string 1",
"invoiceDate": "2026-04-03T06:22:29.8031757",
"invoiceText": "sample string 2",
"invoiceSupplierIdentifier": "Ua3IOVP6l0yprKr6r4wM6Q==",
"invoiceSupplierIdentifierGuid": "39c8ad51-fa53-4c97-a9ac-aafaaf8c0ce9",
"invoiceSupplierName": "sample string 3",
"invoiceStatus": 1,
"completed": "2026-04-03T06:22:29.8031757",
"invoiceQty": 4.1,
"invoiceCost": 5.1,
"invoiceExtCost": 6.1,
"hasInvoice": true,
"orderGuid": "97gGrf1d60aS7CpjLedW7A==",
"orderIdentifier": "ad06b8f7-5dfd-46eb-92ec-2a632de756ec",
"orderID": 1,
"sent": "2026-04-03T06:22:29.8031757",
"sentLocal": "2026-04-03T06:22:29.8031757",
"sentByUser": "sample string 8",
"orderDescription": "sample string 9",
"orderSupplierIdentifier": "ED5h07DYUU2qM8ZG8V0gjw==",
"orderSupplierIdentifierGuid": "d3613e10-d8b0-4d51-aa33-c646f15d208f",
"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-04-03T06:22:29.8031757+00:00</d2p1:Completed>
<d2p1:HasInvoice>true</d2p1:HasInvoice>
<d2p1:HasOrder>true</d2p1:HasOrder>
<d2p1:InvoiceCost>5.1</d2p1:InvoiceCost>
<d2p1:InvoiceDate>2026-04-03T06:22:29.8031757+00:00</d2p1:InvoiceDate>
<d2p1:InvoiceExtCost>6.1</d2p1:InvoiceExtCost>
<d2p1:InvoiceIdentifier>FBJp/XTQxU6hzJLFVOYtaw==</d2p1:InvoiceIdentifier>
<d2p1:InvoiceIdentifierGuid>fd691214-d074-4ec5-a1cc-92c554e62d6b</d2p1:InvoiceIdentifierGuid>
<d2p1:InvoiceNo>sample string 1</d2p1:InvoiceNo>
<d2p1:InvoiceQty>4.1</d2p1:InvoiceQty>
<d2p1:InvoiceStatus>1</d2p1:InvoiceStatus>
<d2p1:InvoiceSupplierIdentifier>Ua3IOVP6l0yprKr6r4wM6Q==</d2p1:InvoiceSupplierIdentifier>
<d2p1:InvoiceSupplierIdentifierGuid>39c8ad51-fa53-4c97-a9ac-aafaaf8c0ce9</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>97gGrf1d60aS7CpjLedW7A==</d2p1:OrderGuid>
<d2p1:OrderID>1</d2p1:OrderID>
<d2p1:OrderIdentifier>ad06b8f7-5dfd-46eb-92ec-2a632de756ec</d2p1:OrderIdentifier>
<d2p1:OrderQty>11.1</d2p1:OrderQty>
<d2p1:OrderSupplierIdentifier>ED5h07DYUU2qM8ZG8V0gjw==</d2p1:OrderSupplierIdentifier>
<d2p1:OrderSupplierIdentifierGuid>d3613e10-d8b0-4d51-aa33-c646f15d208f</d2p1:OrderSupplierIdentifierGuid>
<d2p1:OrderSupplierName>sample string 10</d2p1:OrderSupplierName>
<d2p1:Sent>2026-04-03T06:22:29.8031757+00:00</d2p1:Sent>
<d2p1:SentByUser>sample string 8</d2p1:SentByUser>
<d2p1:SentLocal>2026-04-03T06:22:29.8031757+00:00</d2p1:SentLocal>
</d2p1:PurchaseHistory>
<d2p1:PurchaseHistory>
<d2p1:Completed>2026-04-03T06:22:29.8031757+00:00</d2p1:Completed>
<d2p1:HasInvoice>true</d2p1:HasInvoice>
<d2p1:HasOrder>true</d2p1:HasOrder>
<d2p1:InvoiceCost>5.1</d2p1:InvoiceCost>
<d2p1:InvoiceDate>2026-04-03T06:22:29.8031757+00:00</d2p1:InvoiceDate>
<d2p1:InvoiceExtCost>6.1</d2p1:InvoiceExtCost>
<d2p1:InvoiceIdentifier>FBJp/XTQxU6hzJLFVOYtaw==</d2p1:InvoiceIdentifier>
<d2p1:InvoiceIdentifierGuid>fd691214-d074-4ec5-a1cc-92c554e62d6b</d2p1:InvoiceIdentifierGuid>
<d2p1:InvoiceNo>sample string 1</d2p1:InvoiceNo>
<d2p1:InvoiceQty>4.1</d2p1:InvoiceQty>
<d2p1:InvoiceStatus>1</d2p1:InvoiceStatus>
<d2p1:InvoiceSupplierIdentifier>Ua3IOVP6l0yprKr6r4wM6Q==</d2p1:InvoiceSupplierIdentifier>
<d2p1:InvoiceSupplierIdentifierGuid>39c8ad51-fa53-4c97-a9ac-aafaaf8c0ce9</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>97gGrf1d60aS7CpjLedW7A==</d2p1:OrderGuid>
<d2p1:OrderID>1</d2p1:OrderID>
<d2p1:OrderIdentifier>ad06b8f7-5dfd-46eb-92ec-2a632de756ec</d2p1:OrderIdentifier>
<d2p1:OrderQty>11.1</d2p1:OrderQty>
<d2p1:OrderSupplierIdentifier>ED5h07DYUU2qM8ZG8V0gjw==</d2p1:OrderSupplierIdentifier>
<d2p1:OrderSupplierIdentifierGuid>d3613e10-d8b0-4d51-aa33-c646f15d208f</d2p1:OrderSupplierIdentifierGuid>
<d2p1:OrderSupplierName>sample string 10</d2p1:OrderSupplierName>
<d2p1:Sent>2026-04-03T06:22:29.8031757+00:00</d2p1:Sent>
<d2p1:SentByUser>sample string 8</d2p1:SentByUser>
<d2p1:SentLocal>2026-04-03T06:22:29.8031757+00:00</d2p1:SentLocal>
</d2p1:PurchaseHistory>
</List>
</PageListOfPurchaseHistoryyDisaqof>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
PK �2�\��� 5 xl/workbook.xml � (� ����0��&�C���p��Ճ�Z�H����[J ��mgv��if�_k_�'j�b�� B���d����<&�Ď��[��`"9EI<L<*k�T.��+8| �iEi������]��L�Vw1YC�7�d�~�2\C�{9Fٹ-��Z��F+�*&XE)��R������PK �2�\���� � [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
�2�\^[\�' ' _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="R2d934988196d48fd" /></Relationships>PK �2�\�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 �2�\f�q� P xl/_rels/workbook.xml.rels � (� ��Kn�0@�b;qL� 6�R.`��G$�eZ��E��+ԢRk�.�a5��ӓf>�?�۷y"t~4���@P+ӎ�o���
���'�F�I\Ѿ�!��ԫg�3cQ�Ng�,CL]O�T'�#-�.e�=���C4]7*�u�Q�?��ո���t=�~J���"�s����B�B��1�E��Ї��p���z}�L�<.U�K�y�����a�\�tꔖ���ǚײlr��F��b�PK �2�\Ѓ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 �2�\���� � 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�\��� 5 xl/workbook.xmlPK- �2�\���� � � [Content_Types].xmlPK-
�2�\^[\�' ' U _rels/.relsPK- �2�\�0H� � xl/worksheets/sheet1.xmlPK- �2�\f�q� P � xl/_rels/workbook.xml.relsPK- �2�\Ѓc'2 E
� xl/styles.xmlPK- �2�\���� � l xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
PK �2�\t�� 5 xl/workbook.xml � (� ����0��&�C��H )��x�བ�4П�5���H�yۙ��v�l��4fD5i_�!ؚ�P̟�w�8�B��E��Cg�[�$ϲ�8�X�F�AZ�W�?,o�� AM+J1�q{< D�f �O2[��Dd
��M��")���w,0��s�|���2�K.ʪ�Yыk<�;{�Q��n�PK �2�\���� � [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
�2�\|��' ' _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="R631104bb696c4995" /></Relationships>PK �2�\�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 �2�\J��� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�IMb��ݰa[z��Q;�]�gc���V� �X��j4��'�|�lvo�H^0��; e���Ӿ\/�̝��v��Q�<�0G�W\�`S�הFmqR��3��1>L*�4�tV��z�c5
K\3��<��ޘA�ק ]�L_}8F���T�1I�)Ez e��@�: ����Bh�;�p�z3���#�_��|!c��R����ƈ��X�{N!_z�,/Ԛ�;&Z^)�W���F��b�PK �2�\Ѓ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 �2�\���� � 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�\t�� 5 xl/workbook.xmlPK- �2�\���� � � [Content_Types].xmlPK-
�2�\|��' ' U _rels/.relsPK- �2�\�0H� � xl/worksheets/sheet1.xmlPK- �2�\J��� P � xl/_rels/workbook.xml.relsPK- �2�\Ѓc'2 E
� xl/styles.xmlPK- �2�\���� � k xl/sharedStrings.xmlPK � �