POST api/dealheader/create
Create deal costs based on the batch details
Request Information
URI Parameters
None.
Body Parameters
Promo Costing batch details
PromoCostingHeaderName | 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": "vg8bm27E30ueahzVGwbuCQ==", "supplierGuid": "9b1b0fbe-c46e-4bdf-9e6a-1cd51b06ee09", "description": "sample string 2", "hostIdentifier": "FKzsBZNBsEaG17m5fNBp4A==", "hostIdentifierGuid": "05ecac14-4193-46b0-86d7-b9b97cd069e0", "sellStart": "2025-10-04T23:56:27.1272135", "sellEnd": "2025-10-04T23:56:27.1272135", "costStart": "2025-10-04T23:56:27.1272135", "costEnd": "2025-10-04T23:56:27.1272135", "type": 5, "promoType": 6, "fromHost": 7, "storeIDs": [ 1, 2 ], "details": [ { "$id": "2", "pluG_UID": "iG1DLMxXMk6HbiGDh4RH1Q==", "pluGuid": "2c436d88-57cc-4e32-876e-2183878447d5", "sell": 1, "cost": 2, "costDecimals": 3, "bonusItemPLUG_UID": "LMFAFfdANUCix00I3kVV2Q==", "bonusItemPluGuid": "1540c12c-40f7-4035-a2c7-4d08de4555d9", "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>2025-10-04T23:56:27.1272135+00:00</CostEnd> <CostStart>2025-10-04T23:56:27.1272135+00:00</CostStart> <Description>sample string 2</Description> <Details> <PromoCostingDetail> <BonusItemPLUG_UID>LMFAFfdANUCix00I3kVV2Q==</BonusItemPLUG_UID> <BonusItemPluGuid>1540c12c-40f7-4035-a2c7-4d08de4555d9</BonusItemPluGuid> <BonusPurchaseUnits>5</BonusPurchaseUnits> <BonusReceiveUnits>6</BonusReceiveUnits> <Cost>2</Cost> <CostDecimals>3</CostDecimals> <MetcashPromotionID>sample string 7</MetcashPromotionID> <PLUG_UID>iG1DLMxXMk6HbiGDh4RH1Q==</PLUG_UID> <PluGuid>2c436d88-57cc-4e32-876e-2183878447d5</PluGuid> <Sell>1</Sell> </PromoCostingDetail> <PromoCostingDetail> <BonusItemPLUG_UID>LMFAFfdANUCix00I3kVV2Q==</BonusItemPLUG_UID> <BonusItemPluGuid>1540c12c-40f7-4035-a2c7-4d08de4555d9</BonusItemPluGuid> <BonusPurchaseUnits>5</BonusPurchaseUnits> <BonusReceiveUnits>6</BonusReceiveUnits> <Cost>2</Cost> <CostDecimals>3</CostDecimals> <MetcashPromotionID>sample string 7</MetcashPromotionID> <PLUG_UID>iG1DLMxXMk6HbiGDh4RH1Q==</PLUG_UID> <PluGuid>2c436d88-57cc-4e32-876e-2183878447d5</PluGuid> <Sell>1</Sell> </PromoCostingDetail> </Details> <FromHost>7</FromHost> <HostIdentifier>FKzsBZNBsEaG17m5fNBp4A==</HostIdentifier> <HostIdentifierGuid>05ecac14-4193-46b0-86d7-b9b97cd069e0</HostIdentifierGuid> <PromoType>6</PromoType> <SellEnd>2025-10-04T23:56:27.1272135+00:00</SellEnd> <SellStart>2025-10-04T23:56:27.1272135+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>9b1b0fbe-c46e-4bdf-9e6a-1cd51b06ee09</SupplierGuid> <SupplierIdentifier>vg8bm27E30ueahzVGwbuCQ==</SupplierIdentifier> <Type>5</Type> </PromoCostingHeader>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Details of deal cost creation
PromoCostingResultName | Description | Type | Additional information |
---|---|---|---|
Statuses | Collection of PromoCostingStatus |
None. |
Response Formats
application/json, text/json
Sample:
{ "statuses": [ { "$id": "2", "pluGuid": "4f54e29e-1d18-4294-81b3-4a9b784f1159", "dealCostHeaderIdentifierGuid": "fbc424d7-bbf2-4106-9c2e-d3c95d68e1bb", "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>fbc424d7-bbf2-4106-9c2e-d3c95d68e1bb</DealCostHeaderIdentifierGuid> <PluGuid>4f54e29e-1d18-4294-81b3-4a9b784f1159</PluGuid> <Success>2</Success> </PromoCostingStatus> <PromoCostingStatus> <CampaignName>sample string 1</CampaignName> <DealCostHeaderIdentifierGuid>fbc424d7-bbf2-4106-9c2e-d3c95d68e1bb</DealCostHeaderIdentifierGuid> <PluGuid>4f54e29e-1d18-4294-81b3-4a9b784f1159</PluGuid> <Success>2</Success> </PromoCostingStatus> </Statuses> </PromoCostingResult>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK �D[v�D� 5 xl/workbook.xml � (� ����0D�&�C���� '.^=x_�VhK��|o�vfg�N1�7����r[���1g����Q��0V�Ҿ�Br� +Ԟ�Q�0�xi�����J���F�кѫaE)��V�!���)qr��Vw6 [C�7U,��bQD����Ź�%=Sbs�Ǎ�,M�%���b�Н�� ����PK �D[���� � [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[�hO' ' _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="R4fd24ed35e53479e" /></Relationships>PK �D[����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 �D[F�� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�IM>�i7l�-��팓��m�n�gc���V� �X��j4��'�|���o�D���hMyƀ�Q�M��)����'�DFHZ1��!F�DiP�"d֡Im�,bJ}O�PG�#-+�_2�I��!Z�G��V�f4�0}���� |����R�אg� d���n�R�jQH�M ��M-�˄���;_� ���Ҽ�%_�ǻ��c�}���iY^�I���.��x�������PK �D[Ѓ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 �D[���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- �D[v�D� 5 xl/workbook.xmlPK- �D[���� � � [Content_Types].xmlPK- �D[�hO' ' U _rels/.relsPK- �D[����0 " � xl/worksheets/sheet1.xmlPK- �D[F�� P C xl/_rels/workbook.xml.relsPK- �D[Ѓc'2 E � xl/styles.xmlPK- �D[���i� xl/sharedStrings.xmlPK � &
application/vnd.ms-excel
Sample:
PK �D[���A� 5 xl/workbook.xml � (� ����0��&�C�� H�N\�z�E�O�||� $���~;|4�����G �箠]6g̋�����]k��0I�b�m��ʈ�B�9�2�p� �������X�:��w�A +J�Դ<�s����/r2���I�b�)����E ZA J��4���rY�\n״"�S�#��wg���PK �D[���� � [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[|��' ' _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="Rf9225426e7b24295" /></Relationships>PK �D[����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 �D[���E� P xl/_rels/workbook.xml.rels � (� ��An� E���׀M� ɦ�n�\ �`����ٺ�z��Tj��n�B���h�|����� �@L�w��bN�~t���l�:��n�0�\n$;�����9�B��0�T� �t���̥� R� ���%q���Lt8��3jx��4���ɫ��d2F��D�\V*FO����5���+�ƥ*㓛��|� �z}���Q�h�J� �xsS+#��9�M/���B��ͺS����������PK �D[Ѓ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 �D[���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- �D[���A� 5 xl/workbook.xmlPK- �D[���� � [Content_Types].xmlPK- �D[|��' ' V _rels/.relsPK- �D[����0 " � xl/worksheets/sheet1.xmlPK- �D[���E� P D xl/_rels/workbook.xml.relsPK- �D[Ѓc'2 E � xl/styles.xmlPK- �D[���i� xl/sharedStrings.xmlPK � (