POST api/dealheader/create
Create deal costs based on the batch details
Request Information
URI Parameters
None.
Body Parameters
Promo Costing batch details
PromoCostingHeader| Name | Description | Type | Additional information |
|---|---|---|---|
| SupplierIdentifier | Collection of byte |
None. |
|
| SupplierGuid | globally unique identifier |
None. |
|
| Description | string |
None. |
|
| HostIdentifier |
Host identifier for a promotion sell to be created with this |
Collection of byte |
None. |
| HostIdentifierGuid | globally unique identifier |
None. |
|
| SellStart |
Promotion sell start to be created with campaign |
date |
Data type: Date |
| SellEnd |
Promotion sell end to be created with campaign |
date |
Data type: Date |
| CostStart | date |
Data type: Date |
|
| CostEnd | date |
Data type: Date |
|
| Type | DealCostType |
None. |
|
| PromoType | PromoType |
None. |
|
| FromHost |
FromHost identifying the source, see |
integer |
None. |
| StoreIDs |
StoreIDs for the deal cost to be updated to |
Collection of integer |
Required |
| Details |
Deal costs to create |
Collection of PromoCostingDetail |
Required |
Request Formats
application/json, text/json
Sample:
{
"supplierIdentifier": "+99A8DJKsE6caL/EyERA9w==",
"supplierGuid": "f040dffb-4a32-4eb0-9c68-bfc4c84440f7",
"description": "sample string 2",
"hostIdentifier": "+0i72NFJNUKWIXigRuuE3w==",
"hostIdentifierGuid": "d8bb48fb-49d1-4235-9621-78a046eb84df",
"sellStart": "2026-04-03T06:20:24.9485008",
"sellEnd": "2026-04-03T06:20:24.9485008",
"costStart": "2026-04-03T06:20:24.9485008",
"costEnd": "2026-04-03T06:20:24.9485008",
"type": 5,
"promoType": 6,
"fromHost": 7,
"storeIDs": [
1,
2
],
"details": [
{
"$id": "2",
"pluG_UID": "f9r/rp8AnEyErxKIyqdXIw==",
"pluGuid": "aeffda7f-009f-4c9c-84af-1288caa75723",
"sell": 1,
"cost": 2,
"costDecimals": 3,
"bonusItemPLUG_UID": "cfzOY6Sme0m8ANhapt86OQ==",
"bonusItemPluGuid": "63cefc71-a6a4-497b-bc00-d85aa6df3a39",
"bonusPurchaseUnits": 5,
"bonusReceiveUnits": 6,
"metcashPromotionID": "sample string 7"
},
{
"$ref": "2"
}
]
}
application/xml, text/xml
Sample:
<PromoCostingHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.PromoBatch">
<CostEnd>2026-04-03T06:20:24.9485008+00:00</CostEnd>
<CostStart>2026-04-03T06:20:24.9485008+00:00</CostStart>
<Description>sample string 2</Description>
<Details>
<PromoCostingDetail>
<BonusItemPLUG_UID>cfzOY6Sme0m8ANhapt86OQ==</BonusItemPLUG_UID>
<BonusItemPluGuid>63cefc71-a6a4-497b-bc00-d85aa6df3a39</BonusItemPluGuid>
<BonusPurchaseUnits>5</BonusPurchaseUnits>
<BonusReceiveUnits>6</BonusReceiveUnits>
<Cost>2</Cost>
<CostDecimals>3</CostDecimals>
<MetcashPromotionID>sample string 7</MetcashPromotionID>
<PLUG_UID>f9r/rp8AnEyErxKIyqdXIw==</PLUG_UID>
<PluGuid>aeffda7f-009f-4c9c-84af-1288caa75723</PluGuid>
<Sell>1</Sell>
</PromoCostingDetail>
<PromoCostingDetail>
<BonusItemPLUG_UID>cfzOY6Sme0m8ANhapt86OQ==</BonusItemPLUG_UID>
<BonusItemPluGuid>63cefc71-a6a4-497b-bc00-d85aa6df3a39</BonusItemPluGuid>
<BonusPurchaseUnits>5</BonusPurchaseUnits>
<BonusReceiveUnits>6</BonusReceiveUnits>
<Cost>2</Cost>
<CostDecimals>3</CostDecimals>
<MetcashPromotionID>sample string 7</MetcashPromotionID>
<PLUG_UID>f9r/rp8AnEyErxKIyqdXIw==</PLUG_UID>
<PluGuid>aeffda7f-009f-4c9c-84af-1288caa75723</PluGuid>
<Sell>1</Sell>
</PromoCostingDetail>
</Details>
<FromHost>7</FromHost>
<HostIdentifier>+0i72NFJNUKWIXigRuuE3w==</HostIdentifier>
<HostIdentifierGuid>d8bb48fb-49d1-4235-9621-78a046eb84df</HostIdentifierGuid>
<PromoType>6</PromoType>
<SellEnd>2026-04-03T06:20:24.9485008+00:00</SellEnd>
<SellStart>2026-04-03T06:20:24.9485008+00:00</SellStart>
<StoreIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</StoreIDs>
<SupplierGuid>f040dffb-4a32-4eb0-9c68-bfc4c84440f7</SupplierGuid>
<SupplierIdentifier>+99A8DJKsE6caL/EyERA9w==</SupplierIdentifier>
<Type>5</Type>
</PromoCostingHeader>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Details of deal cost creation
PromoCostingResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Statuses | Collection of PromoCostingStatus |
None. |
Response Formats
application/json, text/json
Sample:
{
"statuses": [
{
"$id": "2",
"pluGuid": "10c29f3d-d9ea-4edc-b43d-ae1a25a38ef6",
"dealCostHeaderIdentifierGuid": "50f6d96d-3454-463d-8caf-d12d7654d41c",
"campaignName": "sample string 1",
"success": 2
},
{
"$ref": "2"
}
]
}
application/xml, text/xml
Sample:
<PromoCostingResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.PromoBatch">
<Statuses>
<PromoCostingStatus>
<CampaignName>sample string 1</CampaignName>
<DealCostHeaderIdentifierGuid>50f6d96d-3454-463d-8caf-d12d7654d41c</DealCostHeaderIdentifierGuid>
<PluGuid>10c29f3d-d9ea-4edc-b43d-ae1a25a38ef6</PluGuid>
<Success>2</Success>
</PromoCostingStatus>
<PromoCostingStatus>
<CampaignName>sample string 1</CampaignName>
<DealCostHeaderIdentifierGuid>50f6d96d-3454-463d-8caf-d12d7654d41c</DealCostHeaderIdentifierGuid>
<PluGuid>10c29f3d-d9ea-4edc-b43d-ae1a25a38ef6</PluGuid>
<Success>2</Success>
</PromoCostingStatus>
</Statuses>
</PromoCostingResult>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK �2�\[\
� 5 xl/workbook.xml � (� ����0��J}�(PC�R����k��L� ?JR��/?�[7�����ɸ�6f`5j����!��7=)�cIϻ�8�a����dC�iފt�k p4b�F�^Z�7�?,oa�{���
�Pj^�O��K���ɯr6����`�o*_a�Ū�FE�0 g�sos�29��-ƔZQ��M~�X���PK �2�\���� � [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
�2�\����' ' _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="R23fbca9c94834088" /></Relationships>PK �2�\����0 " xl/worksheets/sheet1.xml � (� �Q�n�0~�(�5@��V@U���۴�v����$Fq(}�� u�z�!�-?�S�o�gWp�і<]%����Ѷ+��ۗ
�Wń�B
�� ��s%W�;!�V`$�p j-:#}H]'�mu
G�G,I^��^�`EJ���h��@6��/RFj˫��A}�9hK~Hw��3Q��a���͓|#^��)y�� |���5�ʱ�8�Awʇ%�ScO�fFϫ���[|'�xU��z�'�|���6_�k��<����.L�<J/����\,�9:��b������*)�u��wN��ɞ8��x�Ta��N�\�����PK �2�\�e� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8.� �n7lؖ^���I�Ķl��Xp$��E%H%l����I3�����<��i�N�j �7��%��ia�Y�pR�L�a���$9�J�pV��]�Xg�K{�>�骮�K\2���?Do�����.���>Ҁ���U�1K�)%�XU�@����h�a�E#:�
�@���R>M�~���B�uT����xc�*3���9�r�Ӳ�P[�Cklǔ�؞���_l� PK �2�\Ѓ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 �2�\���i� xl/sharedStrings.xml � (� E�AK�0��J�ݤ��E��u/�$�!�@2S3Sq��FV�����v�������i�4F��~z���֊���!8}�jߵ̢�+�ӳ�rc-��gC`��Q�^�-�奀y���iv6��ZZQ��j�b|_����V��2pk�k�O���Y ��R� �;� ��]dy�<����OP�@#$6ǡ7��2���"{b�S/������oPK- �2�\[\
� 5 xl/workbook.xmlPK- �2�\���� � � [Content_Types].xmlPK-
�2�\����' ' U _rels/.relsPK- �2�\����0 " � xl/worksheets/sheet1.xmlPK- �2�\�e� P C xl/_rels/workbook.xml.relsPK- �2�\Ѓc'2 E
� xl/styles.xmlPK- �2�\���i� xl/sharedStrings.xmlPK � %
application/vnd.ms-excel
Sample:
PK �2�\�D-� 5 xl/workbook.xml � (� ����0��J}�(��'Z���ҵCwL� JR��o �ԭ��|�||6vh��G������S��=*p3���X>H�b���ڈ�B�YE9�8��F�^N�n�Xn����7��iu>fO��[e0���I�b�)��U
KZ�JV�ޖ4��2�T$�
�,�B�5iC��l�]}PK �2�\���� � [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
�2�\ �s�' ' _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="R6f1f960b8bde448d" /></Relationships>PK �2�\����0 " xl/worksheets/sheet1.xml � (� �Q�n�0~�(�5@��V@U���۴�v����$Fq(}�� u�z�!�-?�S�o�gWp�і<]%����Ѷ+��ۗ
�Wń�B
�� ��s%W�;!�V`$�p j-:#}H]'�mu
G�G,I^��^�`EJ���h��@6��/RFj˫��A}�9hK~Hw��3Q��a���͓|#^��)y�� |���5�ʱ�8�Awʇ%�ScO�fFϫ���[|'�xU��z�'�|���6_�k��<����.L�<J/����\,�9:��b������*)�u��wN��ɞ8��x�Ta��N�\�����PK �2�\���U� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�NBH��ݰa���3��&�e�@��G�
XE�Tb�������4�y�Xo�牼��5-�A#m?���ST5l7�N"���GHZ1��[Q��Y��:4����EL���(�9c�K�2����?D��(���ӌ&��o��F�@�[�)z
<KT /}�B�ƪ�O��]��wS�<a����2(y��������]e����O�^:-�����)��@Ubïj��/6_PK �2�\Ѓ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 �2�\���i� xl/sharedStrings.xml � (� E�AK�0��J�ݤ��E��u/�$�!�@2S3Sq��FV�����v�������i�4F��~z���֊���!8}�jߵ̢�+�ӳ�rc-��gC`��Q�^�-�奀y���iv6��ZZQ��j�b|_����V��2pk�k�O���Y ��R� �;� ��]dy�<����OP�@#$6ǡ7��2���"{b�S/������oPK- �2�\�D-� 5 xl/workbook.xmlPK- �2�\���� � [Content_Types].xmlPK-
�2�\ �s�' ' V _rels/.relsPK- �2�\����0 " � xl/worksheets/sheet1.xmlPK- �2�\���U� P D xl/_rels/workbook.xml.relsPK- �2�\Ѓc'2 E
� xl/styles.xmlPK- �2�\���i� xl/sharedStrings.xmlPK � '