POST api/deals
Add or update a deal cost header
Request Information
URI Parameters
None.
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": "aREYYOmTFka3Z1g0hdwpUA==",
"headerIdentifierGuid": "60181169-93e9-4616-b767-583485dc2950",
"supplierIdentifier": "8TQgF3xvRUS8a+PTGsCkLw==",
"supplierGuid": "172034f1-6f7c-4445-bc6b-e3d31ac0a42f",
"description": "sample string 2",
"start": "2026-06-03T18:31:33.2592949",
"end": "2026-06-03T18:31:33.2592949",
"type": 5,
"promoType": 6,
"fromHost": 7,
"created": "2026-06-03T18:31:33.2592949",
"createdByUser": "sample string 9",
"updated": "2026-06-03T18:31:33.2592949",
"updatedByUser": "sample string 11",
"deleted": true,
"supplierName": "sample string 13",
"storeNames": "sample string 14",
"storeIDs": [
1,
2
],
"masterPLUG_UID": "kzNHgiY1p0WmgTwiaieczQ==",
"masterPluGuid": "82473393-3526-45a7-a681-3c226a279ccd",
"dealCosts": [
{
"$id": "2",
"headerIdentifier": "+wmABHHVuEC/c3Qx3S3WHw==",
"headerIdentifierGuid": "048009fb-d571-40b8-bf73-7431dd2dd61f",
"identifier": "GtPUf8Hk4U+H0CTCuxl0Pg==",
"identifierGuid": "7fd4d31a-e4c1-4fe1-87d0-24c2bb19743e",
"supplierIdentifier": "PQBRszySUEa7mbMosgYxvg==",
"supplierGuid": "b351003d-923c-4650-bb99-b328b20631be",
"pluG_UID": "evyFDpZj5UiU5qX4cAfw8A==",
"pluGuid": "0e85fc7a-6396-48e5-94e6-a5f87007f0f0",
"campaignName": "0945d983-af64-4713-8dee-8b8e627afae7",
"description": "sample string 4",
"cost": 5,
"costDecimals": 6,
"start": "2026-06-03T18:31:33.2592949",
"end": "2026-06-03T18:31:33.2592949",
"type": 9,
"promoType": 10,
"bonusItemPLUG_UID": "O+IXdfeqR02uySvyQRV/Qg==",
"bonusItemPluGuid": "7517e23b-aaf7-4d47-aec9-2bf241157f42",
"bonusPurchaseUnits": 11,
"bonusReceiveUnits": 12,
"updated": "2026-06-03T18:31:33.2592949",
"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:31:33.2592949",
"campaignEndDate": "2026-06-03T18:31:33.2592949",
"masterPLUG_UID": "7arhJmKEv0K56oeAVp1+5w==",
"masterID": "26e1aaed-8462-42bf-b9ea-8780569d7ee7",
"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": "ZF48iYcsEEyh6aNf64jFFg==",
"bonusMasterID": "893c5e64-2c87-4c10-a1e9-a35feb88c516",
"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:31:33.2592949+00:00</Created>
<CreatedByUser>sample string 9</CreatedByUser>
<DealCosts>
<DealCost>
<Active>true</Active>
<BonusActive>true</BonusActive>
<BonusCartonQuantity>40</BonusCartonQuantity>
<BonusFuelItem>true</BonusFuelItem>
<BonusItemPLUG_UID>O+IXdfeqR02uySvyQRV/Qg==</BonusItemPLUG_UID>
<BonusItemPluGuid>7517e23b-aaf7-4d47-aec9-2bf241157f42</BonusItemPluGuid>
<BonusMasterID>893c5e64-2c87-4c10-a1e9-a35feb88c516</BonusMasterID>
<BonusMasterPLUG_UID>ZF48iYcsEEyh6aNf64jFFg==</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:31:33.2592949+00:00</CampaignEndDate>
<CampaignMetcashPromotionID>sample string 19</CampaignMetcashPromotionID>
<CampaignName>0945d983-af64-4713-8dee-8b8e627afae7</CampaignName>
<CampaignStartDate>2026-06-03T18:31:33.2592949+00:00</CampaignStartDate>
<CartonQuantity>28</CartonQuantity>
<Cost>5</Cost>
<CostDecimals>6</CostDecimals>
<Description>sample string 4</Description>
<End>2026-06-03T18:31:33.2592949+00:00</End>
<FromHost>15</FromHost>
<FuelItem>true</FuelItem>
<HeaderIdentifier>+wmABHHVuEC/c3Qx3S3WHw==</HeaderIdentifier>
<HeaderIdentifierGuid>048009fb-d571-40b8-bf73-7431dd2dd61f</HeaderIdentifierGuid>
<Identifier>GtPUf8Hk4U+H0CTCuxl0Pg==</Identifier>
<IdentifierGuid>7fd4d31a-e4c1-4fe1-87d0-24c2bb19743e</IdentifierGuid>
<MasterID>26e1aaed-8462-42bf-b9ea-8780569d7ee7</MasterID>
<MasterPLUG_UID>7arhJmKEv0K56oeAVp1+5w==</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>evyFDpZj5UiU5qX4cAfw8A==</PLUG_UID>
<PluGuid>0e85fc7a-6396-48e5-94e6-a5f87007f0f0</PluGuid>
<ProductAPN>sample string 23</ProductAPN>
<ProductName>sample string 22</ProductName>
<PromoType>10</PromoType>
<SalesMode>29</SalesMode>
<Start>2026-06-03T18:31:33.2592949+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>b351003d-923c-4650-bb99-b328b20631be</SupplierGuid>
<SupplierIdentifier>PQBRszySUEa7mbMosgYxvg==</SupplierIdentifier>
<SupplierName>sample string 17</SupplierName>
<Type>9</Type>
<Updated>2026-06-03T18:31:33.2592949+00:00</Updated>
</DealCost>
<DealCost>
<Active>true</Active>
<BonusActive>true</BonusActive>
<BonusCartonQuantity>40</BonusCartonQuantity>
<BonusFuelItem>true</BonusFuelItem>
<BonusItemPLUG_UID>O+IXdfeqR02uySvyQRV/Qg==</BonusItemPLUG_UID>
<BonusItemPluGuid>7517e23b-aaf7-4d47-aec9-2bf241157f42</BonusItemPluGuid>
<BonusMasterID>893c5e64-2c87-4c10-a1e9-a35feb88c516</BonusMasterID>
<BonusMasterPLUG_UID>ZF48iYcsEEyh6aNf64jFFg==</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:31:33.2592949+00:00</CampaignEndDate>
<CampaignMetcashPromotionID>sample string 19</CampaignMetcashPromotionID>
<CampaignName>0945d983-af64-4713-8dee-8b8e627afae7</CampaignName>
<CampaignStartDate>2026-06-03T18:31:33.2592949+00:00</CampaignStartDate>
<CartonQuantity>28</CartonQuantity>
<Cost>5</Cost>
<CostDecimals>6</CostDecimals>
<Description>sample string 4</Description>
<End>2026-06-03T18:31:33.2592949+00:00</End>
<FromHost>15</FromHost>
<FuelItem>true</FuelItem>
<HeaderIdentifier>+wmABHHVuEC/c3Qx3S3WHw==</HeaderIdentifier>
<HeaderIdentifierGuid>048009fb-d571-40b8-bf73-7431dd2dd61f</HeaderIdentifierGuid>
<Identifier>GtPUf8Hk4U+H0CTCuxl0Pg==</Identifier>
<IdentifierGuid>7fd4d31a-e4c1-4fe1-87d0-24c2bb19743e</IdentifierGuid>
<MasterID>26e1aaed-8462-42bf-b9ea-8780569d7ee7</MasterID>
<MasterPLUG_UID>7arhJmKEv0K56oeAVp1+5w==</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>evyFDpZj5UiU5qX4cAfw8A==</PLUG_UID>
<PluGuid>0e85fc7a-6396-48e5-94e6-a5f87007f0f0</PluGuid>
<ProductAPN>sample string 23</ProductAPN>
<ProductName>sample string 22</ProductName>
<PromoType>10</PromoType>
<SalesMode>29</SalesMode>
<Start>2026-06-03T18:31:33.2592949+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>b351003d-923c-4650-bb99-b328b20631be</SupplierGuid>
<SupplierIdentifier>PQBRszySUEa7mbMosgYxvg==</SupplierIdentifier>
<SupplierName>sample string 17</SupplierName>
<Type>9</Type>
<Updated>2026-06-03T18:31:33.2592949+00:00</Updated>
</DealCost>
</DealCosts>
<Deleted>true</Deleted>
<Description>sample string 2</Description>
<End>2026-06-03T18:31:33.2592949+00:00</End>
<FromHost>7</FromHost>
<HeaderIdentifier>aREYYOmTFka3Z1g0hdwpUA==</HeaderIdentifier>
<HeaderIdentifierGuid>60181169-93e9-4616-b767-583485dc2950</HeaderIdentifierGuid>
<MasterPLUG_UID>kzNHgiY1p0WmgTwiaieczQ==</MasterPLUG_UID>
<MasterPluGuid>82473393-3526-45a7-a681-3c226a279ccd</MasterPluGuid>
<PromoType>6</PromoType>
<Start>2026-06-03T18:31:33.2592949+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>172034f1-6f7c-4445-bc6b-e3d31ac0a42f</SupplierGuid>
<SupplierIdentifier>8TQgF3xvRUS8a+PTGsCkLw==</SupplierIdentifier>
<SupplierName>sample string 13</SupplierName>
<Type>5</Type>
<Updated>2026-06-03T18:31:33.2592949+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
"bc7790fb-5906-4e68-9239-7557879eb86d"
application/xml, text/xml
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">bc7790fb-5906-4e68-9239-7557879eb86d</guid>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
PK ��\|u�ڷ 5 xl/workbook.xml � (� ����0D�H���
�@A��&m��������@J�ngv��ɸ�1f 5j_���!���=*�/Ƣ�w�8��,����ڴo�:@|�f�p�A�{i=�h���u�;�#5n(ť���D[�=%N~����]L[~Sl��"�+,i��du�]I#J\!��߲8k�4�D��$���1�W_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
��\kT�' ' _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="R0756ae1b505a4ae5" /></Relationships>PK ��\����% � xl/worksheets/sheet1.xml � (� �Q�N�0��(w��m�Mm'�i�� �кM�&����瓤!q�Ė��{v���lrmŋ,�l���}�'�����.��S ��uG���~<
�F�G���!�CJ����
���X/���A�)������.7�6Y0�Je���.[أ{F�U���L�eB�kXܯ��1>�1yi+�'���$�Wb-tr�.Ϡ{�Æv�������ƙ���.����}�����v�o�Á�fr��Z^]��&i���uI�0J���8�KN����u^�9������~�tA�@I����/PK ��\A]ؐ� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8�4��i7lؖ^���I�Ďl��Xp$��U$H%l����I3�����4�q�V�@�io�5pJ��v��G��D�9���b}J��Q�8�X�]�X&�r::+}TR^�
K\3��<����A�ק ]�L_}8�19��aj��%�"S�<�����U�e�l-�@���b:����̚ nL]+!���2�
h�Sȗ^:-�5Vr�2m����ً����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�Mn� ���fO ?6&�d�'h��I�dǃ�����,?���=w�I��ƍc��
i�S�g_���%��L��/2��w�E�)qs)�U)gL�yE��#o)���S�a�xF,iQ'�[�B$cީT-���k���� zW�0c�c��խ�`�I{:[i��t��е�S�;��W���PK- ��\|u�ڷ 5 xl/workbook.xmlPK- ��\���� � [Content_Types].xmlPK-
��\kT�' ' V _rels/.relsPK- ��\����% � � xl/worksheets/sheet1.xmlPK- ��\A]ؐ� P 9 xl/_rels/workbook.xml.relsPK- ��\Ѓc'2 E
xl/styles.xmlPK- ��\�)��� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
PK ��\w���� 5 xl/workbook.xml � (� ����0��&�C����()��x��}��6П�5��$���~;|0�{ӑ���]AE6g�������5NA�ҽ�i[Yce�B�!I��aA텴�δX�:��Ġ��@jZn7���C��'���h6��o�O��bRD�V��ɹ5�S�r�;�Y��G�6is�d-]�+���w�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="R0dfc7200c6cc494a" /></Relationships>PK ��\����% � xl/worksheets/sheet1.xml � (� �Q�N�0��(w��m�Mm'�i�� �кM�&����瓤!q�Ė��{v���lrmŋ,�l���}�'�����.��S ��uG���~<
�F�G���!�CJ����
���X/���A�)������.7�6Y0�Je���.[أ{F�U���L�eB�kXܯ��1>�1yi+�'���$�Wb-tr�.Ϡ{�Æv�������ƙ���.����}�����v�o�Á�fr��Z^]��&i���uI�0J���8�KN����u^�9������~�tA�@I����/PK ��\Sb�� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�i�&��vÆm�{GM��v���G�
XTWb�������4����ݿM#yAg9��V:5؞�9����G�D0�HZ����q�P��I���hSG;?��R��Yȓ�.[Q�3�I���CtZ�<Oh�`���)��(|���O)��P�
�Iq8�lX]/q�jU��B��e���u�3�D�u���U������s��ҹS^��J��V-j�ꤶ��ћ��}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�Mn� ���fO ?6&�d�'h��I�dǃ�����,?���=w�I��ƍc��
i�S�g_���%��L��/2��w�E�)qs)�U)gL�yE��#o)���S�a�xF,iQ'�[�B$cީT-���k���� zW�0c�c��խ�`�I{:[i��t��е�S�;��W���PK- ��\w���� 5 xl/workbook.xmlPK- ��\���� � [Content_Types].xmlPK-
��\���' ' V _rels/.relsPK- ��\����% � � xl/worksheets/sheet1.xmlPK- ��\Sb�� P 9 xl/_rels/workbook.xml.relsPK- ��\Ѓc'2 E
xl/styles.xmlPK- ��\�)��� � � xl/sharedStrings.xmlPK � �