Virtual relationships
How to leverage the JSON Web Token info to create rules
The current Core API integration enables you create rules' conditions based on some information contained in the currently issued JWT token, such as:
jwt_customer
The customer associated to the current JWT.
jwt_user
The user associated to the current JWT.
jwt_markets
The list of markets associated to the current JWT.
jwt_stock_locations
The list of stock locations associated to the current JWT.
jwt_custom_claim
The custom claim attached to the current JWT (if any).
These relationships are virtual, meaning that, behind the scenes, the integration calls the related customer, user, custom claim object or the array of market or stock location objects to fetch the data keeping the jwt_*
prefix in the outcome payload and API interaction.
Last updated