destination

Destination values

typeenum required

The type of destination. Accepts screen , route , dynamic and web as values

idstring required

The id of the screen id of the destination



Use 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 using type

Upon invoking the addToCart function, the app will reference this setting to determine if the user should be automatically navigated to the cart, or left where they are.