POST api/storeSizes

Create or update a store save

Request Information

URI Parameters

None.

Body Parameters

Store save model to be saved

StoreSize
NameDescriptionTypeAdditional information
ID

integer

None.

Description

string

String length: inclusive between 0 and 60

MaxDaysStock

Maximum allowable days of stock

integer

None.

StockOrderDaysMinimum

Whether the Days Stock Order setting is a minimum or addition (0 = minimum)

StockOrderDays

None.

Deals

Collection of StoreSizeDeal

Relation. This field may not always be loaded or used for updates.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "description": "sample string 1",
  "maxDaysStock": 2,
  "stockOrderDaysMinimum": 3,
  "deals": [
    {
      "$id": "2",
      "id": 1,
      "storeSizeID": 1,
      "minDealPercentage": 2.1,
      "maxDealPercentage": 1.1,
      "daysStockOrder": 3
    },
    {
      "$ref": "2"
    }
  ]
}

application/xml, text/xml

Sample:
<StoreSize xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Stores">
  <Deals>
    <StoreSizeDeal>
      <DaysStockOrder>3</DaysStockOrder>
      <ID>1</ID>
      <MaxDealPercentage>1.1</MaxDealPercentage>
      <MinDealPercentage>2.1</MinDealPercentage>
      <StoreSizeID>1</StoreSizeID>
    </StoreSizeDeal>
    <StoreSizeDeal>
      <DaysStockOrder>3</DaysStockOrder>
      <ID>1</ID>
      <MaxDealPercentage>1.1</MaxDealPercentage>
      <MinDealPercentage>2.1</MinDealPercentage>
      <StoreSizeID>1</StoreSizeID>
    </StoreSizeDeal>
  </Deals>
  <Description>sample string 1</Description>
  <ID>1</ID>
  <MaxDaysStock>2</MaxDaysStock>
  <StockOrderDaysMinimum>3</StockOrderDaysMinimum>
</StoreSize>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Store size identifier

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Sample:
PK���\�\��5xl/workbook.xml �(����� ��&����iLC{�ū�X!���>���M�yۙ��v������}�hcZ�R�
!qP`x<86���,Ó8)���l"Ǫ�I��'�lT�G���aE��������n�C�����Xd6ֺ���"�)V`�EQ�r-�y��*ZL1
��� .TH
�xco0F���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
���\�N�''_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="Rab0268a8230644ca" /></Relationships>PK���\��4�xl/worksheets/sheet1.xml �(��Q�n� ��}%��j�U���n�ۙ%N@
82����6M�e������<��Ȯ@��ox��8�bg���9�w����t	 ��aO
71N{!Bk���	|z둜�)�A`��N��|۪�	�Q�T*;���G+L�+ܸJ9m=W��I=�g}Ï5gBɂ|���_1�m|"^r��5�*X�|.�_�u��y�o�<�LLz(��Pv�l�gN�ʹ�.��?m��j�M�v��z��+��:騕$\�礚��G����Z�kf���ߎW�Is:#F����W�PK���\�ZJ
�Pxl/_rels/workbook.xml.rels �(���Mn�0F�b;qL��M7l)0��$"�#��r�.z�^�V�� u�
���==i���c�yzv���5�,'���lS�)���6����i"��XZ���6���Z2dn�M�� cJ}�G��������)�n�l��3�Sxv�4��?����ch�Hl/}�X�O)�� �D%��5�����6ea41~7�/=¯�5��T�D^&?���}eZ�_�O��:M��b�hL!�3�PV�����PK���\Ѓc'2E
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 �(�5�A� �B�nA�h&�@@ڵ����������d2;}Ҧ�X9frp(�9/�V���p��i�[&t�E5��YTO��r՚���R7�\���u�\*����M��9��#��s#qЧ��������~PK-���\�\��5xl/workbook.xmlPK-���\����	��[Content_Types].xmlPK-
���\�N�''T_rels/.relsPK-���\��4��xl/worksheets/sheet1.xmlPK-���\�ZJ
�P,xl/_rels/workbook.xml.relsPK-���\Ѓc'2E
pxl/styles.xmlPK-���\�/����xl/sharedStrings.xmlPK��

application/vnd.ms-excel

Sample:
PK���\�a|��5xl/workbook.xml �(�����0��J}�(�T*����k��L� ?JR��o�[7�����E۩�z"9+W؊�ޛ�1׍(�]�Av��|����0�ݽ%*��$�1�3x���qt���r�"�nD�r�P����DH�6{
\\����&a[����;.�"
$V��D��W�Sb�G��Ӥ�zί9��`����/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
���\qY �''_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="R3be886fa62814547" /></Relationships>PK���\��4�xl/worksheets/sheet1.xml �(��Q�n� ��}%��j�U���n�ۙ%N@
82����6M�e������<��Ȯ@��ox��8�bg���9�w����t	 ��aO
71N{!Bk���	|z둜�)�A`��N��|۪�	�Q�T*;���G+L�+ܸJ9m=W��I=�g}Ï5gBɂ|���_1�m|"^r��5�*X�|.�_�u��y�o�<�LLz(��Pv�l�gN�ʹ�.��?m��j�M�v��z��+��:騕$\�礚��G����Z�kf���ߎW�Is:#F����W�PK���\��~E�Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞�N�֭�vÆm�gGM��v���G�
XE�Tb�������4����ݿ�y�{�j��N��w]
�d$�w�*�h�)���b
6�iCi�G?���èRNCG'�O�CZ2��a΀[&9^&���k|��<�K���h��
�~J�^/2�S[ÁI���5��s!�B��e������d�a���X�R�+qW���)�Kϝ�噚h��[1Τ�usU�7��PK���\Ѓc'2E
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 �(�5�A� �B�nA�h&�@@ڵ����������d2;}Ҧ�X9frp(�9/�V���p��i�[&t�E5��YTO��r՚���R7�\���u�\*����M��9��#��s#qЧ��������~PK-���\�a|��5xl/workbook.xmlPK-���\����	��[Content_Types].xmlPK-
���\qY �''U_rels/.relsPK-���\��4��xl/worksheets/sheet1.xmlPK-���\��~E�P-xl/_rels/workbook.xml.relsPK-���\Ѓc'2E
txl/styles.xmlPK-���\�/����xl/sharedStrings.xmlPK��