Virtual relationships
How to leverage the Jason Web Token info to create rules
Last updated
How to leverage the Jason Web Token info to create rules
Last updated
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 , , object or the array of or objects to fetch the data keeping the jwt_*
prefix in the outcome payload and API interaction.
At the moment this relationships are available for the and resources only (more to come, keep and eye on the for any update).