Skip to main content
Engage can export assigned, redeemed and deleted promotions as XML files. Engage listens for changes to promotions assigned to contacts and exports these changes on a configurable schedule to the Engage internal FTP-server. The XML files created can be fetched from there and consumed by third-party systems. Be aware that new and redeemed promotions are exported in separate files even though they are exported in the same run.
Main promotions are not included in these XML exports, only the assigned promotions for individual contacts that were based on them. If a main promotion is terminated early, it will not be included in the XML export and its assigned promotions will not be automatically cancelled.

Field descriptions

Below are Engage’s default export fields. Note that these field names can be changed with a XSLT-transformation created by a product specialist.
FieldExample valueDescription
contactId7b89b95e-6347-4d66-8b02-a10a9c830119Engage’s internal contact GUID
contactKey4398423The value of the set key for clients environment
contactTypeMemberThe contact type of the contact
couponId32e0f814-eb7b-4857-8c05-a8e900c43e44The unique id for the contact and promotion combined. Used for redeeming.
descriptionSpring chainmail promotionA description of the promotion
promotionId44a0f722-1f28-4965-a648-a8e8010c86d5The promotion template id
externalPromotionId12345The promotion’s ID in another system.
validFromDate2018-05-26T00:00:00+01:00When the promotion becomes valid
expireDateTime2019-05-26T00:00:00+01:00The expiry date of the promotion
redemptionChannelsTells you in which channels the promotion can be used.
typePOS or e-comValue under redemptionChannels. Tells you if that redemption channel is POS or e-com
valuetypeMONEY, PERCENT or EXTERNALOFFERValue under redemptionChannels. Shows if the promotion is monetary, a percentage or an external promotion
value20.00Value under redemptionChannels. The amount to be applied to the receipt as a discount. Can be a percentage (20.00), an amount (100.00) or an external code defined for type EXTERNALOFFER (10OFFSHOES).
instruction10 % discountValue under redemptionChannels. A message you can write in Engage which will be presented in the POS for the staff to read.
currencySEKThe currency is of the monetary discount
storeId1005In what store/e-com the promotion was used
storeTypeRETAIL/ECOMIf the store was a physical store or an e-com
redeemedDateTime2020-09-29T08:14:50.0168149+01:00What date and time the promotion was redeemed
deletedDateTime2020-09-29T08:14:50.0168149+01:00What date and time the promotion was deleted in Engage.

Default XML-format

Below is the default format of an XML-export (broken into three parts). The format, if desired, can be transformed and changed into another format more suited for the third party system.
<promotions country="SE">
  <assigned>
    <couponId>c9618bab-ad41-4eae-978e-4836305a9aa8</couponId>
    <promotionId>2eca7904-5b05-4796-bf68-a322e3e4a589</promotionId>
    <contactId>dda2e506-41da-44ae-9950-c12d3e661657</contactId>
    <contactKey>789</contactKey>
    <contactType>Member</contactType>
    <assignedDateTime>2020-09-29T09:27:22.345926+02:00</assignedDateTime>
    <validFromDateTime>2020-09-29T09:27:22.345926+02:00</validFromDateTime>
    <expireDateTime>2020-10-29T09:27:22.345926+01:00</expireDateTime>
    <externalPromotionId>123456</externalPromotionId>
    <description>Description from presentation</description>
    <redemptionChannels>
      <channel>
        <type>POS</type>
        <valueType>EXTERNALOFFER</valueType>
        <instruction>Instruction</instruction>
        <value>POSDISCOUNT20</value>
        <currency>SEK</currency>
      </channel>
      <channel>
        <type>ECOM</type>
        <valueType>EXTERNALOFFER</valueType>
        <value>ECOMDISCOUNT20</value>
      </channel>
    </redemptionChannels>
  </assigned>
...
...
<redeemed>
    <couponId>d1f4b5c8-4e0b-4f90-9e0c-7c1268ca7119</couponId>
    <promotionId>ab3ac06e-f528-4aef-92d8-f425b26d17d3</promotionId>
    <contactId>113297af-58b8-493b-ada3-f737d6f9d7a5</contactId>
    <contactKey>789</contactKey>
    <contactType>Member</contactType>
    <redeemedDateTime>2020-09-29T09:27:22.345926+02:00</redeemedDateTime>
    <storeId>123</storeId>
    <storeType>RETAIL</storeType>
  </redeemed>
...
...
<deleted>
    <couponId>96e5da31-ec8d-4fb8-a0e4-099dfa8c0e60</couponId>
    <promotionId>d68c6f69-cfcf-433e-8303-3dde2f8db152</promotionId>
    <contactId>df29a1da-821d-4ec6-a1e0-dd2abcc47502</contactId>
    <contactKey>789</contactKey>
    <contactType>Member</contactType>
    <deletedDateTime>2020-09-29T09:27:22.345926+02:00</deletedDateTime>
  </deleted>
</promotions>