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
DealCostHeader| Name | 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": "MTvPfnh0skmEGf19XDcTow==",
"headerIdentifierGuid": "7ecf3b31-7478-49b2-8419-fd7d5c3713a3",
"supplierIdentifier": "BCLAMBr4UEaKhQKwq4jprA==",
"supplierGuid": "30c02204-f81a-4650-8a85-02b0ab88e9ac",
"description": "sample string 2",
"start": "2026-06-03T18:32:26.6430351",
"end": "2026-06-03T18:32:26.6430351",
"type": 5,
"promoType": 6,
"fromHost": 7,
"created": "2026-06-03T18:32:26.6430351",
"createdByUser": "sample string 9",
"updated": "2026-06-03T18:32:26.6430351",
"updatedByUser": "sample string 11",
"deleted": true,
"supplierName": "sample string 13",
"storeNames": "sample string 14",
"storeIDs": [
1,
2
],
"masterPLUG_UID": "n/tZqxJ1PECunDyHa7xsaw==",
"masterPluGuid": "ab59fb9f-7512-403c-ae9c-3c876bbc6c6b",
"dealCosts": [
{
"$id": "2",
"headerIdentifier": "JjCXqy4Zikexwn45u9bhnQ==",
"headerIdentifierGuid": "ab973026-192e-478a-b1c2-7e39bbd6e19d",
"identifier": "QAneDelsJkG1kRiC5bZJVw==",
"identifierGuid": "0dde0940-6ce9-4126-b591-1882e5b64957",
"supplierIdentifier": "JktTdFZCwUSmhUBL0LSKRQ==",
"supplierGuid": "74534b26-4256-44c1-a685-404bd0b48a45",
"pluG_UID": "V5hSy4WJR0m/wTJD0MGNHA==",
"pluGuid": "cb529857-8985-4947-bfc1-3243d0c18d1c",
"campaignName": "51724f56-385e-4621-8054-9fa046a7b915",
"description": "sample string 4",
"cost": 5,
"costDecimals": 6,
"start": "2026-06-03T18:32:26.6430351",
"end": "2026-06-03T18:32:26.6430351",
"type": 9,
"promoType": 10,
"bonusItemPLUG_UID": "+3dBC1cJKUKZ6wV8dx/0aQ==",
"bonusItemPluGuid": "0b4177fb-0957-4229-99eb-057c771ff469",
"bonusPurchaseUnits": 11,
"bonusReceiveUnits": 12,
"updated": "2026-06-03T18:32:26.6430351",
"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": "2026-06-03T18:32:26.6430351",
"campaignEndDate": "2026-06-03T18:32:26.6430351",
"masterPLUG_UID": "qCsI0xPLHES5oyEIAM7//w==",
"masterID": "d3082ba8-cb13-441c-b9a3-210800ceffff",
"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": "LVLGCodPVkCBfzSBQ5gfNw==",
"bonusMasterID": "0ac6522d-4f87-4056-817f-348143981f37",
"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>2026-06-03T18:32:26.6430351+00:00</Created>
<CreatedByUser>sample string 9</CreatedByUser>
<DealCosts>
<DealCost>
<Active>true</Active>
<BonusActive>true</BonusActive>
<BonusCartonQuantity>40</BonusCartonQuantity>
<BonusFuelItem>true</BonusFuelItem>
<BonusItemPLUG_UID>+3dBC1cJKUKZ6wV8dx/0aQ==</BonusItemPLUG_UID>
<BonusItemPluGuid>0b4177fb-0957-4229-99eb-057c771ff469</BonusItemPluGuid>
<BonusMasterID>0ac6522d-4f87-4056-817f-348143981f37</BonusMasterID>
<BonusMasterPLUG_UID>LVLGCodPVkCBfzSBQ5gfNw==</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>2026-06-03T18:32:26.6430351+00:00</CampaignEndDate>
<CampaignMetcashPromotionID>sample string 19</CampaignMetcashPromotionID>
<CampaignName>51724f56-385e-4621-8054-9fa046a7b915</CampaignName>
<CampaignStartDate>2026-06-03T18:32:26.6430351+00:00</CampaignStartDate>
<CartonQuantity>28</CartonQuantity>
<Cost>5</Cost>
<CostDecimals>6</CostDecimals>
<Description>sample string 4</Description>
<End>2026-06-03T18:32:26.6430351+00:00</End>
<FromHost>15</FromHost>
<FuelItem>true</FuelItem>
<HeaderIdentifier>JjCXqy4Zikexwn45u9bhnQ==</HeaderIdentifier>
<HeaderIdentifierGuid>ab973026-192e-478a-b1c2-7e39bbd6e19d</HeaderIdentifierGuid>
<Identifier>QAneDelsJkG1kRiC5bZJVw==</Identifier>
<IdentifierGuid>0dde0940-6ce9-4126-b591-1882e5b64957</IdentifierGuid>
<MasterID>d3082ba8-cb13-441c-b9a3-210800ceffff</MasterID>
<MasterPLUG_UID>qCsI0xPLHES5oyEIAM7//w==</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>V5hSy4WJR0m/wTJD0MGNHA==</PLUG_UID>
<PluGuid>cb529857-8985-4947-bfc1-3243d0c18d1c</PluGuid>
<ProductAPN>sample string 23</ProductAPN>
<ProductName>sample string 22</ProductName>
<PromoType>10</PromoType>
<SalesMode>29</SalesMode>
<Start>2026-06-03T18:32:26.6430351+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>74534b26-4256-44c1-a685-404bd0b48a45</SupplierGuid>
<SupplierIdentifier>JktTdFZCwUSmhUBL0LSKRQ==</SupplierIdentifier>
<SupplierName>sample string 17</SupplierName>
<Type>9</Type>
<Updated>2026-06-03T18:32:26.6430351+00:00</Updated>
</DealCost>
<DealCost>
<Active>true</Active>
<BonusActive>true</BonusActive>
<BonusCartonQuantity>40</BonusCartonQuantity>
<BonusFuelItem>true</BonusFuelItem>
<BonusItemPLUG_UID>+3dBC1cJKUKZ6wV8dx/0aQ==</BonusItemPLUG_UID>
<BonusItemPluGuid>0b4177fb-0957-4229-99eb-057c771ff469</BonusItemPluGuid>
<BonusMasterID>0ac6522d-4f87-4056-817f-348143981f37</BonusMasterID>
<BonusMasterPLUG_UID>LVLGCodPVkCBfzSBQ5gfNw==</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>2026-06-03T18:32:26.6430351+00:00</CampaignEndDate>
<CampaignMetcashPromotionID>sample string 19</CampaignMetcashPromotionID>
<CampaignName>51724f56-385e-4621-8054-9fa046a7b915</CampaignName>
<CampaignStartDate>2026-06-03T18:32:26.6430351+00:00</CampaignStartDate>
<CartonQuantity>28</CartonQuantity>
<Cost>5</Cost>
<CostDecimals>6</CostDecimals>
<Description>sample string 4</Description>
<End>2026-06-03T18:32:26.6430351+00:00</End>
<FromHost>15</FromHost>
<FuelItem>true</FuelItem>
<HeaderIdentifier>JjCXqy4Zikexwn45u9bhnQ==</HeaderIdentifier>
<HeaderIdentifierGuid>ab973026-192e-478a-b1c2-7e39bbd6e19d</HeaderIdentifierGuid>
<Identifier>QAneDelsJkG1kRiC5bZJVw==</Identifier>
<IdentifierGuid>0dde0940-6ce9-4126-b591-1882e5b64957</IdentifierGuid>
<MasterID>d3082ba8-cb13-441c-b9a3-210800ceffff</MasterID>
<MasterPLUG_UID>qCsI0xPLHES5oyEIAM7//w==</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>V5hSy4WJR0m/wTJD0MGNHA==</PLUG_UID>
<PluGuid>cb529857-8985-4947-bfc1-3243d0c18d1c</PluGuid>
<ProductAPN>sample string 23</ProductAPN>
<ProductName>sample string 22</ProductName>
<PromoType>10</PromoType>
<SalesMode>29</SalesMode>
<Start>2026-06-03T18:32:26.6430351+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>74534b26-4256-44c1-a685-404bd0b48a45</SupplierGuid>
<SupplierIdentifier>JktTdFZCwUSmhUBL0LSKRQ==</SupplierIdentifier>
<SupplierName>sample string 17</SupplierName>
<Type>9</Type>
<Updated>2026-06-03T18:32:26.6430351+00:00</Updated>
</DealCost>
</DealCosts>
<Deleted>true</Deleted>
<Description>sample string 2</Description>
<End>2026-06-03T18:32:26.6430351+00:00</End>
<FromHost>7</FromHost>
<HeaderIdentifier>MTvPfnh0skmEGf19XDcTow==</HeaderIdentifier>
<HeaderIdentifierGuid>7ecf3b31-7478-49b2-8419-fd7d5c3713a3</HeaderIdentifierGuid>
<MasterPLUG_UID>n/tZqxJ1PECunDyHa7xsaw==</MasterPLUG_UID>
<MasterPluGuid>ab59fb9f-7512-403c-ae9c-3c876bbc6c6b</MasterPluGuid>
<PromoType>6</PromoType>
<Start>2026-06-03T18:32:26.6430351+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>30c02204-f81a-4650-8a85-02b0ab88e9ac</SupplierGuid>
<SupplierIdentifier>BCLAMBr4UEaKhQKwq4jprA==</SupplierIdentifier>
<SupplierName>sample string 13</SupplierName>
<Type>5</Type>
<Updated>2026-06-03T18:32:26.6430351+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
"2a625d43-642a-4e45-b2d3-fe1ec886a8ac"
application/xml, text/xml
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2a625d43-642a-4e45-b2d3-fe1ec886a8ac</guid>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
PK
��\�C�#� 5 xl/workbook.xml � (� ����0D�&�C�`�DR8q����[i�-ik��H�yۙ�};b������G��g.�6�!���-i�;��v�:�a��ŭ�����oM&��x�rG=e�o��a����#l|Kt��4*�~ǘ��=�>��X��&�K���D�mQ1��r(1 ��ܛN�\��ᑞoT%�EJj� 6�|�]|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="R2966a9fac25b4f1a" /></Relationships>PK
��\`���$ � xl/worksheets/sheet1.xml � (� �Q�n� ���BҪ]V%�*U�v�v��,qj����? �4i� [~~��Tǻ�
�Sdj(���:e�f�?�pl����ID�ܸ��Az?8w�D-\F�P��j�CjN}�Z<S;k4�o�|�-��)'��`e���,�.Y��J��2�T�
��=���p*��J�w����8�'�5&/]
y��?�KR~���^̣��� }��.��4�t3��ހiqO�:/kؖY��ߔ�m�{*J`��<鏵���+K�</����l*��q\2�]������p����/Ò�^�<ڤ��q�PK
��\�,?� P xl/_rels/workbook.xml.rels � (� ��KN�0��b͞8'JP�nذ-��q~'Q;�]�gc���V� �X��j4�O�4����ٽ�{��5-eIJF�n4}K���j�m7{L2� ?��gq�����{ν0K��&v�u�1u=_�:�<Oӊ�5����p^���zTx��4Ä?��պ��@� ]���O��KȒH%�ص�E��\�Z�B����� ���;_�dE#jTR�(qS�A:tO��K�����.ʹȫR���E�_���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 � (� 5�An� E��fOp�cY&�J=Az�)Lb$38\5�/Yd��������K���(�Pb����/=���q)L<I@]���MY&�k]?��0SF9���%��e�
���u#�2ռ�u�ɘT(;צ�sz����&H�Uoq��؟��[�=�g�c�I��Ha18S�3��i��?PK-
��\�C�#� 5 xl/workbook.xmlPK-
��\���� � � [Content_Types].xmlPK-
��\ƕ%�' ' U _rels/.relsPK-
��\`���$ � � xl/worksheets/sheet1.xmlPK-
��\�,?� P 7 xl/_rels/workbook.xml.relsPK-
��\Ѓc'2 E
| xl/styles.xmlPK-
��\%��� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
PK
��\Ͷ 5 xl/workbook.xml � (� ����0��&�C���TLH��ū�+,������Ǘ�@������#G��s=����"�T���b��@<9�v�u.H�/�N7X��m�&vβ� ig��>ҕ�+���F��̰�hK��97{h�"'c�;���!���l�X�`��5$�dqnmI9%���p���"��ʅ��;{�I����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
��\d�T�' ' _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="R13490094c53d4e6b" /></Relationships>PK
��\`���$ � xl/worksheets/sheet1.xml � (� �Q�n� ���BҪ]V%�*U�v�v��,qj����? �4i� [~~��Tǻ�
�Sdj(���:e�f�?�pl����ID�ܸ��Az?8w�D-\F�P��j�CjN}�Z<S;k4�o�|�-��)'��`e���,�.Y��J��2�T�
��=���p*��J�w����8�'�5&/]
y��?�KR~���^̣��� }��.��4�t3��ހiqO�:/kؖY��ߔ�m�{*J`��<鏵���+K�</����l*��q\2�]������p����/Ò�^�<ڤ��q�PK
��\%�[� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8N����ݰa[z�'Q۲]�gc���V���X��j4��'�|�lvo�L^ЇɚXQA#�����)�v��g�D'HZ1��1F�@i�#."֡Im�"bJ�@��G1 �ʲ�>g�5���C�ZO�<-h�`�j�1���A�c?�@/��
�Iu��L ]s��3�YɁЛ��x�1�z}�L+�J�~��5�mU�Tf�s��ҹS^��*��Y�Z1���������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 � (� 5�An� E��fOp�cY&�J=Az�)Lb$38\5�/Yd��������K���(�Pb����/=���q)L<I@]���MY&�k]?��0SF9���%��e�
���u#�2ռ�u�ɘT(;צ�sz����&H�Uoq��؟��[�=�g�c�I��Ha18S�3��i��?PK-
��\Ͷ 5 xl/workbook.xmlPK-
��\���� � � [Content_Types].xmlPK-
��\d�T�' ' U _rels/.relsPK-
��\`���$ � � xl/worksheets/sheet1.xmlPK-
��\%�[� P 7 xl/_rels/workbook.xml.relsPK-
��\Ѓc'2 E
} xl/styles.xmlPK-
��\%��� � � xl/sharedStrings.xmlPK � �