---
title: 'Loyalty GraphQL'
url: 'https://info.srv.kowal.co/docs/magento/modules/loyalty/loyalty-graphql'
markdown: 'https://info.srv.kowal.co/docs/magento/modules/loyalty/loyalty-graphql.md'
lang: en
date: '2026-11-30'
description: 'Use the signed-in customer’s token to fetch their points balance, wallet and recent transactions in one query. Set history_limit to control how many entries appear.'
taxonomy:
  category:
    - docs
    - Magento
    - Loyalty
---

# Loyalty GraphQL

## Product page

[Loyalty & Rewards Suite — kowal.co](https://kowal.co/magento-2-loyalty-program-kowal-loyalty-rewards-suite)

## Description

A storefront can retrieve the signed-in customer’s loyalty summary, recent history and wallet in a single GraphQL query.

## For whom

For developers building a loyalty account screen in a headless storefront.

## Features

- Select the summary fields required by the screen.
- Limit recent transactions with history\_limit.
- Request wallet titles and asset types alongside the balance.

## Installation

This component is included in Loyalty & Rewards Suite. Follow the [suite installation instructions](https://info.srv.kowal.co/docs/magento/modules/loyalty).

## Configuration

1. Authenticate as a test customer and send the customer bearer token with the request to `/graphql`.
2. Call `kowalLoyaltyCustomer` with the numeric store\_id. Set history\_limit to the number of recent transactions needed; its default is 20.
3. For a balance screen, request available\_points and pending\_points from summary. Add history or wallet when the screen needs them.

## Requirements / notes

Customer identity comes from the authenticated request. The store\_id argument selects the store context for loyalty data.

## FAQ

**Why does the query ask for customer authentication?**

The resolver needs a signed-in customer to identify whose account to read. Use the token for the test participant.

## Verify the installation

```sh
bin/magento module:status Kowal_LoyaltyGraphQl
```

For store ID 1, try `{ kowalLoyaltyCustomer(store_id: 1, history_limit: 3) { summary { available_points pending_points } history { amount status } } }`. Substitute your store ID and compare the result with that customer’s loyalty account.

---

## Navigation

- Parent: [Loyalty & Rewards Suite](https://info.srv.kowal.co/docs/magento/modules/loyalty.md)
- Previous: [Loyalty REST API](https://info.srv.kowal.co/docs/magento/modules/loyalty/loyalty-api.md)
- Next: [Loyalty Import / Export](https://info.srv.kowal.co/docs/magento/modules/loyalty/loyalty-import-export.md)
