GET api/product/{id}/sales/histories?storeID={storeID}
Get a group of sales histories for multiple periods
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Product identifier |
globally unique identifier |
Required |
| storeID |
Store to restrict sales information to |
integer |
Default value is 0 |
| PLUG_UID | Collection of byte |
None. |
|
| PluGuid |
Product to get sales history of |
globally unique identifier |
None. |
| SummaryPeriods |
Period to summarise |
Collection of integer |
None. |
| TodayLocal |
CurrentDate |
date |
Required |
| IncludeExternalSales |
Whether external sales should be included |
boolean |
None. |
| Stores |
List of stores to restrict sales records to |
Collection of integer |
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
List of sales history records for periods
Collection of SalesHistory| Name | Description | Type | Additional information |
|---|---|---|---|
| StoreID | integer |
Relation. This field may not always be loaded or used for updates. |
|
| StoreName |
Store name |
string |
Relation. This field may not always be loaded or used for updates. |
| PeriodBeginning |
First day of summary period |
date |
Relation. This field may not always be loaded or used for updates. |
| Period |
First day of summary period |
SalesHistorySummaryPeriod |
Relation. This field may not always be loaded or used for updates. |
| Hour |
Hour of the summary if by hour |
integer |
Relation. This field may not always be loaded or used for updates. |
| PLUG_UID | Collection of byte |
Relation. This field may not always be loaded or used for updates. |
|
| PluGuid |
Product guid |
globally unique identifier |
Relation. This field may not always be loaded or used for updates. |
| Quantity |
Quantity of items sold |
decimal number |
Relation. This field may not always be loaded or used for updates. |
| Dumped |
Quantity of items dumped |
decimal number |
Relation. This field may not always be loaded or used for updates. |
| AvgUnitSellInc |
Average SellPrice for the period |
decimal number |
Relation. This field may not always be loaded or used for updates. |
| AvgUnitSellEx |
Average SellPrice for the period |
decimal number |
Relation. This field may not always be loaded or used for updates. |
| AvgUnitCostInc |
Average Cost for the period |
decimal number |
Relation. This field may not always be loaded or used for updates. |
| AvgUnitCostEx |
Average Cost for the period |
decimal number |
Relation. This field may not always be loaded or used for updates. |
| SalesInc |
Value of the Sale Price including tax of sales |
decimal number |
Relation. This field may not always be loaded or used for updates. |
| SalesEx |
Value of the Sale Price excluding tax of sales |
decimal number |
Relation. This field may not always be loaded or used for updates. |
| CostInc |
Value of the Cost including tax of sales |
decimal number |
Relation. This field may not always be loaded or used for updates. |
| CostEx |
Value of the Cost excluding tax of sales |
decimal number |
Relation. This field may not always be loaded or used for updates. |
| GrossProfit |
Gross Profit dollar value |
decimal number |
Relation. This field may not always be loaded or used for updates. |
Response Formats
application/json, text/json
[
{
"$id": "1",
"storeID": 1,
"storeName": "sample string 1",
"periodBeginning": "2026-06-03T18:36:22.1884911",
"period": 0,
"hour": 1,
"quantity": 3.1,
"dumped": 4.1,
"avgUnitSellInc": 5.1,
"avgUnitSellEx": 6.1,
"avgUnitCostInc": 7.1,
"avgUnitCostEx": 8.1,
"salesInc": 9.1,
"salesEx": 10.1,
"costInc": 11.1,
"costEx": 12.1,
"grossProfit": 13.1
},
{
"$ref": "1"
}
]
application/xml, text/xml
<ArrayOfSalesHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Sales">
<SalesHistory>
<AvgUnitCostEx>8.1</AvgUnitCostEx>
<AvgUnitCostInc>7.1</AvgUnitCostInc>
<AvgUnitSellEx>6.1</AvgUnitSellEx>
<AvgUnitSellInc>5.1</AvgUnitSellInc>
<CostEx>12.1</CostEx>
<CostInc>11.1</CostInc>
<Dumped>4.1</Dumped>
<GrossProfit>13.1</GrossProfit>
<Hour>1</Hour>
<PLUG_UID i:nil="true" />
<Period>Hourly</Period>
<PeriodBeginning>2026-06-03T18:36:22.1884911+00:00</PeriodBeginning>
<PluGuid i:nil="true" />
<Quantity>3.1</Quantity>
<SalesEx>10.1</SalesEx>
<SalesInc>9.1</SalesInc>
<StoreID>1</StoreID>
<StoreName>sample string 1</StoreName>
</SalesHistory>
<SalesHistory>
<AvgUnitCostEx>8.1</AvgUnitCostEx>
<AvgUnitCostInc>7.1</AvgUnitCostInc>
<AvgUnitSellEx>6.1</AvgUnitSellEx>
<AvgUnitSellInc>5.1</AvgUnitSellInc>
<CostEx>12.1</CostEx>
<CostInc>11.1</CostInc>
<Dumped>4.1</Dumped>
<GrossProfit>13.1</GrossProfit>
<Hour>1</Hour>
<PLUG_UID i:nil="true" />
<Period>Hourly</Period>
<PeriodBeginning>2026-06-03T18:36:22.1884911+00:00</PeriodBeginning>
<PluGuid i:nil="true" />
<Quantity>3.1</Quantity>
<SalesEx>10.1</SalesEx>
<SalesInc>9.1</SalesInc>
<StoreID>1</StoreID>
<StoreName>sample string 1</StoreName>
</SalesHistory>
</ArrayOfSalesHistory>
text/csv
Sample not available.
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
PK ���\I~�:� 5 xl/workbook.xml � (� ����0��&�C�� h�N\�z�^�V�O�||K $���~;t2nx3����\��lE��zP��w�8�B��E����to:�c�����i���x������j\P�I���!:7{H�|��X��&"K���h�mI!�Ըe�a���q���d���S���ʋ���X����w�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="R30c4d12c909f476d" /></Relationships>PK ���\����� � xl/worksheets/sheet1.xml � (� ���r�0�_���@vBt�N[k��E�5Gce*��}��&��Z;o�0��I��7O�Xl�68ȶ�f.��sh�����
�"��V�疴o��th��|{��|œ(sĖo��i��6�t�r��X�w ��.F�wS��r�T����}���Z�6�Ѣh!YK%Q��G�E,���R��Wp1#����#���vm��?!�7����
��0O���Rk���n���~���U.�D��\����J���l+�~��}��WC;t�C>���.�E���3T�c�9|ʁ�0�<^���<)�䜧Q@�|ұ�W潞}�2G{��2��E<`D�+��<�nP悞��̅=s�* P}g�0�3Ơ����3R@��W���-P�
d!x4 �*���+`��X����P�}��0�T���7Y�}�/8 '��myk�x���8ʣ� {+-dY�pu%/�⨒�O&ϼ��߇l�n:@u�4Xu���:n�OuL��:�_uL��:@u<4��xl��6ԧ�6���6֗�6���6ط�6���6�Y��<[W�w����e���k�,�m�M=���|��Ã��Z{�jڶ���4�X�һn˴�q�5���u���c]�u���2]}�������PW_��!]~Sd��wEƺ<S�����'b��t�D~�SK5'C3�f��S�eJ�8#NĈ1�D�8#NĈ1�D�83NČ�[{N��O'B�<-������PK ���\x�Y�� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8Χ$�i7lؖ^`d�㨉�nK�Ƃ#q�"A*�`��h~OO��|�Xoߦ��ȇ��D�#+�l��1�����F�i"�a,��Ё�q~�<HC���dSG;?aL�����=�"�W�/p�d��L�!:�I�N'��0?;�(ۣ�)v�S
�D���^T�F)Q�\W�*��0~7�/#�_��|!S�@Y�V<b[ժ���AO�5�t�Ӳ�P�u[��,�fUT��o�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 � (� }�AO�0��J�;˶B�-�
�$��F�(j�.R�ؙ�O�P�q������Yq�@�c)g����o
v��ߟ�n� ��j�Jy��*�X�(R)����R���i��0��Ns*C���[���j>�^+�
J���\��L���3��GH#LUp�e`�,W�:K�W�`6�o�3���x�>�2�K�����W�d-ޢF6|���z�����F�[�v��?��x.<����ѭ�@#�o=�_1�{<�&���!"�z�B�1[����[�tk�PK- ���\I~�:� 5 xl/workbook.xmlPK- ���\���� � [Content_Types].xmlPK-
���\���' ' V _rels/.relsPK- ���\����� � � xl/worksheets/sheet1.xmlPK- ���\x�Y�� P xl/_rels/workbook.xml.relsPK- ���\Ѓc'2 E
I xl/styles.xmlPK- ���\;
� � � xl/sharedStrings.xmlPK � #
application/vnd.ms-excel
PK ���\K�ڶ 5 xl/workbook.xml � (� ����0D�&�C����")��x��}��6Ж�5��$��ξ1Z�=���G��箠2�!g��5����]k���{1۶����o�&��x��aAY�<]h����/���eh��"�f���e4ֺ�I�b�)1ö�YZA Jf���D��U�Pg�K�S�1Iyv�{� ��.�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
���\o�)' ' _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="Rd9738e9357e141e5" /></Relationships>PK ���\����� � xl/worksheets/sheet1.xml � (� ���r�0�_���@vBt�N[k��E�5Gce*��}��&��Z;o�0��I��7O�Xl�68ȶ�f.��sh�����
�"��V�疴o��th��|{��|œ(sĖo��i��6�t�r��X�w ��.F�wS��r�T����}���Z�6�Ѣh!YK%Q��G�E,���R��Wp1#����#���vm��?!�7����
��0O���Rk���n���~���U.�D��\����J���l+�~��}��WC;t�C>���.�E���3T�c�9|ʁ�0�<^���<)�䜧Q@�|ұ�W潞}�2G{��2��E<`D�+��<�nP悞��̅=s�* P}g�0�3Ơ����3R@��W���-P�
d!x4 �*���+`��X����P�}��0�T���7Y�}�/8 '��myk�x���8ʣ� {+-dY�pu%/�⨒�O&ϼ��߇l�n:@u�4Xu���:n�OuL��:�_uL��:@u<4��xl��6ԧ�6���6֗�6���6ط�6���6�Y��<[W�w����e���k�,�m�M=���|��Ã��Z{�jڶ���4�X�һn˴�q�5���u���c]�u���2]}�������PW_��!]~Sd��wEƺ<S�����'b��t�D~�SK5'C3�f��S�eJ�8#NĈ1�D�8#NĈ1�D�83NČ�[{N��O'B�<-������PK ���\7S+� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8I-c���tö���Q۲]�gc���V� �X��j4��'�|���o�D^0�ѻ���N�~tC�l�l7�=N*��dǐHYq��sx�4i��J��J��8�\�8Р�Q
Hۺ�4.p�$�s���1�Ɲק]�L_}<&���T0w�SJ���P�<�����3αe\H �fj)�'L�^��B�y֢��h%Zf����U��˥�N��BM���⦖��/j��/6_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 � (� }�AO�0��J�;˶B�-�
�$��F�(j�.R�ؙ�O�P�q������Yq�@�c)g����o
v��ߟ�n� ��j�Jy��*�X�(R)����R���i��0��Ns*C���[���j>�^+�
J���\��L���3��GH#LUp�e`�,W�:K�W�`6�o�3���x�>�2�K�����W�d-ޢF6|���z�����F�[�v��?��x.<����ѭ�@#�o=�_1�{<�&���!"�z�B�1[����[�tk�PK- ���\K�ڶ 5 xl/workbook.xmlPK- ���\���� � � [Content_Types].xmlPK-
���\o�)' ' U _rels/.relsPK- ���\����� � � xl/worksheets/sheet1.xmlPK- ���\7S+� P xl/_rels/workbook.xml.relsPK- ���\Ѓc'2 E
G xl/styles.xmlPK- ���\;
� � � xl/sharedStrings.xmlPK � !