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": "Dr06cns4Tk6eUg6it5ZVZA==",
"supplierGuid": "723abd0e-387b-4e4e-9e52-0ea2b7965564",
"description": "sample string 2",
"hostIdentifier": "F1NKenS7Q0SOc8pDLnjsoA==",
"hostIdentifierGuid": "7a4a5317-bb74-4443-8e73-ca432e78eca0",
"sellStart": "2026-06-03T18:30:31.4160845",
"sellEnd": "2026-06-03T18:30:31.4160845",
"costStart": "2026-06-03T18:30:31.4160845",
"costEnd": "2026-06-03T18:30:31.4160845",
"type": 5,
"promoType": 6,
"fromHost": 7,
"storeIDs": [
1,
2
],
"details": [
{
"$id": "2",
"pluG_UID": "klgo4Zo48kinqVQrlA0q6Q==",
"pluGuid": "e1285892-389a-48f2-a7a9-542b940d2ae9",
"sell": 1,
"cost": 2,
"costDecimals": 3,
"bonusItemPLUG_UID": "pUVag9Kgr0yVefG75p1jeA==",
"bonusItemPluGuid": "835a45a5-a0d2-4caf-9579-f1bbe69d6378",
"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-06-03T18:30:31.4160845+00:00</CostEnd>
<CostStart>2026-06-03T18:30:31.4160845+00:00</CostStart>
<Description>sample string 2</Description>
<Details>
<PromoCostingDetail>
<BonusItemPLUG_UID>pUVag9Kgr0yVefG75p1jeA==</BonusItemPLUG_UID>
<BonusItemPluGuid>835a45a5-a0d2-4caf-9579-f1bbe69d6378</BonusItemPluGuid>
<BonusPurchaseUnits>5</BonusPurchaseUnits>
<BonusReceiveUnits>6</BonusReceiveUnits>
<Cost>2</Cost>
<CostDecimals>3</CostDecimals>
<MetcashPromotionID>sample string 7</MetcashPromotionID>
<PLUG_UID>klgo4Zo48kinqVQrlA0q6Q==</PLUG_UID>
<PluGuid>e1285892-389a-48f2-a7a9-542b940d2ae9</PluGuid>
<Sell>1</Sell>
</PromoCostingDetail>
<PromoCostingDetail>
<BonusItemPLUG_UID>pUVag9Kgr0yVefG75p1jeA==</BonusItemPLUG_UID>
<BonusItemPluGuid>835a45a5-a0d2-4caf-9579-f1bbe69d6378</BonusItemPluGuid>
<BonusPurchaseUnits>5</BonusPurchaseUnits>
<BonusReceiveUnits>6</BonusReceiveUnits>
<Cost>2</Cost>
<CostDecimals>3</CostDecimals>
<MetcashPromotionID>sample string 7</MetcashPromotionID>
<PLUG_UID>klgo4Zo48kinqVQrlA0q6Q==</PLUG_UID>
<PluGuid>e1285892-389a-48f2-a7a9-542b940d2ae9</PluGuid>
<Sell>1</Sell>
</PromoCostingDetail>
</Details>
<FromHost>7</FromHost>
<HostIdentifier>F1NKenS7Q0SOc8pDLnjsoA==</HostIdentifier>
<HostIdentifierGuid>7a4a5317-bb74-4443-8e73-ca432e78eca0</HostIdentifierGuid>
<PromoType>6</PromoType>
<SellEnd>2026-06-03T18:30:31.4160845+00:00</SellEnd>
<SellStart>2026-06-03T18:30:31.4160845+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>723abd0e-387b-4e4e-9e52-0ea2b7965564</SupplierGuid>
<SupplierIdentifier>Dr06cns4Tk6eUg6it5ZVZA==</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": "df8b7c51-993c-4629-8d47-62c0b8aab7cc",
"dealCostHeaderIdentifierGuid": "9671e2b4-1f35-4f1d-8e68-4d8e624eb219",
"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>9671e2b4-1f35-4f1d-8e68-4d8e624eb219</DealCostHeaderIdentifierGuid>
<PluGuid>df8b7c51-993c-4629-8d47-62c0b8aab7cc</PluGuid>
<Success>2</Success>
</PromoCostingStatus>
<PromoCostingStatus>
<CampaignName>sample string 1</CampaignName>
<DealCostHeaderIdentifierGuid>9671e2b4-1f35-4f1d-8e68-4d8e624eb219</DealCostHeaderIdentifierGuid>
<PluGuid>df8b7c51-993c-4629-8d47-62c0b8aab7cc</PluGuid>
<Success>2</Success>
</PromoCostingStatus>
</Statuses>
</PromoCostingResult>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK ϓ�\M��� 5 xl/workbook.xml � (� ����0D�&�C���b)��x��})�m�-ik��-H�yۙ�};|��o���G���2��`���Ɏh⮳NC�ҽ��:%�����%ɕ9 (k�T��+��B�%b�ÊҠ��B���p��Vw6 [C�7��~�(b@cIk@���ے���B��g��4����
��;���w�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="R5d5e1ccae52a4eb0" /></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 ϓ�\�4� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞��)j�
�nK/�8�$jbG�[��Xp$��U$p%l����I3�����<�3:?Z� �4�v��8�P�v���$C��øxW�o`ay�ԫg�3���m�,CL]O���G*��Kp�$�˂�!Z�G��V�f4�0}���� � ]���������H��ؗ��T�ʋ[ �nj>\&�^�y"S�ǜ���U"/��w����%�x��)-'jL�w�fm��VW5z��/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- ϓ�\M��� 5 xl/workbook.xmlPK- ϓ�\���� � � [Content_Types].xmlPK-
ϓ�\ ' ' U _rels/.relsPK- ϓ�\����0 " � xl/worksheets/sheet1.xmlPK- ϓ�\�4� P C xl/_rels/workbook.xml.relsPK- ϓ�\Ѓc'2 E
� xl/styles.xmlPK- ϓ�\���i� xl/sharedStrings.xmlPK � &
application/vnd.ms-excel
Sample:
PK ϓ�\���ķ 5 xl/workbook.xml � (� ����0D�&�C��� J������ڒ�?�R�7o;��o���Z������0wn*������'P~�k#��Ҽ��{����-A9�Dх�ZY.&�W�?,;��� N�+JR�p}< T.͞f�7�����"��2������*�PG1
ν�p��)�1�Rv˓,���M���a%�~�_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
ϓ�\�8 ~' ' _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="Rdb73d2f1041445f5" /></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 ϓ�\�5*�� P xl/_rels/workbook.xml.rels � (� ��An� E��f_c��QH6�t��Ɗ
Hۜ���W(j�֑��&+4��i������m��88+�%��u����~��n�8ʔoD3�H�����ҨN2Σ���$S.CO�T'�#]�eCÜ�Lr�x��i=(|t�<�M���h��=&?Q��+2�S'`�T]�v��W\W�c��M-�ˈ���Z�et����Rպ⬼�������N�x��*����U5��Fo���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-
ϓ�\�8 ~' ' V _rels/.relsPK- ϓ�\����0 " � xl/worksheets/sheet1.xmlPK- ϓ�\�5*�� P D xl/_rels/workbook.xml.relsPK- ϓ�\Ѓc'2 E
� xl/styles.xmlPK- ϓ�\���i� xl/sharedStrings.xmlPK � '