action

Common Object

Destination values

typeenum required

The type of destination. Accepts screen and web as values

dataobject

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": "open/screen",
  "data": {
    "destination": {
      "type": "screen",
      "id": "9M5lEgg5up"
    },
    "presentation": {
      "transition": "default",
      "style": "default"
    }
  }
}
🛒

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.