Thankly SDK for JavaScript
    Preparing search index...

    Interface Context

    What the API knows about the situation an experience is generated for — cart, history, trip, location.

    interface Context {
        cart?: Cart;
        history?: History;
        topic?: Topic;
        trip?: Trip;
    }
    Index
    cart?: Cart

    The customer's current cart.

    history?: History

    The customer's prior orders.

    topic?: Topic

    Subject the experience should cover.

    trip?: Trip

    Travel context, when the experience is trip-related.