Loyalty REST API
Product page
Loyalty & Rewards Suite — kowal.co
Description
Read a customer’s loyalty summary, transaction history, active wallet and storefront content context through four Magento REST endpoints.
For whom
For teams connecting authorised back-office applications to customer loyalty data.
Features
- Read enrollment and earning eligibility.
- Retrieve transaction history and wallet items.
- Read the programme context used for personalised content.
Installation
This component is included in Loyalty & Rewards Suite. Follow the suite installation instructions.
Configuration
- Use a Magento integration authorised for the customer resource,
Magento_Customer::customer. - Send an authenticated GET to
/rest/V1/kowal/loyalty/customer/{customerId}/summary/{storeId}, replacing both placeholders with numeric IDs. - For the same customer and store, replace
summarywithhistory,walletorcontentto read the corresponding data.
Requirements / notes
The service uses the store ID to resolve the website and programme. Check the store context when a valid customer ID returns an unexpected balance.
FAQ
How can I distinguish a zero balance from a customer who has not enrolled?
Inspect the enrollment flag along with the available and pending point balances in the summary.
Verify the installation
bin/magento module:status Kowal_LoyaltyApi
Read the summary for a known test participant and compare it with Participants in Admin. Then read history in the same scope and match a known transaction to the point ledger.