Examine earning rules
The examine earning rule endpoint estimates the points and benefits a member would receive for a given scenario. You choose a trigger mode:ALL: Evaluates every active earning rule across the member’s programs at once, useful for showing all the available ways a member can earn points in a single call.SPECIFIC: Evaluates only the earning rules tied to one event – an order being paid, a customer entering a segment, or a custom event. This mode requires the matching context object for that event (for example, order line items forcustomer.order.paid).
Examine rewards
This endpoint evaluates every reward assigned to a member’s active program memberships and reports whether each one is currently redeemable on each of the member’s cards. You can scope the evaluation to a single membership withmember_id.
Each reward on each card is classified as:
AVAILABLE: The member has an active card for the reward’s card definition, the card balance covers the resolved point cost, and the reward assignment has stock.UNAVAILABLE: Accompanied by one or more structured reasons, such asinsufficient_balance(with the exact points still missing),out_of_stock,no_matching_cost,no_card_for_cost, orreward_inactive.
Related resources
- Loyalty v2 API: Overview for the full Loyalty v2 API map.
- Earning rules: Overview for how to configure rules for gaining points and benefits.
- Rewards: Overview for how to manage rewards.
- Members: Overview for overall member management.
- Integrate loyalty v2 for worked examples of both examine endpoints.

