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": "6VqwX0lA1EOsf0SLE8KbMg==", "supplierGuid": "5fb05ae9-4049-43d4-ac7f-448b13c29b32", "description": "sample string 2", "hostIdentifier": "k74PS54zt0mfDnv84/H64w==", "hostIdentifierGuid": "4b0fbe93-339e-49b7-9f0e-7bfce3f1fae3", "sellStart": "2025-08-02T23:27:00.5660041", "sellEnd": "2025-08-02T23:27:00.5660041", "costStart": "2025-08-02T23:27:00.5660041", "costEnd": "2025-08-02T23:27:00.5660041", "type": 5, "promoType": 6, "fromHost": 7, "storeIDs": [ 1, 2 ], "details": [ { "$id": "2", "pluG_UID": "ZdBouieGCkmpZhKF0C0fpA==", "pluGuid": "ba68d065-8627-490a-a966-1285d02d1fa4", "sell": 1, "cost": 2, "costDecimals": 3, "bonusItemPLUG_UID": "zkHH+PFmsUWuz7zWUrQjvw==", "bonusItemPluGuid": "f8c741ce-66f1-45b1-aecf-bcd652b423bf", "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-08-02T23:27:00.5660041+00:00</CostEnd> <CostStart>2025-08-02T23:27:00.5660041+00:00</CostStart> <Description>sample string 2</Description> <Details> <PromoCostingDetail> <BonusItemPLUG_UID>zkHH+PFmsUWuz7zWUrQjvw==</BonusItemPLUG_UID> <BonusItemPluGuid>f8c741ce-66f1-45b1-aecf-bcd652b423bf</BonusItemPluGuid> <BonusPurchaseUnits>5</BonusPurchaseUnits> <BonusReceiveUnits>6</BonusReceiveUnits> <Cost>2</Cost> <CostDecimals>3</CostDecimals> <MetcashPromotionID>sample string 7</MetcashPromotionID> <PLUG_UID>ZdBouieGCkmpZhKF0C0fpA==</PLUG_UID> <PluGuid>ba68d065-8627-490a-a966-1285d02d1fa4</PluGuid> <Sell>1</Sell> </PromoCostingDetail> <PromoCostingDetail> <BonusItemPLUG_UID>zkHH+PFmsUWuz7zWUrQjvw==</BonusItemPLUG_UID> <BonusItemPluGuid>f8c741ce-66f1-45b1-aecf-bcd652b423bf</BonusItemPluGuid> <BonusPurchaseUnits>5</BonusPurchaseUnits> <BonusReceiveUnits>6</BonusReceiveUnits> <Cost>2</Cost> <CostDecimals>3</CostDecimals> <MetcashPromotionID>sample string 7</MetcashPromotionID> <PLUG_UID>ZdBouieGCkmpZhKF0C0fpA==</PLUG_UID> <PluGuid>ba68d065-8627-490a-a966-1285d02d1fa4</PluGuid> <Sell>1</Sell> </PromoCostingDetail> </Details> <FromHost>7</FromHost> <HostIdentifier>k74PS54zt0mfDnv84/H64w==</HostIdentifier> <HostIdentifierGuid>4b0fbe93-339e-49b7-9f0e-7bfce3f1fae3</HostIdentifierGuid> <PromoType>6</PromoType> <SellEnd>2025-08-02T23:27:00.5660041+00:00</SellEnd> <SellStart>2025-08-02T23:27:00.5660041+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>5fb05ae9-4049-43d4-ac7f-448b13c29b32</SupplierGuid> <SupplierIdentifier>6VqwX0lA1EOsf0SLE8KbMg==</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": "865b68f0-b13c-4894-b21c-3ac685e1a6e0", "dealCostHeaderIdentifierGuid": "2a811a90-0cd3-436c-b16e-680454c7d8e9", "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>2a811a90-0cd3-436c-b16e-680454c7d8e9</DealCostHeaderIdentifierGuid> <PluGuid>865b68f0-b13c-4894-b21c-3ac685e1a6e0</PluGuid> <Success>2</Success> </PromoCostingStatus> <PromoCostingStatus> <CampaignName>sample string 1</CampaignName> <DealCostHeaderIdentifierGuid>2a811a90-0cd3-436c-b16e-680454c7d8e9</DealCostHeaderIdentifierGuid> <PluGuid>865b68f0-b13c-4894-b21c-3ac685e1a6e0</PluGuid> <Success>2</Success> </PromoCostingStatus> </Statuses> </PromoCostingResult>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK `�[���[� 5 xl/workbook.xml � (� ����0��&�C�p *N\�z��6Ж�5���H�yۙ��v����im�>�3>s�!���4���Ɍ��:�a���i��ʊ�& ��u�5^����������(�nAiT���c���h����d2XB��g�v1+fPS�+�����ǜ�L���,�+��&G:E|co����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="Rb214aa813f854f08" /></Relationships>PK `�[����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 `�[���W� P xl/_rels/workbook.xml.rels � (� ��An� E����@pc� ɦ�n�\`�c��m��E��+�R�H]t��?��F����f�6O�c�STT�t���=es���v�� r���)O\R��K����]�gȥ���0 [q�fqɠ�Lr8��3j|��4���٫��d3%�fE��.�� ���^�}����������n���y����]/d:�y͡��t5��2"��9�M/���BM���@�Zܛ����/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 `�[���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- `�[���[� 5 xl/workbook.xmlPK- `�[���� � � [Content_Types].xmlPK- `�[��?' ' U _rels/.relsPK- `�[����0 " � xl/worksheets/sheet1.xmlPK- `�[���W� P C xl/_rels/workbook.xml.relsPK- `�[Ѓc'2 E � xl/styles.xmlPK- `�[���i� xl/sharedStrings.xmlPK � %
application/vnd.ms-excel
Sample:
PK `�[e��H� 5 xl/workbook.xml � (� ����0��&�C��j)��x��}��6П�5��B $���~;|2nh��G����"[0�[� ��X��7NA��{1����ڴo�:����2�#i��z���ay�:/�W��iu<fO���r6���I�b�)a�ETD�����ܻ�^(q���G� f�!O1�0�;{�q����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 `�[zD�I' ' _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="Rab57c8d748ff4757" /></Relationships>PK `�[����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 `�[�@��� P xl/_rels/workbook.xml.rels � (� ��KN�0��b͞8)y5���p��q�Ďl�г��H\�H�J,�t5�קO��|�Xm�Ɓ��|oMCY�����M��)���6���q��~�,�ߐaz��K�Q��N0���E����$�Qt�4-��3���� �!Z�z����&������pBC?%ϯ!K"��s���U�C�%� 51~75.���w>�� d]�â|̥X�UF��%�x�Ӽ<SKT2EVbY䪐W5~��/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 `�[���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- `�[e��H� 5 xl/workbook.xmlPK- `�[���� � � [Content_Types].xmlPK- `�[zD�I' ' T _rels/.relsPK- `�[����0 " � xl/worksheets/sheet1.xmlPK- `�[�@��� P B xl/_rels/workbook.xml.relsPK- `�[Ѓc'2 E � xl/styles.xmlPK- `�[���i� � xl/sharedStrings.xmlPK � #