Product Recommendation
The AfterShip product recommendation feature allows you to showcase the most relevant products to your customers by analyzing various behaviors and criteria. To use this feature, you need to import a minimum of order and product resources into AfterShip.
This documentation outlines typical scenarios for utilizing production recommendation with Commerce API, and provides detailed instructions on how to utilize the API effectively in each case. For additional scenarios and further information, please refer to the index page.
This API documentation details the various methods available for selecting products for recommendation. These methods can be utilized for sending notifications and customizing branded tracking pages. This document specifically focuses on using these methods in these two contexts.
For a comprehensive overview of the product recommendation features, please refer to AfterShip Personalization API documentation.
1. Sending Notification
When editing the notification template in Flow Editing, you can select different methods for the product recommendation, and include the product infomation like photo and product URLs in the email templates.

2. Branded Tracking Page
When editing the branded tracking page, you can select different methods for the product recommendation, and include the product infomation like photo and product URLs in the email templates.

3. Required Fields for creating resources
3.1 Creating the order
Specific Required Fields for creating the order
Field | Description | Sample |
---|---|---|
items.*.source_product_id | A unique identifier for the product. | 24356476 |
items.*.source_variant_id | A unique identifier for the product variant. | 53235342 |
3.2 Specific required fields for different recommendation method
3.2.1 Best Sellers and Bought Together
Specific Required Fields for creating the product
Field | Description | Sample |
---|---|---|
source_id | A unique identifier for the product. | 24356476 |
variants.*.source_id | A unique identifier for the product variant. | 53235342 |
3.2.2 Based on product condition
Specific Required Fields for creating the product
Field | Description | Sample |
---|---|---|
categories | The categories associated with the product, used for filtering and search purposes. | mobile-phone |
tags | The tags associated with the product, used for filtering and search purposes. | mobile-phone |