in implementation guides ~ read.
Redeem Coupons Solution Kit

Redeem Coupons Solution Kit

DOWNLOAD

First things first !
To download this implementation guide, click the download button below.
If you need more information about the implementation guide, you can read the Table of Contents below.

Download

Redeem Coupons
Salesforce Spring

salesforcedocs
Last updated November

Copyright Salesforce Inc All rights reserved Salesforce is a registered trademark of Salesforce Inc as are other

names and marks Other marks appearing herein may be trademarks of their respective owners

CONTENTS

Redeem Coupons
Coupon Redemption Solution Workflow
Design Considerations
Integration Reference Implementation
Configurations

REDEEM COUPONS

Offer targeted customer journeys and increase positive purchasing decisions Increase completed purchases personalize the experience
and track coupon usage

Get Started
Explore system architecture related to this solution

BC Industry Blueprint

BC Reference Architecture

BC Solution Architectures

Take Trailhead modules related to this solution
Salesforce Solution Kits Quick Look
Customer Guide for Retail Quick Look
Customer Guides Quick Look

This solution kit helps you
Increase completed purchases
Give shoppers a personalized experience
Incorporate coupon incentives in shopper journeys
Track coupon usage in Marketing Cloud and gain insights into what your shoppers want

Required Products
Journey Builder and Email Studio in Marketing Cloud Enterprise

Commerce Cloud SFRA or SiteGenesis

Redeem Coupons

Coupon Redemption Solution Workflow

Implement This Solution
Coupon Redemption Solution Workflow
Learn how data flows through the configurations to redeem coupons
Design Considerations
Keep these design considerations in mind when you redeem coupons
Integration Reference Implementation
Integration Reference Implementations are developer enablement frameworks that accelerate crosscloud integration by providing

code configuration and implementation patterns Use the Marketing Cloud reference implementation for BC Commerce to redeem

coupons
Configurations
Use these configurations to redeem coupons

Coupon Redemption Solution Workflow
Learn how data flows through the configurations to redeem coupons

Redeem Coupons

Coupon Redemption Solution Workflow

Workflow

Commerce Cloud exports the generated coupon

The exported coupons are pushed to Marketing Cloud using SFTP

The coupons are imported into Marketing Cloud using a data extension

A ClaimRow function for each customer creates email templates that retrieve a unique coupon code

Marketing Cloud sends the email via Journey Builder to the shopper with their unique coupon
The customer engages with the coupon email
The customer makes a purchase using the coupon
Commerce Cloud receives the redeemed coupon data in the Order Details

The coupon redemption data extension is pushed to Marketing Cloud via REST API

Redeem Coupons

Coupon Redemption Solution Workflow

Understand the Flow of Data

Collect the catalog product order and customer data feeds from the BC Commerce staging and production environments

Move the data to the Marketing Cloud SFTP server and create Import Activities so that Marketing Cloud consumes it on a schedule

via Automation Studio
Use Commerce Cloud data in Marketing Cloud via data extensions during the authoring of email templates creation of journeys
and development of personalized product recommendations
Extend the Commerce Cloud storefront by replacing its email functions with the Marketing Clouds trigger send features
Implement framework customizations to trigger transactional email for common scenarios These scenarios include Welcome Email
Order Confirmation and Order Status Update Email
Functionality Considerations
We recommend that you regularly export coupons from Commerce Cloud via a scheduled process
Extend the reference implementations datafeed framework to support coupon exports
Exported coupon codes are imported into a Marketing Cloud data extension
For coupon volumes greater than million use Commerce Cloud systemgenerated coupons

Commerce Cloud uses Marketing Cloud REST APIs to push redeemed coupon codes into a Marketing Cloud data extension after

order completion
Use the redeemed codes within Marketing Cloud to track usage and prevent Marketing Cloud from sending reminders to customers
for already redeemed coupons
Alternatively Marketing Cloud can use AMPscript or script activities to retrieve coupon redemptions that Commerce Cloud tracks

using Commerce Cloud Open Commerce Data API

Redeem Coupons

Design Considerations

Related Content
Review this solutions use case and purpose
Redeem Coupons on page
Take the next steps in this implementation
Design Considerations
Integration Reference Implementation
Configurations

Design Considerations
Keep these design considerations in mind when you redeem coupons
Coupon Generation Within a Commerce Cloud Storefront
To generate coupons based on the type and use case use standard capabilities Examples of coupon use cases include singleuse
multipleuse and qualification dependencies
Coupons with more than codes perform better with systemgenerated codes
Replication time slows when the total number of coupons across all sites exceeds million Systemgenerated coupon codes dont
increase replication time with increased coupon codes
Export coupons and their respective codes using the exportCoupons and exportCouponCodes pipelets
Data Extension Within Marketing Cloud
Set up a data extension in Marketing Cloud to house coupons Set up the data extension schema to include the SubscriberKey
CouponCode and EmailAddress fields
If using ClaimRow function include the IsClaimed boolean and ClaimedDate fields in the data extension schema
For updating the coupon data extension with redemption details include the Order Date OrderId fields in the data extension
schema
Export the source coupon pool data via Commerce Cloud Business Manager Import this data into a Marketing Cloud data extension
via an Import Activity in Automation Studio
Coupon codes can be preassigned to defined subscribers before an email send using a Query Activity in Automation Studio
Alternatively coupon codes can be claimed at the time of email send by using the ClaimRow function in the email creative
Manually export the historical collection of coupon redemptions from Commerce Cloud Business Manager Import these redemptions
into the Marketing Cloud coupon redemption data extension via a separate Import Activity in Automation Studio
Configure the Marketing Cloud coupon redemption data extension to support asynchronous updates via the Marketing Clouds

Data Events REST API

The coupon redemption data captured from Commerce Cloud includes shoppers who redeemed coupons via the storefront
Configure a separate activity to identify which coupons shoppers havent redeemed coupons and drive the appropriate marketing
journeys such as coupon reminders
Storefront Extension to Push Redemptions to Marketing Cloud
Create and configure a Commerce Cloud service to push captured coupon redemptions to Marketing Cloud
Capture coupon redemptions by inspecting completed orders at the end of the checkout process

Redeem Coupons

Integration Reference Implementation

Push coupon redemptions to Marketing Cloud via the Commerce Cloud service after order processing transactions have completed
Audit and log service interactions to capture service call performance and failures
Scalability
If the storefront is prone to high bursts of traffic discuss support for high traffic usecases with your Marketing Cloud Success Manager
High bursts of traffic include increased coupon redemption scenarios and flash sales of many orders per second

To ensure a scalable capture of coupon redemptions by Marketing Cloud use the Asynchronous Insert Data Event REST API which

supports request queuing

Related Content
Review earlier steps in this solution
Coupon Redemption Solution Workflow
Take the next steps in this implementation
Integration Reference Implementation
Configurations

See Also
Asynchronous Call Considerations in Marketing Cloud

BC Campaigns and Qualifiers Playbook

BC Coupon Codes Playbook

Couponsxsd import and export schema
Managing SystemGenerated Codes

Integration Reference Implementation
Integration Reference Implementations are developer enablement frameworks that accelerate crosscloud integration by providing

code configuration and implementation patterns Use the Marketing Cloud reference implementation for BC Commerce to redeem

coupons

After you sign in to GitHub the Marketing Cloud reference implementation for BC Commerce facilitates the platform customizations

necessary to integrate Commerce Cloud and Marketing Cloud
Before implementing consider conducting an environmental audit with a Marketing Cloud representative to confirm that you meet the
prerequisites for the use case
Before implementing the configurations sign in to GitHub and set up the Marketing Cloud reference implementation using the GitHub

repository wiki instructions Get started with Commerce API

General Information About Reference Implementations
Reference implementations are developerenablement frameworks that accelerate crosscloud integration by providing code
configuration and implementation patterns
Reference implementations support a core set of use cases that you can extend to support other customerdriven use cases

Redeem Coupons

Configurations

Reference implementations require customization and configuration in Marketing Cloud and BC Commerce Cloud The Commerce

Cloud storefront requires customization as part of the integration
Implementation and validation require operational and administrative experience with Marketing Cloud

Plan your implementation as you would any other BC Commerce Cloud feature by collecting requirements capturing work tasks

and making task estimates
What Your Company Can Do with This Reference Implementation
Accelerate integration time to market for Commerce Cloud and Marketing Cloud
Simplify and centralize email authoring and content management
Improve marketing agility efficiency and campaign performance
Personalize engagement based on past purchases and shopper interactions
Capture revenue from cart search or browse abandonments by implementing storefront behavior monitoring and behavioral email
delivery

Connect Commerce Cloud and Marketing Cloud using existing REST APIs exposed by Commerce and Marketing Clouds

Enable oneway sharing of customer catalog and order data from BC Commerce Cloud to Marketing Cloud using the reference

implementations data feed framework
Trigger transactional email sends from Commerce Cloud that Marketing Cloud delivers
Note The Coupon Redemption usecase described in this solution kit isnt included with the Marketing Cloud reference
implementation This solution kit provides guidance on how to extend the Marketing Cloud reference implementation to support
this usecase

Related Content
Review earlier steps in this solution
Coupon Redemption Solution Workflow
Design Considerations
Take the next steps in this implementation
Configurations

Configurations
Use these configurations to redeem coupons
Configuration Steps
Set up a data extension in Marketing Cloud to house coupon redemptions Set up the data extension schema to include these fields
Coupon Code Date OrderId and Email
The redemption represents the email address of the user who redeemed the coupon
This schema adheres to how Commerce Cloud Business Manager exports coupon redemptions
This behavior follows the coupon redemption schema that Business Manager exports
Consider creating the data extension with a data retention policy to automatically remove legacy data thats no longer actionable
from the data extension

Redeem Coupons

Configurations

Export the relevant historical collection of coupon redemptions from Commerce Cloud Business Manager To use historical coupon
redemption data export the relevant and actionable coupon redemptions from Business Manager in csv format
Import the Commerce Cloud coupon redemption data into the newly created Marketing Cloud coupon redemption data extension
This activity seeds the redemptions that are now available to Marketing Cloud
Use this data extension to look up redemptions by coupon and customer
To maintain a consistent and predictable level of performance prune legacy redemption data from this data extension
Remove legacy data that is no longer actionable from the data extension
To incrementally update the Marketing Cloud coupon redemptions data extension create a service in Commerce Cloud
Configure the service to point to your Marketing Cloud instance
The service adds newly captured coupon redemptions to the coupon redemption data extension

The service uses Marketing Clouds Data Events API

Extend the Commerce Cloud storefront to inspect completed orders for coupon redemptions
Extend the checkout process to identify redeemed coupons attached to placed orders
Perform this check after the order transaction has completed so that the transaction and core checkout logic isnt disturbed

Send the coupon redemptions to Marketing Cloud via its Data Events REST API as the redemptions are identified in completed orders

This call delivers the coupon redemption information to the Marketing Cloud coupon redemption data extension
Ensure that the call payload adheres to the coupon redemption data extension schema
Initiate the call after Commerce Cloud processes and completes the order transaction
To verify whether a coupon was redeemed use the coupon redemption data extension within a journey decision split

Look up redemptions within the data extension by coupon code and email address This action can require additional SQL query

activity in Automation Studio
For any subscribers who have redeemed coupons you can alter the subscribers journey path For example dont send a coupon
reminder or send a different coupon

Related Content
Review earlier steps in this solution
Coupon Redemption Solution Workflow
Design Considerations
Integration Reference Implementation

***