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. |
|
Take | integer |
None. |
|
Skip | integer |
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. |
Body Parameters
None.
Response Information
Resource Description
PageList containing list of purchase history records and count of all matching purchase history
PageListOfPurchaseHistoryName | 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": "8p9a8pIerUy84uBNvILUwA==", "invoiceIdentifierGuid": "f25a9ff2-1e92-4cad-bce2-e04dbc82d4c0", "invoiceNo": "sample string 1", "invoiceDate": "2025-08-02T23:23:51.1448007", "invoiceText": "sample string 2", "invoiceSupplierIdentifier": "pHbZ5Xi0JUml7n8QyB8Z4A==", "invoiceSupplierIdentifierGuid": "e5d976a4-b478-4925-a5ee-7f10c81f19e0", "invoiceSupplierName": "sample string 3", "invoiceStatus": 1, "completed": "2025-08-02T23:23:51.1448007", "invoiceQty": 4.1, "invoiceCost": 5.1, "invoiceExtCost": 6.1, "hasInvoice": true, "orderGuid": "aPNFjaW750i8HpJGz4ba/A==", "orderIdentifier": "8d45f368-bba5-48e7-bc1e-9246cf86dafc", "orderID": 1, "sent": "2025-08-02T23:23:51.1448007", "sentLocal": "2025-08-02T23:23:51.1448007", "sentByUser": "sample string 8", "orderDescription": "sample string 9", "orderSupplierIdentifier": "kxWUq9tmV0eNJroKDCw9Lw==", "orderSupplierIdentifierGuid": "ab941593-66db-4757-8d26-ba0a0c2c3d2f", "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>2025-08-02T23:23:51.1448007+00:00</d2p1:Completed> <d2p1:HasInvoice>true</d2p1:HasInvoice> <d2p1:HasOrder>true</d2p1:HasOrder> <d2p1:InvoiceCost>5.1</d2p1:InvoiceCost> <d2p1:InvoiceDate>2025-08-02T23:23:51.1448007+00:00</d2p1:InvoiceDate> <d2p1:InvoiceExtCost>6.1</d2p1:InvoiceExtCost> <d2p1:InvoiceIdentifier>8p9a8pIerUy84uBNvILUwA==</d2p1:InvoiceIdentifier> <d2p1:InvoiceIdentifierGuid>f25a9ff2-1e92-4cad-bce2-e04dbc82d4c0</d2p1:InvoiceIdentifierGuid> <d2p1:InvoiceNo>sample string 1</d2p1:InvoiceNo> <d2p1:InvoiceQty>4.1</d2p1:InvoiceQty> <d2p1:InvoiceStatus>1</d2p1:InvoiceStatus> <d2p1:InvoiceSupplierIdentifier>pHbZ5Xi0JUml7n8QyB8Z4A==</d2p1:InvoiceSupplierIdentifier> <d2p1:InvoiceSupplierIdentifierGuid>e5d976a4-b478-4925-a5ee-7f10c81f19e0</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>aPNFjaW750i8HpJGz4ba/A==</d2p1:OrderGuid> <d2p1:OrderID>1</d2p1:OrderID> <d2p1:OrderIdentifier>8d45f368-bba5-48e7-bc1e-9246cf86dafc</d2p1:OrderIdentifier> <d2p1:OrderQty>11.1</d2p1:OrderQty> <d2p1:OrderSupplierIdentifier>kxWUq9tmV0eNJroKDCw9Lw==</d2p1:OrderSupplierIdentifier> <d2p1:OrderSupplierIdentifierGuid>ab941593-66db-4757-8d26-ba0a0c2c3d2f</d2p1:OrderSupplierIdentifierGuid> <d2p1:OrderSupplierName>sample string 10</d2p1:OrderSupplierName> <d2p1:Sent>2025-08-02T23:23:51.1448007+00:00</d2p1:Sent> <d2p1:SentByUser>sample string 8</d2p1:SentByUser> <d2p1:SentLocal>2025-08-02T23:23:51.1448007+00:00</d2p1:SentLocal> </d2p1:PurchaseHistory> <d2p1:PurchaseHistory> <d2p1:Completed>2025-08-02T23:23:51.1448007+00:00</d2p1:Completed> <d2p1:HasInvoice>true</d2p1:HasInvoice> <d2p1:HasOrder>true</d2p1:HasOrder> <d2p1:InvoiceCost>5.1</d2p1:InvoiceCost> <d2p1:InvoiceDate>2025-08-02T23:23:51.1448007+00:00</d2p1:InvoiceDate> <d2p1:InvoiceExtCost>6.1</d2p1:InvoiceExtCost> <d2p1:InvoiceIdentifier>8p9a8pIerUy84uBNvILUwA==</d2p1:InvoiceIdentifier> <d2p1:InvoiceIdentifierGuid>f25a9ff2-1e92-4cad-bce2-e04dbc82d4c0</d2p1:InvoiceIdentifierGuid> <d2p1:InvoiceNo>sample string 1</d2p1:InvoiceNo> <d2p1:InvoiceQty>4.1</d2p1:InvoiceQty> <d2p1:InvoiceStatus>1</d2p1:InvoiceStatus> <d2p1:InvoiceSupplierIdentifier>pHbZ5Xi0JUml7n8QyB8Z4A==</d2p1:InvoiceSupplierIdentifier> <d2p1:InvoiceSupplierIdentifierGuid>e5d976a4-b478-4925-a5ee-7f10c81f19e0</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>aPNFjaW750i8HpJGz4ba/A==</d2p1:OrderGuid> <d2p1:OrderID>1</d2p1:OrderID> <d2p1:OrderIdentifier>8d45f368-bba5-48e7-bc1e-9246cf86dafc</d2p1:OrderIdentifier> <d2p1:OrderQty>11.1</d2p1:OrderQty> <d2p1:OrderSupplierIdentifier>kxWUq9tmV0eNJroKDCw9Lw==</d2p1:OrderSupplierIdentifier> <d2p1:OrderSupplierIdentifierGuid>ab941593-66db-4757-8d26-ba0a0c2c3d2f</d2p1:OrderSupplierIdentifierGuid> <d2p1:OrderSupplierName>sample string 10</d2p1:OrderSupplierName> <d2p1:Sent>2025-08-02T23:23:51.1448007+00:00</d2p1:Sent> <d2p1:SentByUser>sample string 8</d2p1:SentByUser> <d2p1:SentLocal>2025-08-02T23:23:51.1448007+00:00</d2p1:SentLocal> </d2p1:PurchaseHistory> </List> </PageListOfPurchaseHistoryyDisaqof>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
PK ��[/�k�� 5 xl/workbook.xml � (� ����0D�&�C�� �B���ײ� �%m ~��o�vfg�N5�?���G ڕ�����$�1���A�7VQ�}ùd��V�=9&IN,�K�������-�� ����Ը����f ��2k��Dd ��Ta�ETHS5n��E���8�Ȗ2���r`������!�{�Ud��|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="Rbcbcdb75f3b840ff" /></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 ��[s�?y� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�I�|��ݰa[z�'Q۲]�gc������X��j4��'�|�l�o�L^�����A-M?顅sP5�w��"� ?N֓��}cvC��#.�gƢ�e�"BL�@��'1 -+�Kp�$Nj���R��G#�����w�#b rn���O���g� �o��ԲD��Uެ��z75.3�_�k����x^��5g\�Uf����S����Uݺo$�TQ�\tW5z��/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- ��[/�k�� 5 xl/workbook.xmlPK- ��[���� � [Content_Types].xmlPK- ��[� �"' ' V _rels/.relsPK- ��[�0H� � xl/worksheets/sheet1.xmlPK- ��[s�?y� P � xl/_rels/workbook.xml.relsPK- ��[Ѓc'2 E � xl/styles.xmlPK- ��[���� � l xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
PK ��[��X-� 5 xl/workbook.xml � (� ����0��&�C����N\�z��" �'m >��o�vfg�>i;<��G�������`�5=JpmP�]���}1�u��Z7o�ʳ4I���^h�za]h���������h����f���2k��$l �����"*�@bIk�@ItnmI���B��~��y��9"� 0�{�q����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 ��[�FT�' ' _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="Rbed6e4a5d231411e" /></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 ��[D�=�� P xl/_rels/workbook.xml.rels � (� ��MN�0F�b͞8NҐ��ݰa[z���DM��v���G� XE�Tb�����==i���c�{�F�g[YNV9=خ�S4w ��=F�D�9��bCK}���A��d���:��IƔ���Re^�y���A�Lv8���3(<:u�`�`���1�@$v��Cl��%�,Q�=����bU�zHT%1~3��#¯�w��)*��E^7ymn*�K�}���iY^�i�]�R��Th�����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- ��[��X-� 5 xl/workbook.xmlPK- ��[���� � � [Content_Types].xmlPK- ��[�FT�' ' T _rels/.relsPK- ��[�0H� � xl/worksheets/sheet1.xmlPK- ��[D�=�� P � xl/_rels/workbook.xml.relsPK- ��[Ѓc'2 E � xl/styles.xmlPK- ��[���� � i xl/sharedStrings.xmlPK � �