PUT api/deal/{id}
Add or update a deal cost header
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Deal cost header identifier |
globally unique identifier |
Required |
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": "VvKR8C8UNkeIT1uvxHQ1BQ==", "headerIdentifierGuid": "f091f256-142f-4736-884f-5bafc4743505", "supplierIdentifier": "1x5xSR2gTkWB0OLV20hnmw==", "supplierGuid": "49711ed7-a01d-454e-81d0-e2d5db48679b", "description": "sample string 2", "start": "2025-10-05T00:04:01.3220054", "end": "2025-10-05T00:04:01.3220054", "type": 5, "promoType": 6, "fromHost": 7, "created": "2025-10-05T00:04:01.3220054", "createdByUser": "sample string 9", "updated": "2025-10-05T00:04:01.3220054", "updatedByUser": "sample string 11", "deleted": true, "supplierName": "sample string 13", "storeNames": "sample string 14", "storeIDs": [ 1, 2 ], "masterPLUG_UID": "pMIrAeKKJkqZyDhEUtcoHQ==", "masterPluGuid": "012bc2a4-8ae2-4a26-99c8-384452d7281d", "dealCosts": [ { "$id": "2", "headerIdentifier": "YdQdHsvuM021Gw3zRC7Gkw==", "headerIdentifierGuid": "1e1dd461-eecb-4d33-b51b-0df3442ec693", "identifier": "34sm/tb7VEyNUSKLU3qV5Q==", "identifierGuid": "fe268bdf-fbd6-4c54-8d51-228b537a95e5", "supplierIdentifier": "oP0nS12asEK9RAfW1FUtEg==", "supplierGuid": "4b27fda0-9a5d-42b0-bd44-07d6d4552d12", "pluG_UID": "y9RwIf35qEy6RVKjaKABVw==", "pluGuid": "2170d4cb-f9fd-4ca8-ba45-52a368a00157", "campaignName": "50d9c082-2b0e-435e-a114-a98b0fa94624", "description": "sample string 4", "cost": 5, "costDecimals": 6, "start": "2025-10-05T00:04:01.3220054", "end": "2025-10-05T00:04:01.3220054", "type": 9, "promoType": 10, "bonusItemPLUG_UID": "PJWjwZM3REilju6ULCJTwQ==", "bonusItemPluGuid": "c1a3953c-3793-4844-a58e-ee942c2253c1", "bonusPurchaseUnits": 11, "bonusReceiveUnits": 12, "updated": "2025-10-05T00:04:01.3220054", "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-10-05T00:04:01.3220054", "campaignEndDate": "2025-10-05T00:04:01.3220054", "masterPLUG_UID": "msI8iw6LW0el60WZZZ7vPg==", "masterID": "8b3cc29a-8b0e-475b-a5eb-4599659eef3e", "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": "2W/JoglVyUWzm77kPssVPA==", "bonusMasterID": "a2c96fd9-5509-45c9-b39b-bee43ecb153c", "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-10-05T00:04:01.3220054+00:00</Created> <CreatedByUser>sample string 9</CreatedByUser> <DealCosts> <DealCost> <Active>true</Active> <BonusActive>true</BonusActive> <BonusCartonQuantity>40</BonusCartonQuantity> <BonusFuelItem>true</BonusFuelItem> <BonusItemPLUG_UID>PJWjwZM3REilju6ULCJTwQ==</BonusItemPLUG_UID> <BonusItemPluGuid>c1a3953c-3793-4844-a58e-ee942c2253c1</BonusItemPluGuid> <BonusMasterID>a2c96fd9-5509-45c9-b39b-bee43ecb153c</BonusMasterID> <BonusMasterPLUG_UID>2W/JoglVyUWzm77kPssVPA==</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-10-05T00:04:01.3220054+00:00</CampaignEndDate> <CampaignMetcashPromotionID>sample string 19</CampaignMetcashPromotionID> <CampaignName>50d9c082-2b0e-435e-a114-a98b0fa94624</CampaignName> <CampaignStartDate>2025-10-05T00:04:01.3220054+00:00</CampaignStartDate> <CartonQuantity>28</CartonQuantity> <Cost>5</Cost> <CostDecimals>6</CostDecimals> <Description>sample string 4</Description> <End>2025-10-05T00:04:01.3220054+00:00</End> <FromHost>15</FromHost> <FuelItem>true</FuelItem> <HeaderIdentifier>YdQdHsvuM021Gw3zRC7Gkw==</HeaderIdentifier> <HeaderIdentifierGuid>1e1dd461-eecb-4d33-b51b-0df3442ec693</HeaderIdentifierGuid> <Identifier>34sm/tb7VEyNUSKLU3qV5Q==</Identifier> <IdentifierGuid>fe268bdf-fbd6-4c54-8d51-228b537a95e5</IdentifierGuid> <MasterID>8b3cc29a-8b0e-475b-a5eb-4599659eef3e</MasterID> <MasterPLUG_UID>msI8iw6LW0el60WZZZ7vPg==</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>y9RwIf35qEy6RVKjaKABVw==</PLUG_UID> <PluGuid>2170d4cb-f9fd-4ca8-ba45-52a368a00157</PluGuid> <ProductAPN>sample string 23</ProductAPN> <ProductName>sample string 22</ProductName> <PromoType>10</PromoType> <SalesMode>29</SalesMode> <Start>2025-10-05T00:04:01.3220054+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>4b27fda0-9a5d-42b0-bd44-07d6d4552d12</SupplierGuid> <SupplierIdentifier>oP0nS12asEK9RAfW1FUtEg==</SupplierIdentifier> <SupplierName>sample string 17</SupplierName> <Type>9</Type> <Updated>2025-10-05T00:04:01.3220054+00:00</Updated> </DealCost> <DealCost> <Active>true</Active> <BonusActive>true</BonusActive> <BonusCartonQuantity>40</BonusCartonQuantity> <BonusFuelItem>true</BonusFuelItem> <BonusItemPLUG_UID>PJWjwZM3REilju6ULCJTwQ==</BonusItemPLUG_UID> <BonusItemPluGuid>c1a3953c-3793-4844-a58e-ee942c2253c1</BonusItemPluGuid> <BonusMasterID>a2c96fd9-5509-45c9-b39b-bee43ecb153c</BonusMasterID> <BonusMasterPLUG_UID>2W/JoglVyUWzm77kPssVPA==</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-10-05T00:04:01.3220054+00:00</CampaignEndDate> <CampaignMetcashPromotionID>sample string 19</CampaignMetcashPromotionID> <CampaignName>50d9c082-2b0e-435e-a114-a98b0fa94624</CampaignName> <CampaignStartDate>2025-10-05T00:04:01.3220054+00:00</CampaignStartDate> <CartonQuantity>28</CartonQuantity> <Cost>5</Cost> <CostDecimals>6</CostDecimals> <Description>sample string 4</Description> <End>2025-10-05T00:04:01.3220054+00:00</End> <FromHost>15</FromHost> <FuelItem>true</FuelItem> <HeaderIdentifier>YdQdHsvuM021Gw3zRC7Gkw==</HeaderIdentifier> <HeaderIdentifierGuid>1e1dd461-eecb-4d33-b51b-0df3442ec693</HeaderIdentifierGuid> <Identifier>34sm/tb7VEyNUSKLU3qV5Q==</Identifier> <IdentifierGuid>fe268bdf-fbd6-4c54-8d51-228b537a95e5</IdentifierGuid> <MasterID>8b3cc29a-8b0e-475b-a5eb-4599659eef3e</MasterID> <MasterPLUG_UID>msI8iw6LW0el60WZZZ7vPg==</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>y9RwIf35qEy6RVKjaKABVw==</PLUG_UID> <PluGuid>2170d4cb-f9fd-4ca8-ba45-52a368a00157</PluGuid> <ProductAPN>sample string 23</ProductAPN> <ProductName>sample string 22</ProductName> <PromoType>10</PromoType> <SalesMode>29</SalesMode> <Start>2025-10-05T00:04:01.3220054+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>4b27fda0-9a5d-42b0-bd44-07d6d4552d12</SupplierGuid> <SupplierIdentifier>oP0nS12asEK9RAfW1FUtEg==</SupplierIdentifier> <SupplierName>sample string 17</SupplierName> <Type>9</Type> <Updated>2025-10-05T00:04:01.3220054+00:00</Updated> </DealCost> </DealCosts> <Deleted>true</Deleted> <Description>sample string 2</Description> <End>2025-10-05T00:04:01.3220054+00:00</End> <FromHost>7</FromHost> <HeaderIdentifier>VvKR8C8UNkeIT1uvxHQ1BQ==</HeaderIdentifier> <HeaderIdentifierGuid>f091f256-142f-4736-884f-5bafc4743505</HeaderIdentifierGuid> <MasterPLUG_UID>pMIrAeKKJkqZyDhEUtcoHQ==</MasterPLUG_UID> <MasterPluGuid>012bc2a4-8ae2-4a26-99c8-384452d7281d</MasterPluGuid> <PromoType>6</PromoType> <Start>2025-10-05T00:04:01.3220054+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>49711ed7-a01d-454e-81d0-e2d5db48679b</SupplierGuid> <SupplierIdentifier>1x5xSR2gTkWB0OLV20hnmw==</SupplierIdentifier> <SupplierName>sample string 13</SupplierName> <Type>5</Type> <Updated>2025-10-05T00:04:01.3220054+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
"c1934b87-4067-4803-86fe-ab7825da9b54"
application/xml, text/xml
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">c1934b87-4067-4803-86fe-ab7825da9b54</guid>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
PK � E[@�~� 5 xl/workbook.xml � (� ����0D�&�C���b)��x��})�m�-ik��-H�yۙ�};|��o���G���2��`���Ɏh⮳NC�ҽ��:%�����&ɍ9 (k�T��+��B�%b�ÊҠ��B���p��Vw6 [C�7��~�(b@cIk@���ے�)q���C�Y*rqI�k��;���w�PK � E[���� � [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 � E[�9�b' ' _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="Rb0d8aaa38e2b4c33" /></Relationships>PK � E[��:�% � xl/worksheets/sheet1.xml � (� �Q�n� ��}%i�4��T��j�M;lg�85�Ȑ��? �4i� [~~��T��� �i�5�7g`[�j>���䧦Z��Nx�������(�k�68� ��HR��n��l�z�ͲB��)������.7�.Y0�Je����:أ{F���)�L4UB�kXܯ��1>�1y�j�%���$�Wb�r�.Ϡ�Æ����ѥ��ƙ���.���r�/����,?����h>���R�4I�,�l* Q*��y\r�]���d����p���گ�.�()��\�PK � E[ɣs� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8?�5�M��p&�$jbG�[��Xp$��U$p%l����I3�����<�3Y7�@���H��F�7p�ꡆ�f��I�0�qq,�h�����ĹÁf���e�,}Hm��G��Ӵ�6f�-�.��h��� �f��05��"� mO�����א%� l�5�ǚH�Xc�we+0~75�/�_��<��[��VYQSU�B�Uf���oåc�����,�J� E�!]���_l� PK � E[Ѓ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 � E[Nm��� � xl/sharedStrings.xml � (� 5����0C%�{I�RJ�a%�`���h�fR:��=�KO�e��+M���Z�n(�>�-�~���hS&l�����R%na��Zs?b ��3Rq�yIA .��a�QҤw�4:�H�����YP+��?_.�;�����;{�j��f_��U�vw©;�N�w�?��+�PK- � E[@�~� 5 xl/workbook.xmlPK- � E[���� � � [Content_Types].xmlPK- � E[�9�b' ' U _rels/.relsPK- � E[��:�% � � xl/worksheets/sheet1.xmlPK- � E[ɣs� P 8 xl/_rels/workbook.xml.relsPK- � E[Ѓc'2 E ~ xl/styles.xmlPK- � E[Nm��� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
PK � E[n3�B� 5 xl/workbook.xml � (� ����0��&�C��� *N\�z��" �'m >��7o;���N1i;<��G��嶤��&g�5=Jp'mP�]���}1�u��Z7o�ʳ��Y��\/��+��3�u=��㊒ ��B���C�����l���o�X`�Ţ��%��%�skKQbs�{z�dO��%����V��w�PK � E[���� � [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 � E[��+c' ' _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="R77d6769492b742e2" /></Relationships>PK � E[��:�% � xl/worksheets/sheet1.xml � (� �Q�n� ��}%i�4��T��j�M;lg�85�Ȑ��? �4i� [~~��T��� �i�5�7g`[�j>���䧦Z��Nx�������(�k�68� ��HR��n��l�z�ͲB��)������.7�.Y0�Je����:أ{F���)�L4UB�kXܯ��1>�1y�j�%���$�Wb�r�.Ϡ�Æ����ѥ��ƙ���.���r�/����,?����h>���R�4I�,�l* Q*��y\r�]���d����p���گ�.�()��\�PK � E[td{� P xl/_rels/workbook.xml.rels � (� ��Mn� F��f_��W�d�M�i.@al��`I��u�#� E��:R�d��xz����c�}�FrFg��V9=�^�)v l7�=�2��s � L��#�A�d�܌6u:�'S�{:Ku�=҂���%n��p��?D�u��'�N����:19H�c�z=�,Q�촀}�H����E�pVs �nj!^F�^��B�ղ�r�ۺZq^����Q?G�6�tZ���4�U�1�9��Fo���PK � E[Ѓ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 � E[Nm��� � xl/sharedStrings.xml � (� 5����0C%�{I�RJ�a%�`���h�fR:��=�KO�e��+M���Z�n(�>�-�~���hS&l�����R%na��Zs?b ��3Rq�yIA .��a�QҤw�4:�H�����YP+��?_.�;�����;{�j��f_��U�vw©;�N�w�?��+�PK- � E[n3�B� 5 xl/workbook.xmlPK- � E[���� � [Content_Types].xmlPK- � E[��+c' ' V _rels/.relsPK- � E[��:�% � � xl/worksheets/sheet1.xmlPK- � E[td{� P 9 xl/_rels/workbook.xml.relsPK- � E[Ѓc'2 E � xl/styles.xmlPK- � E[Nm��� � � xl/sharedStrings.xmlPK � �