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": "WtqsXb1iI06qUGYngnGMJQ==",
"headerIdentifierGuid": "5dacda5a-62bd-4e23-aa50-662782718c25",
"supplierIdentifier": "Eb4QaOTQ8UOYGkQkfkIMvQ==",
"supplierGuid": "6810be11-d0e4-43f1-981a-44247e420cbd",
"description": "sample string 2",
"start": "2026-04-03T06:15:19.3847954",
"end": "2026-04-03T06:15:19.3847954",
"type": 5,
"promoType": 6,
"fromHost": 7,
"created": "2026-04-03T06:15:19.3847954",
"createdByUser": "sample string 9",
"updated": "2026-04-03T06:15:19.3847954",
"updatedByUser": "sample string 11",
"deleted": true,
"supplierName": "sample string 13",
"storeNames": "sample string 14",
"storeIDs": [
1,
2
],
"masterPLUG_UID": "qUgtaTM4D0qy/v2B+QhfKg==",
"masterPluGuid": "692d48a9-3833-4a0f-b2fe-fd81f9085f2a",
"dealCosts": [
{
"$id": "2",
"headerIdentifier": "kF2PC0Ml8karD+MfK8t5SA==",
"headerIdentifierGuid": "0b8f5d90-2543-46f2-ab0f-e31f2bcb7948",
"identifier": "K6Vv6a+bd0q2HFzUWL1KVw==",
"identifierGuid": "e96fa52b-9baf-4a77-b61c-5cd458bd4a57",
"supplierIdentifier": "8URVCLWCD0SqgB3RkTit7w==",
"supplierGuid": "085544f1-82b5-440f-aa80-1dd19138adef",
"pluG_UID": "L7Th9oNOXkCUQ8Pj40rbkw==",
"pluGuid": "f6e1b42f-4e83-405e-9443-c3e3e34adb93",
"campaignName": "3fcb833c-dee7-47ce-a0ca-00ad6ceaa8b3",
"description": "sample string 4",
"cost": 5,
"costDecimals": 6,
"start": "2026-04-03T06:15:19.3847954",
"end": "2026-04-03T06:15:19.3847954",
"type": 9,
"promoType": 10,
"bonusItemPLUG_UID": "pOABo6nLyEKEhO+/+rn6BQ==",
"bonusItemPluGuid": "a301e0a4-cba9-42c8-8484-efbffab9fa05",
"bonusPurchaseUnits": 11,
"bonusReceiveUnits": 12,
"updated": "2026-04-03T06:15:19.3847954",
"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-04-03T06:15:19.3847954",
"campaignEndDate": "2026-04-03T06:15:19.3847954",
"masterPLUG_UID": "mhph2tiAtk6/NzSMYJEWZg==",
"masterID": "da611a9a-80d8-4eb6-bf37-348c60911666",
"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": "Uixy9B5N1kq86WtZZpRSQQ==",
"bonusMasterID": "f4722c52-4d1e-4ad6-bce9-6b5966945241",
"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-04-03T06:15:19.3847954+00:00</Created>
<CreatedByUser>sample string 9</CreatedByUser>
<DealCosts>
<DealCost>
<Active>true</Active>
<BonusActive>true</BonusActive>
<BonusCartonQuantity>40</BonusCartonQuantity>
<BonusFuelItem>true</BonusFuelItem>
<BonusItemPLUG_UID>pOABo6nLyEKEhO+/+rn6BQ==</BonusItemPLUG_UID>
<BonusItemPluGuid>a301e0a4-cba9-42c8-8484-efbffab9fa05</BonusItemPluGuid>
<BonusMasterID>f4722c52-4d1e-4ad6-bce9-6b5966945241</BonusMasterID>
<BonusMasterPLUG_UID>Uixy9B5N1kq86WtZZpRSQQ==</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-04-03T06:15:19.3847954+00:00</CampaignEndDate>
<CampaignMetcashPromotionID>sample string 19</CampaignMetcashPromotionID>
<CampaignName>3fcb833c-dee7-47ce-a0ca-00ad6ceaa8b3</CampaignName>
<CampaignStartDate>2026-04-03T06:15:19.3847954+00:00</CampaignStartDate>
<CartonQuantity>28</CartonQuantity>
<Cost>5</Cost>
<CostDecimals>6</CostDecimals>
<Description>sample string 4</Description>
<End>2026-04-03T06:15:19.3847954+00:00</End>
<FromHost>15</FromHost>
<FuelItem>true</FuelItem>
<HeaderIdentifier>kF2PC0Ml8karD+MfK8t5SA==</HeaderIdentifier>
<HeaderIdentifierGuid>0b8f5d90-2543-46f2-ab0f-e31f2bcb7948</HeaderIdentifierGuid>
<Identifier>K6Vv6a+bd0q2HFzUWL1KVw==</Identifier>
<IdentifierGuid>e96fa52b-9baf-4a77-b61c-5cd458bd4a57</IdentifierGuid>
<MasterID>da611a9a-80d8-4eb6-bf37-348c60911666</MasterID>
<MasterPLUG_UID>mhph2tiAtk6/NzSMYJEWZg==</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>L7Th9oNOXkCUQ8Pj40rbkw==</PLUG_UID>
<PluGuid>f6e1b42f-4e83-405e-9443-c3e3e34adb93</PluGuid>
<ProductAPN>sample string 23</ProductAPN>
<ProductName>sample string 22</ProductName>
<PromoType>10</PromoType>
<SalesMode>29</SalesMode>
<Start>2026-04-03T06:15:19.3847954+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>085544f1-82b5-440f-aa80-1dd19138adef</SupplierGuid>
<SupplierIdentifier>8URVCLWCD0SqgB3RkTit7w==</SupplierIdentifier>
<SupplierName>sample string 17</SupplierName>
<Type>9</Type>
<Updated>2026-04-03T06:15:19.3847954+00:00</Updated>
</DealCost>
<DealCost>
<Active>true</Active>
<BonusActive>true</BonusActive>
<BonusCartonQuantity>40</BonusCartonQuantity>
<BonusFuelItem>true</BonusFuelItem>
<BonusItemPLUG_UID>pOABo6nLyEKEhO+/+rn6BQ==</BonusItemPLUG_UID>
<BonusItemPluGuid>a301e0a4-cba9-42c8-8484-efbffab9fa05</BonusItemPluGuid>
<BonusMasterID>f4722c52-4d1e-4ad6-bce9-6b5966945241</BonusMasterID>
<BonusMasterPLUG_UID>Uixy9B5N1kq86WtZZpRSQQ==</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-04-03T06:15:19.3847954+00:00</CampaignEndDate>
<CampaignMetcashPromotionID>sample string 19</CampaignMetcashPromotionID>
<CampaignName>3fcb833c-dee7-47ce-a0ca-00ad6ceaa8b3</CampaignName>
<CampaignStartDate>2026-04-03T06:15:19.3847954+00:00</CampaignStartDate>
<CartonQuantity>28</CartonQuantity>
<Cost>5</Cost>
<CostDecimals>6</CostDecimals>
<Description>sample string 4</Description>
<End>2026-04-03T06:15:19.3847954+00:00</End>
<FromHost>15</FromHost>
<FuelItem>true</FuelItem>
<HeaderIdentifier>kF2PC0Ml8karD+MfK8t5SA==</HeaderIdentifier>
<HeaderIdentifierGuid>0b8f5d90-2543-46f2-ab0f-e31f2bcb7948</HeaderIdentifierGuid>
<Identifier>K6Vv6a+bd0q2HFzUWL1KVw==</Identifier>
<IdentifierGuid>e96fa52b-9baf-4a77-b61c-5cd458bd4a57</IdentifierGuid>
<MasterID>da611a9a-80d8-4eb6-bf37-348c60911666</MasterID>
<MasterPLUG_UID>mhph2tiAtk6/NzSMYJEWZg==</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>L7Th9oNOXkCUQ8Pj40rbkw==</PLUG_UID>
<PluGuid>f6e1b42f-4e83-405e-9443-c3e3e34adb93</PluGuid>
<ProductAPN>sample string 23</ProductAPN>
<ProductName>sample string 22</ProductName>
<PromoType>10</PromoType>
<SalesMode>29</SalesMode>
<Start>2026-04-03T06:15:19.3847954+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>085544f1-82b5-440f-aa80-1dd19138adef</SupplierGuid>
<SupplierIdentifier>8URVCLWCD0SqgB3RkTit7w==</SupplierIdentifier>
<SupplierName>sample string 17</SupplierName>
<Type>9</Type>
<Updated>2026-04-03T06:15:19.3847954+00:00</Updated>
</DealCost>
</DealCosts>
<Deleted>true</Deleted>
<Description>sample string 2</Description>
<End>2026-04-03T06:15:19.3847954+00:00</End>
<FromHost>7</FromHost>
<HeaderIdentifier>WtqsXb1iI06qUGYngnGMJQ==</HeaderIdentifier>
<HeaderIdentifierGuid>5dacda5a-62bd-4e23-aa50-662782718c25</HeaderIdentifierGuid>
<MasterPLUG_UID>qUgtaTM4D0qy/v2B+QhfKg==</MasterPLUG_UID>
<MasterPluGuid>692d48a9-3833-4a0f-b2fe-fd81f9085f2a</MasterPluGuid>
<PromoType>6</PromoType>
<Start>2026-04-03T06:15:19.3847954+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>6810be11-d0e4-43f1-981a-44247e420cbd</SupplierGuid>
<SupplierIdentifier>Eb4QaOTQ8UOYGkQkfkIMvQ==</SupplierIdentifier>
<SupplierName>sample string 13</SupplierName>
<Type>5</Type>
<Updated>2026-04-03T06:15:19.3847954+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
"ba9bf9fe-7923-409f-a851-53a9cd082899"
application/xml, text/xml
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">ba9bf9fe-7923-409f-a851-53a9cd082899</guid>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
PK �1�\�/U�� 5 xl/workbook.xml � (� ����0��&�C���1UI��ū�i�?ik��-%�x�3;�����i�>z4��%�ct!��A�p�L�u�k��/b�N5P���D�(���(��&�����a�A���z\PZ*���!17{(�B��X��&"K���D�mY!#5���Qb��[[�#F�Pi�Sί��;�p�{� ����PK �1�\���� � [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
�1�\��k�' ' _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="Rb928812cd58c4e28" /></Relationships>PK �1�\��;�$ � xl/worksheets/sheet1.xml � (� �Q�n� ��}�6][UI�IU�ݦ�3K��p�I��m����-?��l��������W�3p
����B�p৺��_Iᎎ��:��(5����b�CoU���v�i��d���r'<*D)�f$�����F���PYe���D��y�*���L�eF���W����ה���+��/Y�ճ:5
�
�g0�qC������ͬI{�̪{~g�]�b���R�f�]�8k&
h?��bR,,YK�3��S�ơl4jS�V�R�Ro<�m��qI�/�|V����PK �1�\�|��� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�1�M��ݰa[z�'Q۲]�gc���V� �X��j4��'�|�lvo�D^0���ʂA�]7ھ�S2w춛=N*�8�>��bcCJ~Mi��*Σ��¬RNCO��G�#�I��f�����ΘQ�ӧm�L_]8�19��cj��%�E�y��3)늷�!��z3����_��|!S�R�%��7�+}S�A�Sȗ^:-�5�Fɱ��Q��E�^���PK �1�\Ѓ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 �1�\:qU�� � xl/sharedStrings.xml � (� 5�Kn�0D�"h�Hq~V +�=As Ʀc�t��"ˇ���p�ɳz�ʩP��;�R_�D�N߿>M�� s!��/�V��E�)q�'��j-�f�]Y�j2�5�T\���a� Q�l��6C"����T�V��
?�\)��яh.�9�����7��~pm�z��`�����PK- �1�\�/U�� 5 xl/workbook.xmlPK- �1�\���� � � [Content_Types].xmlPK-
�1�\��k�' ' U _rels/.relsPK- �1�\��;�$ � � xl/worksheets/sheet1.xmlPK- �1�\�|��� P 7 xl/_rels/workbook.xml.relsPK- �1�\Ѓc'2 E
} xl/styles.xmlPK- �1�\:qU�� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
PK �1�\w�[� 5 xl/workbook.xml � (� ����0D�&�C���� '.^=x_`+
�%m
~��o�vfg�N1k34Z�#GesS�)g̶=J�'=��;���y1h���[�r,���� �l/&KW�?,;����N�+J�P�:)�fO��
�[��$l
��T`�EPD�Ē����ܻ�Ɣ�\�������A|I����V��w�PK �1�\���� � [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
�1�\�' ' _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="Rfcbcaea8fdeb49ca" /></Relationships>PK �1�\��;�$ � xl/worksheets/sheet1.xml � (� �Q�n� ��}�6][UI�IU�ݦ�3K��p�I��m����-?��l��������W�3p
����B�p৺��_Iᎎ��:��(5����b�CoU���v�i��d���r'<*D)�f$�����F���PYe���D��y�*���L�eF���W����ה���+��/Y�ճ:5
�
�g0�qC������ͬI{�̪{~g�]�b���R�f�]�8k&
h?��bR,,YK�3��S�ơl4jS�V�R�Ro<�m��qI�/�|V����PK �1�\�p��� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞���ڨi7lؖ^���I�Ďl��Xp$��U$p%l����I3�����<��at���`@�*�G�wp���v���$c�ø�Vl�`�qy�4�g
��M��,cJ}O���GZ1�R�3�I���Ctƌ
�:�h�`���1��^�c?�@/�,ȓ�`�2���T!˦e+ �fj!�'�^�y&��n�@Q6B4�27��G�}�t3���jy`��{�躽�ѫ��|PK �1�\Ѓ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 �1�\:qU�� � xl/sharedStrings.xml � (� 5�Kn�0D�"h�Hq~V +�=As Ʀc�t��"ˇ���p�ɳz�ʩP��;�R_�D�N߿>M�� s!��/�V��E�)q�'��j-�f�]Y�j2�5�T\���a� Q�l��6C"����T�V��
?�\)��яh.�9�����7��~pm�z��`�����PK- �1�\w�[� 5 xl/workbook.xmlPK- �1�\���� � [Content_Types].xmlPK-
�1�\�' ' V _rels/.relsPK- �1�\��;�$ � � xl/worksheets/sheet1.xmlPK- �1�\�p��� P 8 xl/_rels/workbook.xml.relsPK- �1�\Ѓc'2 E
xl/styles.xmlPK- �1�\:qU�� � � xl/sharedStrings.xmlPK � �