POST api/deal/{id}/costs
Save list of deal costs to a header
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Deal cost header identifier |
globally unique identifier |
Required |
Body Parameters
List of deal costs to save
Collection of DealCost| Name | Description | Type | Additional information |
|---|---|---|---|
| HeaderIdentifier | Collection of byte |
None. |
|
| HeaderIdentifierGuid | globally unique identifier |
None. |
|
| Identifier | Collection of byte |
None. |
|
| IdentifierGuid | globally unique identifier |
None. |
|
| SupplierIdentifier | Collection of byte |
None. |
|
| SupplierGuid | globally unique identifier |
None. |
|
| PLUG_UID | Collection of byte |
None. |
|
| PluGuid |
A Store Product GUID |
globally unique identifier |
None. |
| CampaignName | string |
Deprecated. Please use CampaignPLU.DealCostIdentifier instead. String length: inclusive between 0 and 64 |
|
| Description | string |
None. |
|
| Cost | integer |
None. |
|
| CostDecimals | integer |
None. |
|
| Start | date |
Data type: Date |
|
| End | date |
Data type: Date |
|
| Type | DealCostType |
None. |
|
| PromoType | PromoType |
None. |
|
| BonusItemPLUG_UID | Collection of byte |
None. |
|
| BonusItemPluGuid |
A Store Product GUID |
globally unique identifier |
None. |
| BonusPurchaseUnits | integer |
None. |
|
| BonusReceiveUnits | integer |
None. |
|
| Updated | date |
None. |
|
| MetcashPromotionID | string |
None. |
|
| FromHost |
FromHost identifying the source, see |
integer |
None. |
| 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 |
List of store ids of the stores that the deal cost header belongs to |
Collection of integer |
Relation. This field may not always be loaded or used for updates. |
| SupplierName |
Supplier name |
string |
Relation. This field may not always be loaded or used for updates. |
| CampaignDescription |
Campaign description of campaign using this deal cost |
string |
Relation. This field may not always be loaded or used for updates. |
| NewPrice |
New sell price of campaign using this deal cost |
integer |
Relation. This field may not always be loaded or used for updates. |
| CampaignMetcashPromotionID |
Metcash promotion id of campaign using this deal cost |
string |
Relation. This field may not always be loaded or used for updates. |
| CampaignActive |
Active status of campaign using this deal cost |
boolean |
Relation. This field may not always be loaded or used for updates. |
| CampaignStartDate |
Start date of campaign using this deal cost |
date |
Relation. This field may not always be loaded or used for updates. |
| CampaignEndDate |
End date of campaign using this deal cost |
date |
Relation. This field may not always be loaded or used for updates. |
| MasterPLUG_UID |
Master plu guid for the deal cost store product |
Collection of byte |
Relation. This field may not always be loaded or used for updates. |
| MasterID |
Master guid for the deal cost store product |
globally unique identifier |
Relation. This field may not always be loaded or used for updates. |
| ProductName |
Product description |
string |
Relation. This field may not always be loaded or used for updates. |
| ProductAPN |
Product barcode |
string |
Relation. This field may not always be loaded or used for updates. |
| OrderCode |
Order code of product for this supplier deal cost |
string |
Relation. This field may not always be loaded or used for updates. |
| NormalSell |
Normal product sell |
integer |
Relation. This field may not always be loaded or used for updates. |
| NormalCost |
Normal product cost |
integer |
Relation. This field may not always be loaded or used for updates. |
| NormalCostDecimals |
Normal product cost decimals |
integer |
Relation. This field may not always be loaded or used for updates. |
| CartonQuantity | integer |
Relation. This field may not always be loaded or used for updates. |
|
| SalesMode | integer |
Relation. This field may not always be loaded or used for updates. |
|
| OrderPacked | integer |
Relation. This field may not always be loaded or used for updates. |
|
| FuelItem | boolean |
Relation. This field may not always be loaded or used for updates. |
|
| Active | boolean |
Relation. This field may not always be loaded or used for updates. |
|
| BonusMasterPLUG_UID |
Master plu guid for the deal cost store bonus product |
Collection of byte |
Relation. This field may not always be loaded or used for updates. |
| BonusMasterID |
Master guid for the deal cost store bonus product |
globally unique identifier |
Relation. This field may not always be loaded or used for updates. |
| BonusProductName |
Bonus product description |
string |
Relation. This field may not always be loaded or used for updates. |
| BonusProductAPN |
Bonus product barcode |
string |
Relation. This field may not always be loaded or used for updates. |
| BonusOrderCode |
Order code of bonus product for this supplier deal cost |
string |
Relation. This field may not always be loaded or used for updates. |
| BonusNormalSell |
Normal bonus product sell |
integer |
Relation. This field may not always be loaded or used for updates. |
| BonusNormalCost |
Normal bonus product cost |
integer |
Relation. This field may not always be loaded or used for updates. |
| BonusNormalCostDecimals |
Normal bonus product cost decimals |
integer |
Relation. This field may not always be loaded or used for updates. |
| BonusCartonQuantity | integer |
Relation. This field may not always be loaded or used for updates. |
|
| BonusSalesMode | integer |
Relation. This field may not always be loaded or used for updates. |
|
| BonusOrderPacked | integer |
Relation. This field may not always be loaded or used for updates. |
|
| BonusFuelItem | boolean |
Relation. This field may not always be loaded or used for updates. |
|
| BonusActive | boolean |
Relation. This field may not always be loaded or used for updates. |
Request Formats
application/json, text/json
[
{
"$id": "1",
"headerIdentifier": "1FQv0xsZw0upOXVcyIOtSw==",
"headerIdentifierGuid": "d32f54d4-191b-4bc3-a939-755cc883ad4b",
"identifier": "w4UJXMZ1IEaR5RHiCah2RQ==",
"identifierGuid": "5c0985c3-75c6-4620-91e5-11e209a87645",
"supplierIdentifier": "zvFD9a8KZESBYuFBeslshw==",
"supplierGuid": "f543f1ce-0aaf-4464-8162-e1417ac96c87",
"pluG_UID": "dx0TvYnqJ0WnMxNWv7TavA==",
"pluGuid": "bd131d77-ea89-4527-a733-1356bfb4dabc",
"campaignName": "8d52956d-c516-40b2-8d87-4d30e8cc2ced",
"description": "sample string 4",
"cost": 5,
"costDecimals": 6,
"start": "2026-04-03T06:25:25.2900135",
"end": "2026-04-03T06:25:25.2900135",
"type": 9,
"promoType": 10,
"bonusItemPLUG_UID": "HoHNnsnnvkm4HkLJn+NSdQ==",
"bonusItemPluGuid": "9ecd811e-e7c9-49be-b81e-42c99fe35275",
"bonusPurchaseUnits": 11,
"bonusReceiveUnits": 12,
"updated": "2026-04-03T06:25:25.2900135",
"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:25:25.2900135",
"campaignEndDate": "2026-04-03T06:25:25.2900135",
"masterPLUG_UID": "wOoLO8KlRU+lvMQ+CIkvCA==",
"masterID": "3b0beac0-a5c2-4f45-a5bc-c43e08892f08",
"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": "RDt79yLUpEOZn2wkYhpTjQ==",
"bonusMasterID": "f77b3b44-d422-43a4-999f-6c24621a538d",
"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": "1"
}
]
application/xml, text/xml
<ArrayOfDealCost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://gapsolutions.com.au/schema/ezimanager">
<DealCost>
<Active>true</Active>
<BonusActive>true</BonusActive>
<BonusCartonQuantity>40</BonusCartonQuantity>
<BonusFuelItem>true</BonusFuelItem>
<BonusItemPLUG_UID>HoHNnsnnvkm4HkLJn+NSdQ==</BonusItemPLUG_UID>
<BonusItemPluGuid>9ecd811e-e7c9-49be-b81e-42c99fe35275</BonusItemPluGuid>
<BonusMasterID>f77b3b44-d422-43a4-999f-6c24621a538d</BonusMasterID>
<BonusMasterPLUG_UID>RDt79yLUpEOZn2wkYhpTjQ==</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:25:25.2900135+00:00</CampaignEndDate>
<CampaignMetcashPromotionID>sample string 19</CampaignMetcashPromotionID>
<CampaignName>8d52956d-c516-40b2-8d87-4d30e8cc2ced</CampaignName>
<CampaignStartDate>2026-04-03T06:25:25.2900135+00:00</CampaignStartDate>
<CartonQuantity>28</CartonQuantity>
<Cost>5</Cost>
<CostDecimals>6</CostDecimals>
<Description>sample string 4</Description>
<End>2026-04-03T06:25:25.2900135+00:00</End>
<FromHost>15</FromHost>
<FuelItem>true</FuelItem>
<HeaderIdentifier>1FQv0xsZw0upOXVcyIOtSw==</HeaderIdentifier>
<HeaderIdentifierGuid>d32f54d4-191b-4bc3-a939-755cc883ad4b</HeaderIdentifierGuid>
<Identifier>w4UJXMZ1IEaR5RHiCah2RQ==</Identifier>
<IdentifierGuid>5c0985c3-75c6-4620-91e5-11e209a87645</IdentifierGuid>
<MasterID>3b0beac0-a5c2-4f45-a5bc-c43e08892f08</MasterID>
<MasterPLUG_UID>wOoLO8KlRU+lvMQ+CIkvCA==</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>dx0TvYnqJ0WnMxNWv7TavA==</PLUG_UID>
<PluGuid>bd131d77-ea89-4527-a733-1356bfb4dabc</PluGuid>
<ProductAPN>sample string 23</ProductAPN>
<ProductName>sample string 22</ProductName>
<PromoType>10</PromoType>
<SalesMode>29</SalesMode>
<Start>2026-04-03T06:25:25.2900135+00:00</Start>
<StoreIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</StoreIDs>
<StoreNames>sample string 16</StoreNames>
<SupplierGuid>f543f1ce-0aaf-4464-8162-e1417ac96c87</SupplierGuid>
<SupplierIdentifier>zvFD9a8KZESBYuFBeslshw==</SupplierIdentifier>
<SupplierName>sample string 17</SupplierName>
<Type>9</Type>
<Updated>2026-04-03T06:25:25.2900135+00:00</Updated>
</DealCost>
<DealCost>
<Active>true</Active>
<BonusActive>true</BonusActive>
<BonusCartonQuantity>40</BonusCartonQuantity>
<BonusFuelItem>true</BonusFuelItem>
<BonusItemPLUG_UID>HoHNnsnnvkm4HkLJn+NSdQ==</BonusItemPLUG_UID>
<BonusItemPluGuid>9ecd811e-e7c9-49be-b81e-42c99fe35275</BonusItemPluGuid>
<BonusMasterID>f77b3b44-d422-43a4-999f-6c24621a538d</BonusMasterID>
<BonusMasterPLUG_UID>RDt79yLUpEOZn2wkYhpTjQ==</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:25:25.2900135+00:00</CampaignEndDate>
<CampaignMetcashPromotionID>sample string 19</CampaignMetcashPromotionID>
<CampaignName>8d52956d-c516-40b2-8d87-4d30e8cc2ced</CampaignName>
<CampaignStartDate>2026-04-03T06:25:25.2900135+00:00</CampaignStartDate>
<CartonQuantity>28</CartonQuantity>
<Cost>5</Cost>
<CostDecimals>6</CostDecimals>
<Description>sample string 4</Description>
<End>2026-04-03T06:25:25.2900135+00:00</End>
<FromHost>15</FromHost>
<FuelItem>true</FuelItem>
<HeaderIdentifier>1FQv0xsZw0upOXVcyIOtSw==</HeaderIdentifier>
<HeaderIdentifierGuid>d32f54d4-191b-4bc3-a939-755cc883ad4b</HeaderIdentifierGuid>
<Identifier>w4UJXMZ1IEaR5RHiCah2RQ==</Identifier>
<IdentifierGuid>5c0985c3-75c6-4620-91e5-11e209a87645</IdentifierGuid>
<MasterID>3b0beac0-a5c2-4f45-a5bc-c43e08892f08</MasterID>
<MasterPLUG_UID>wOoLO8KlRU+lvMQ+CIkvCA==</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>dx0TvYnqJ0WnMxNWv7TavA==</PLUG_UID>
<PluGuid>bd131d77-ea89-4527-a733-1356bfb4dabc</PluGuid>
<ProductAPN>sample string 23</ProductAPN>
<ProductName>sample string 22</ProductName>
<PromoType>10</PromoType>
<SalesMode>29</SalesMode>
<Start>2026-04-03T06:25:25.2900135+00:00</Start>
<StoreIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</StoreIDs>
<StoreNames>sample string 16</StoreNames>
<SupplierGuid>f543f1ce-0aaf-4464-8162-e1417ac96c87</SupplierGuid>
<SupplierIdentifier>zvFD9a8KZESBYuFBeslshw==</SupplierIdentifier>
<SupplierName>sample string 17</SupplierName>
<Type>9</Type>
<Updated>2026-04-03T06:25:25.2900135+00:00</Updated>
</DealCost>
</ArrayOfDealCost>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
None.