GET api/product/{id}/history/sales/total?storeID={storeID}
Get sales history total for a product
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. |
| SummaryPeriod |
Period to summarise |
SalesHistorySummaryPeriod |
None. |
| StartDate |
Start of period to get history for |
date |
Required |
| EndDate |
End of period to get history for |
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
Total sales history record
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
{
"storeID": 1,
"storeName": "sample string 1",
"periodBeginning": "2026-04-03T06:23:13.5678359",
"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
}
application/xml, text/xml
<SalesHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Sales"> <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-04-03T06:23:13.5678359+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>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
PK �2�\��6�� 5 xl/workbook.xml � (� ����0��&�C���DR8q���{-�4П�5���H�yۙ��v�l��4fD5i_�!؊/Pܟ�w�q��(���Z#�
t �q0� ������X�:� ��V��R��x@�-�f�d4�����"�)�`�ERHs5ny�%�������d�y.��(�����;���w�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�\QA��' ' _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="R082696c230974437" /></Relationships>PK �2�\D�eߴ �
xl/worksheets/sheet1.xml � (� ��[s�0��
����\t�N[k���癣Q�
q k��JSˋ��[;ag͖��w���D��2�� ��\.�t5����o_�;�}����4�ȆvT����H�ܑ�*m)�$,�m�r�r��Xη�H#乙X��Z*��Mn���V��D�(�����0N��`����[�X�+��a�rG����.o\[�'�'����~1�Qɺ-xR.��Y���b&wS��B5����\�姕����V~�xQDC;p�"+z����=����Õ}@�E@��9��O*?9����3N�!��Y�V~�s߬�>��y��"���8�畟�\ׯ|~O_P���>@u P�d��1�9�p��1Q�Hq(!دZu�@��� e>� 8S�N�f���0V��@�T��}u oĠ�x}�u��o�����:E�1�D����{�#���E8drge���ﯮ�e^�*5}r5�Fh�~�q�&@'n�։q� :q�&�NL�Ӊ�6��ĴMp��o�N<��@';:f4��1��܁m}�@���v Fc�:������Yr꭫�wL>�W��T]�vA�(n�v��w�F��8�qG5��n�̤m�ƑޝG���c�q�=��>4Uf��M�3է��M�������TS}�z�L�M����5��L���:��m�H�l"e!�r�_+G�PK �2�\�+G� P xl/_rels/workbook.xml.rels � (� ��Mn� F��f_���($�n�Ms��Ɗ
Hۜ���W(J�֖��&+��0OO�����<��a�F@�1 h��F3������~w�I�t#���FL�ct[J��8ːY�&uz�gS�uR�倴`��~ɀ5����C�}?*|��2������#���F?�@oG�%*��N��s��Y�u�i*� �nj!^'�^�y!���iX��xu_-=v�ѧ�^:-��=���̱�������_� 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 � (� }�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- �2�\��6�� 5 xl/workbook.xmlPK- �2�\���� � [Content_Types].xmlPK-
�2�\QA��' ' V _rels/.relsPK- �2�\D�eߴ �
� xl/worksheets/sheet1.xmlPK- �2�\�+G� P � xl/_rels/workbook.xml.relsPK- �2�\Ѓc'2 E
xl/styles.xmlPK- �2�\;
� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
PK �2�\����� 5 xl/workbook.xml � (� ����0D�&�C���� '.^=x_`+
�%m
~��o�vfg�N1k34Z�#GesS�)g̶=J�'=��;���y1h���[�r�E)38�Z�^L���Xv2���W��hu<R,͞g�7���I�b��"������%��%��w%�)1���#N�v�x�4$����a�~W_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�\]EA�' ' _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="R8b59ce9c8b6b443c" /></Relationships>PK �2�\D�eߴ �
xl/worksheets/sheet1.xml � (� ��[s�0��
����\t�N[k���癣Q�
q k��JSˋ��[;ag͖��w���D��2�� ��\.�t5����o_�;�}����4�ȆvT����H�ܑ�*m)�$,�m�r�r��Xη�H#乙X��Z*��Mn���V��D�(�����0N��`����[�X�+��a�rG����.o\[�'�'����~1�Qɺ-xR.��Y���b&wS��B5����\�姕����V~�xQDC;p�"+z����=����Õ}@�E@��9��O*?9����3N�!��Y�V~�s߬�>��y��"���8�畟�\ׯ|~O_P���>@u P�d��1�9�p��1Q�Hq(!دZu�@��� e>� 8S�N�f���0V��@�T��}u oĠ�x}�u��o�����:E�1�D����{�#���E8drge���ﯮ�e^�*5}r5�Fh�~�q�&@'n�։q� :q�&�NL�Ӊ�6��ĴMp��o�N<��@';:f4��1��܁m}�@���v Fc�:������Yr꭫�wL>�W��T]�vA�(n�v��w�F��8�qG5��n�̤m�ƑޝG���c�q�=��>4Uf��M�3է��M�������TS}�z�L�M����5��L���:��m�H�l"e!�r�_+G�PK �2�\��Z�� P xl/_rels/workbook.xml.rels � (� ��Kn�0@�b;q�8�M7l)p�q�ؖmJ9[=R�P�J�����h~OO��|����扼���
�,�Z�n�}砞���n8�'�0ZO��
!�5�^8��:v�q�1u=�B�D����u)��x���Qj��l�yF� Ӌq'? G�z
��<��E*�}���-pU���.}��� ���w�ȴ�R��aQp΅(*3��Kp�ҩSZN�V�����eX�e75z��/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 � (� }�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- �2�\����� 5 xl/workbook.xmlPK- �2�\���� � � [Content_Types].xmlPK-
�2�\]EA�' ' U _rels/.relsPK- �2�\D�eߴ �
� xl/worksheets/sheet1.xmlPK- �2�\��Z�� P � xl/_rels/workbook.xml.relsPK- �2�\Ѓc'2 E
xl/styles.xmlPK- �2�\;
� � � xl/sharedStrings.xmlPK � �