The "Product purchase" data source lets you use information from any purchase as long as the sendout it is included in was started by a "Product purchase" automation.
You can use this data to show details such as receipt information, totals and the products the customer purchased in a sendout, allowing you to create more relevant post-purchase communication such as:
- product recommendations
- care instructions
- follow-up messages based on what a customer bought
Before you get started
To use the Product purchase data source, your automation must use the Product purchase trigger.
How to use Product purchase data
- Create an automation using the Product purchase trigger
- Add an email or other message that uses Design Studio
- Open the personalization or data source picker
- Select Product purchase under the automation trigger data
- Select the fields you want to use in your message
The Product purchase data source contains both purchase-level information and product-level information.
Purchase-level information
These fields describe the purchase as a whole:
| Field | Description |
|---|---|
| Receipt number | The receipt number of the purchase. |
| External ID | The ID of the receipt in the customer's own system. |
| Purchase date | The date and time when the purchase was registered. |
| Total amount | The total amount of the receipt. |
| Total discount amount | The total discount on the receipt. |
| Currency | The currency used for the purchase amounts. |
| Store | Information about the store where the purchase was made, including store name and other store details. |
The data source also contains Product purchase, which is the list of products purchased on the receipt.
Showing purchased products
The Product purchase field contains a list of purchased products. Because a purchase can contain multiple products, use a repeater when you want to display all the products in your message.
See here to learn how to work with repeaters in Design Studio.
For example, if a customer bought three different products, the repeater will create three rows, one for each product. If the customer bought two of the same product, it is shown as one row with "Quantity" of 2.
Product-level information
Inside the repeater, you can use the following fields for each product:
| Field | Description |
|---|---|
| SKU | The SKU of the purchased product. |
| Article number | The article number of the purchased product. |
| Quantity | The number of units purchased. |
| Unit price | The price paid for one unit, after discount. |
| Line total amount | The total amount for the product line. |
| Discount amount | The discount applied to the product line. |
| Discount percent | The discount on the product line expressed as a percentage. |
| Brand | The brand of the purchased product. |
| Size | The size of the purchased product. |
Example
You could use a repeater to create a product block like this:
T-shirt
SKU: 12345
Quantity: 2
Unit price: 250 SEK
Discount: 50%
Sweater
SKU: 67890
Quantity: 1
Unit price: 500 SEK
Each purchased product line on the receipt gets its own row in the repeater.
Returned products are not shown.
Important to know
Here are some important things to keep in mind concerning use of the Product purchase data source.
Only purchased products are included
Return lines are not included in the product list.
This means that if a receipt contains a purchased product and a returned product, only the purchased product is available in the Product purchase list.
The full purchase is available, not only the trigger match
The Product purchase data source contains all purchased products on the receipt.
For example, if the Product purchase trigger is configured to start only when a customer buys from a specific category, the data source still contains the other products purchased on the same receipt.
Purchase totals describe the full receipt
Total amount and Total discount amount describe the whole receipt.
Because of this, the purchase-level totals may not always equal the sum of the products shown in the Product purchase repeater.
For example, a receipt can contain both purchases and returns. Returned products are removed from the product list, but the receipt totals still represent the receipt as a whole.
Currency
All amounts are shown in the currency the purchase was made in, for example NOK for a purchase in a Norwegian store. Use the Currency field to show the currency code next to the amounts.
What is not included
The first version of Product purchase does not include all available product information:
- Product images
- Product page links
- Localized colour
- Localized category
- Pre-built purchase modules in Design Studio
- Returns that happen after an automation has already started
- Product description
- Spare fields
These capabilities may be added in the future.
Product purchase and existing automations
The Product purchase data source is additive. Existing purchase data and existing automations are not changed by introducing this data source.
Saved templates and existing automations continue to work as before.
Example use cases
The Product purchase data source can be used for example to:
- Send care instructions for a purchased product.
- Recommend related products after a purchase.
- Build post-purchase review or satisfaction communication.
- Personalize a message based on the brand, size or other product information.
The exact fields available depend on the Product purchase data source described above.