POST api/deals
Add or update a deal cost header
Request Information
URI Parameters
None.
Body Parameters
Deal cost header to save
DealCostHeaderName | Description | Type | Additional information |
---|---|---|---|
HeaderIdentifier | Collection of byte |
None. |
|
HeaderIdentifierGuid | globally unique identifier |
None. |
|
SupplierIdentifier | Collection of byte |
None. |
|
SupplierGuid | globally unique identifier |
None. |
|
Description | string |
None. |
|
Start | date |
Data type: Date |
|
End | date |
Data type: Date |
|
Type | DealCostType |
None. |
|
PromoType | PromoType |
None. |
|
FromHost |
FromHost identifying the source, see |
integer |
None. |
Created | date |
None. |
|
CreatedByUser | string |
None. |
|
Updated |
Local updated time |
date |
None. |
UpdatedByUser | string |
None. |
|
Deleted | boolean |
None. |
|
SupplierName |
Supplier name |
string |
Relation. This field may not always be loaded or used for updates. |
StoreNames |
Concatenated list of the stores that the deal cost header is in |
string |
Relation. This field may not always be loaded or used for updates. |
StoreIDs |
StoreIDs for the deal cost to be updated to |
Collection of integer |
Relation. This field may not always be loaded or used for updates. |
MasterPLUG_UID | Collection of byte |
Relation. This field may not always be loaded or used for updates. |
|
MasterPluGuid |
Product for the deal cost header |
globally unique identifier |
Relation. This field may not always be loaded or used for updates. |
DealCosts |
Deal costs to update |
Collection of DealCost |
Relation. This field may not always be loaded or used for updates. |
Request Formats
application/json, text/json
{ "headerIdentifier": "5TOngmC3uEqAXY6pqU3u6Q==", "headerIdentifierGuid": "82a733e5-b760-4ab8-805d-8ea9a94deee9", "supplierIdentifier": "oTV+yLi7AkqgDrAX9XxhaA==", "supplierGuid": "c87e35a1-bbb8-4a02-a00e-b017f57c6168", "description": "sample string 2", "start": "2025-06-14T07:16:49.2862086", "end": "2025-06-14T07:16:49.2862086", "type": 5, "promoType": 6, "fromHost": 7, "created": "2025-06-14T07:16:49.2862086", "createdByUser": "sample string 9", "updated": "2025-06-14T07:16:49.2862086", "updatedByUser": "sample string 11", "deleted": true, "supplierName": "sample string 13", "storeNames": "sample string 14", "storeIDs": [ 1, 2 ], "masterPLUG_UID": "qWppC7YY7UC0+A7/0o5vGg==", "masterPluGuid": "0b696aa9-18b6-40ed-b4f8-0effd28e6f1a", "dealCosts": [ { "$id": "2", "headerIdentifier": "fvCeaz/Mq0SGJalbwtG7pw==", "headerIdentifierGuid": "6b9ef07e-cc3f-44ab-8625-a95bc2d1bba7", "identifier": "v0vM+PDvWkWw6Ad0+/4y/Q==", "identifierGuid": "f8cc4bbf-eff0-455a-b0e8-0774fbfe32fd", "supplierIdentifier": "9pB4txKTh0+Q+LQfWXxWbw==", "supplierGuid": "b77890f6-9312-4f87-90f8-b41f597c566f", "pluG_UID": "CLI4pbO42U+6ujpuvqAqig==", "pluGuid": "a538b208-b8b3-4fd9-baba-3a6ebea02a8a", "campaignName": "8d112932-8bb7-45f0-ad97-b334fe45ce23", "description": "sample string 4", "cost": 5, "costDecimals": 6, "start": "2025-06-14T07:16:49.2862086", "end": "2025-06-14T07:16:49.2862086", "type": 9, "promoType": 10, "bonusItemPLUG_UID": "9AS3WzOJpk+/CGckNi300Q==", "bonusItemPluGuid": "5bb704f4-8933-4fa6-bf08-6724362df4d1", "bonusPurchaseUnits": 11, "bonusReceiveUnits": 12, "updated": "2025-06-14T07:16:49.2862086", "metcashPromotionID": "sample string 14", "fromHost": 15, "storeNames": "sample string 16", "storeIDs": [ 1, 2 ], "supplierName": "sample string 17", "campaignDescription": "sample string 18", "newPrice": 1, "campaignMetcashPromotionID": "sample string 19", "campaignActive": true, "campaignStartDate": "2025-06-14T07:16:49.2862086", "campaignEndDate": "2025-06-14T07:16:49.2862086", "masterPLUG_UID": "ZMOIgSENfUuFyrJob67Tag==", "masterID": "8188c364-0d21-4b7d-85ca-b2686faed36a", "productName": "sample string 22", "productAPN": "sample string 23", "orderCode": "sample string 24", "normalSell": 25, "normalCost": 26, "normalCostDecimals": 27, "cartonQuantity": 28, "salesMode": 29, "orderPacked": 30, "fuelItem": true, "active": true, "bonusMasterPLUG_UID": "6hZJY9F+q0iunsLqk73SkA==", "bonusMasterID": "634916ea-7ed1-48ab-ae9e-c2ea93bdd290", "bonusProductName": "sample string 34", "bonusProductAPN": "sample string 35", "bonusOrderCode": "sample string 36", "bonusNormalSell": 37, "bonusNormalCost": 38, "bonusNormalCostDecimals": 39, "bonusCartonQuantity": 40, "bonusSalesMode": 41, "bonusOrderPacked": 42, "bonusFuelItem": true, "bonusActive": true }, { "$ref": "2" } ] }
application/xml, text/xml
<DealCostHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://gapsolutions.com.au/schema/ezimanager"> <Created>2025-06-14T07:16:49.2862086+00:00</Created> <CreatedByUser>sample string 9</CreatedByUser> <DealCosts> <DealCost> <Active>true</Active> <BonusActive>true</BonusActive> <BonusCartonQuantity>40</BonusCartonQuantity> <BonusFuelItem>true</BonusFuelItem> <BonusItemPLUG_UID>9AS3WzOJpk+/CGckNi300Q==</BonusItemPLUG_UID> <BonusItemPluGuid>5bb704f4-8933-4fa6-bf08-6724362df4d1</BonusItemPluGuid> <BonusMasterID>634916ea-7ed1-48ab-ae9e-c2ea93bdd290</BonusMasterID> <BonusMasterPLUG_UID>6hZJY9F+q0iunsLqk73SkA==</BonusMasterPLUG_UID> <BonusNormalCost>38</BonusNormalCost> <BonusNormalCostDecimals>39</BonusNormalCostDecimals> <BonusNormalSell>37</BonusNormalSell> <BonusOrderCode>sample string 36</BonusOrderCode> <BonusOrderPacked>42</BonusOrderPacked> <BonusProductAPN>sample string 35</BonusProductAPN> <BonusProductName>sample string 34</BonusProductName> <BonusPurchaseUnits>11</BonusPurchaseUnits> <BonusReceiveUnits>12</BonusReceiveUnits> <BonusSalesMode>41</BonusSalesMode> <CampaignActive>true</CampaignActive> <CampaignDescription>sample string 18</CampaignDescription> <CampaignEndDate>2025-06-14T07:16:49.2862086+00:00</CampaignEndDate> <CampaignMetcashPromotionID>sample string 19</CampaignMetcashPromotionID> <CampaignName>8d112932-8bb7-45f0-ad97-b334fe45ce23</CampaignName> <CampaignStartDate>2025-06-14T07:16:49.2862086+00:00</CampaignStartDate> <CartonQuantity>28</CartonQuantity> <Cost>5</Cost> <CostDecimals>6</CostDecimals> <Description>sample string 4</Description> <End>2025-06-14T07:16:49.2862086+00:00</End> <FromHost>15</FromHost> <FuelItem>true</FuelItem> <HeaderIdentifier>fvCeaz/Mq0SGJalbwtG7pw==</HeaderIdentifier> <HeaderIdentifierGuid>6b9ef07e-cc3f-44ab-8625-a95bc2d1bba7</HeaderIdentifierGuid> <Identifier>v0vM+PDvWkWw6Ad0+/4y/Q==</Identifier> <IdentifierGuid>f8cc4bbf-eff0-455a-b0e8-0774fbfe32fd</IdentifierGuid> <MasterID>8188c364-0d21-4b7d-85ca-b2686faed36a</MasterID> <MasterPLUG_UID>ZMOIgSENfUuFyrJob67Tag==</MasterPLUG_UID> <MetcashPromotionID>sample string 14</MetcashPromotionID> <NewPrice>1</NewPrice> <NormalCost>26</NormalCost> <NormalCostDecimals>27</NormalCostDecimals> <NormalSell>25</NormalSell> <OrderCode>sample string 24</OrderCode> <OrderPacked>30</OrderPacked> <PLUG_UID>CLI4pbO42U+6ujpuvqAqig==</PLUG_UID> <PluGuid>a538b208-b8b3-4fd9-baba-3a6ebea02a8a</PluGuid> <ProductAPN>sample string 23</ProductAPN> <ProductName>sample string 22</ProductName> <PromoType>10</PromoType> <SalesMode>29</SalesMode> <Start>2025-06-14T07:16:49.2862086+00:00</Start> <StoreIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </StoreIDs> <StoreNames>sample string 16</StoreNames> <SupplierGuid>b77890f6-9312-4f87-90f8-b41f597c566f</SupplierGuid> <SupplierIdentifier>9pB4txKTh0+Q+LQfWXxWbw==</SupplierIdentifier> <SupplierName>sample string 17</SupplierName> <Type>9</Type> <Updated>2025-06-14T07:16:49.2862086+00:00</Updated> </DealCost> <DealCost> <Active>true</Active> <BonusActive>true</BonusActive> <BonusCartonQuantity>40</BonusCartonQuantity> <BonusFuelItem>true</BonusFuelItem> <BonusItemPLUG_UID>9AS3WzOJpk+/CGckNi300Q==</BonusItemPLUG_UID> <BonusItemPluGuid>5bb704f4-8933-4fa6-bf08-6724362df4d1</BonusItemPluGuid> <BonusMasterID>634916ea-7ed1-48ab-ae9e-c2ea93bdd290</BonusMasterID> <BonusMasterPLUG_UID>6hZJY9F+q0iunsLqk73SkA==</BonusMasterPLUG_UID> <BonusNormalCost>38</BonusNormalCost> <BonusNormalCostDecimals>39</BonusNormalCostDecimals> <BonusNormalSell>37</BonusNormalSell> <BonusOrderCode>sample string 36</BonusOrderCode> <BonusOrderPacked>42</BonusOrderPacked> <BonusProductAPN>sample string 35</BonusProductAPN> <BonusProductName>sample string 34</BonusProductName> <BonusPurchaseUnits>11</BonusPurchaseUnits> <BonusReceiveUnits>12</BonusReceiveUnits> <BonusSalesMode>41</BonusSalesMode> <CampaignActive>true</CampaignActive> <CampaignDescription>sample string 18</CampaignDescription> <CampaignEndDate>2025-06-14T07:16:49.2862086+00:00</CampaignEndDate> <CampaignMetcashPromotionID>sample string 19</CampaignMetcashPromotionID> <CampaignName>8d112932-8bb7-45f0-ad97-b334fe45ce23</CampaignName> <CampaignStartDate>2025-06-14T07:16:49.2862086+00:00</CampaignStartDate> <CartonQuantity>28</CartonQuantity> <Cost>5</Cost> <CostDecimals>6</CostDecimals> <Description>sample string 4</Description> <End>2025-06-14T07:16:49.2862086+00:00</End> <FromHost>15</FromHost> <FuelItem>true</FuelItem> <HeaderIdentifier>fvCeaz/Mq0SGJalbwtG7pw==</HeaderIdentifier> <HeaderIdentifierGuid>6b9ef07e-cc3f-44ab-8625-a95bc2d1bba7</HeaderIdentifierGuid> <Identifier>v0vM+PDvWkWw6Ad0+/4y/Q==</Identifier> <IdentifierGuid>f8cc4bbf-eff0-455a-b0e8-0774fbfe32fd</IdentifierGuid> <MasterID>8188c364-0d21-4b7d-85ca-b2686faed36a</MasterID> <MasterPLUG_UID>ZMOIgSENfUuFyrJob67Tag==</MasterPLUG_UID> <MetcashPromotionID>sample string 14</MetcashPromotionID> <NewPrice>1</NewPrice> <NormalCost>26</NormalCost> <NormalCostDecimals>27</NormalCostDecimals> <NormalSell>25</NormalSell> <OrderCode>sample string 24</OrderCode> <OrderPacked>30</OrderPacked> <PLUG_UID>CLI4pbO42U+6ujpuvqAqig==</PLUG_UID> <PluGuid>a538b208-b8b3-4fd9-baba-3a6ebea02a8a</PluGuid> <ProductAPN>sample string 23</ProductAPN> <ProductName>sample string 22</ProductName> <PromoType>10</PromoType> <SalesMode>29</SalesMode> <Start>2025-06-14T07:16:49.2862086+00:00</Start> <StoreIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </StoreIDs> <StoreNames>sample string 16</StoreNames> <SupplierGuid>b77890f6-9312-4f87-90f8-b41f597c566f</SupplierGuid> <SupplierIdentifier>9pB4txKTh0+Q+LQfWXxWbw==</SupplierIdentifier> <SupplierName>sample string 17</SupplierName> <Type>9</Type> <Updated>2025-06-14T07:16:49.2862086+00:00</Updated> </DealCost> </DealCosts> <Deleted>true</Deleted> <Description>sample string 2</Description> <End>2025-06-14T07:16:49.2862086+00:00</End> <FromHost>7</FromHost> <HeaderIdentifier>5TOngmC3uEqAXY6pqU3u6Q==</HeaderIdentifier> <HeaderIdentifierGuid>82a733e5-b760-4ab8-805d-8ea9a94deee9</HeaderIdentifierGuid> <MasterPLUG_UID>qWppC7YY7UC0+A7/0o5vGg==</MasterPLUG_UID> <MasterPluGuid>0b696aa9-18b6-40ed-b4f8-0effd28e6f1a</MasterPluGuid> <PromoType>6</PromoType> <Start>2025-06-14T07:16:49.2862086+00:00</Start> <StoreIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </StoreIDs> <StoreNames>sample string 14</StoreNames> <SupplierGuid>c87e35a1-bbb8-4a02-a00e-b017f57c6168</SupplierGuid> <SupplierIdentifier>oTV+yLi7AkqgDrAX9XxhaA==</SupplierIdentifier> <SupplierName>sample string 13</SupplierName> <Type>5</Type> <Updated>2025-06-14T07:16:49.2862086+00:00</Updated> <UpdatedByUser>sample string 11</UpdatedByUser> </DealCostHeader>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Deal cost header identifier
globally unique identifierResponse Formats
application/json, text/json
"c73ded12-612f-43ef-82f1-b9be08aa25e8"
application/xml, text/xml
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">c73ded12-612f-43ef-82f1-b9be08aa25e8</guid>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
PK :�Z�f�b� 5 xl/workbook.xml � (� ����0��&�C����DR8q���{-[�H����[J ��mgv�ۡ�����/�ѓ �ﰌѵ�.A�p�L� �5�I�'�B(��o &��(�abQY�r��X�y`c� QO+J3ep< D�fws�2[��Dd ��Ͱ�"+d��,2��s;\b�[�����������B{�Q���PK :�Z���� � [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 :�Z��' ' _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="R8f2bfc10adef42a3" /></Relationships>PK :�ZND�& � xl/worksheets/sheet1.xml � (� �QMo� �+��J��5��T��j�M;lg�85���?@�i�.; ���)Owӳ i�_�2��6�j{��軇���rFw#�Y�[:��+�(0�V8� ���>��*��tglFM�= ��A���/l����l��/TFj��Ձ=�g��?�9u���f��8�'�-&/mų������X�{���3��aCy�i��t3���83��Y�^U|�_��;��|W�5#y4Kyq)��y�^֥Ù�T�1��Pr�)�;�Y)��N��_�U����~~��PK :�Z�;� P xl/_rels/workbook.xml.rels � (� ��An� E��f_r�*$�l�Ms ��b��I��E��+�R�H]t��?��4����js�1��K��^��N�1ۇGجW;T.7��D��$���'J�v8�T� }��G�K;:)}PҚ���9n�d��?�`m�q�qD�� �S���3���f ?Q�׃W� ��H���֚��baz7��/�_��z&��X6�m�6�@n�*�TD�c���i��^Y]�K�hL�1�Fo���PK :�ZЃ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 :�Z^#�� � xl/sharedStrings.xml � (� 5�An�0E�b��81-�E�� `� ��CfR���]�|���}w�ͳ���S��] i(1ѣ���[w�X�0���A]�cU��=L"��&́weA��X����0��"O��gc��`rHj(IՂ�(=7�zs$���}��Z}h�?�8�Ύ�����t!�O�����W�PK- :�Z�f�b� 5 xl/workbook.xmlPK- :�Z���� � � [Content_Types].xmlPK- :�Z��' ' U _rels/.relsPK- :�ZND�& � � xl/worksheets/sheet1.xmlPK- :�Z�;� P 9 xl/_rels/workbook.xml.relsPK- :�ZЃc'2 E xl/styles.xmlPK- :�Z^#�� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
PK :�Z�7C,� 5 xl/workbook.xml � (� ����0��&�C��E�R8q���{��4П�5���H�yۙ��v�l��3�����\��lE�(�OƂ���8�C��EL�K�o:�3�%q0� ������X�:�O? 5�(ť���[�=$�>�hlu�5D~S,������ j���1J��Y�#W�8܅��+�YIE����;���w�PK :�Z���� � [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 :�Z3�' ' _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="R37de9014b4224721" /></Relationships>PK :�ZND�& � xl/worksheets/sheet1.xml � (� �QMo� �+��J��5��T��j�M;lg�85���?@�i�.; ���)Owӳ i�_�2��6�j{��軇���rFw#�Y�[:��+�(0�V8� ���>��*��tglFM�= ��A���/l����l��/TFj��Ձ=�g��?�9u���f��8�'�-&/mų������X�{���3��aCy�i��t3���83��Y�^U|�_��;��|W�5#y4Kyq)��y�^֥Ù�T�1��Pr�)�;�Y)��N��_�U����~~��PK :�Z�X'4� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�N���ݰa[z��Q;�]�gc���V� �X��j4��'�|�lvo�H^0���x���S^�o��]��f��Ly"�a�$��Mi~�4*��������a�)����TG�#-4,p�$���!zc��^�&t�0}��-br�����O)�K�E�y�-��VU'.��V�Bo��y�����/d��D� ê��Me���Sȗ^:-�K5õZ���k��65z��/PK :�ZЃ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 :�Z^#�� � xl/sharedStrings.xml � (� 5�An�0E�b��81-�E�� `� ��CfR���]�|���}w�ͳ���S��] i(1ѣ���[w�X�0���A]�cU��=L"��&́weA��X����0��"O��gc��`rHj(IՂ�(=7�zs$���}��Z}h�?�8�Ύ�����t!�O�����W�PK- :�Z�7C,� 5 xl/workbook.xmlPK- :�Z���� � [Content_Types].xmlPK- :�Z3�' ' V _rels/.relsPK- :�ZND�& � � xl/worksheets/sheet1.xmlPK- :�Z�X'4� P : xl/_rels/workbook.xml.relsPK- :�ZЃc'2 E xl/styles.xmlPK- :�Z^#�� � � xl/sharedStrings.xmlPK � �