destination
Destination values
type • enum required
type • enum requiredThe type of destination. Accepts screen , route , dynamic and web as values
screen , route , dynamic and web as valuesid • string required
id • string requiredThe id of the screen id of the destination
id of the destinationUse the destination to support interactions that add 1 or more products to the cart.
{
"type": "screen",
"id": "9M5lEgg5up"
}Use the destination with type: "route" to automatically route to common destinations in the app
{
"type": "route",
"id": "cart"
}Routes accepted include cart, account, search, collection, product, home
Use the destination with type: "dynamic" to automatically route to common destinations in the app
{
"type": "dynamic",
"id": "{customer.tags.includes('vip') ? 'screenid-1': 'screenid-2'}" //always the screen id
}Use the destination with type: "web" to automatically route to common destinations in the app
{
"type": "web",
"id": "https://tapcart.com" //the URL you want in the app
}
Navigating to known screens usingtypeUpon invoking the
addToCartfunction, the app will reference this setting to determine if the user should be automatically navigated to the cart, or left where they are.
Updated 6 months ago
