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 field
Description

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).

At the moment this relationships are available for the price and SKU resources only (more to come, keep and eye on the Core API reference for any update).

Last updated