Run loyalty programs by API
Create points or cashback programs, enroll members, credit and debit balances, manage tiers and vouchers, and react to loyalty events with webhooks.

How it works
curl --request POST \
--url https://api.brevo.com/v3/loyalty/config/programs \
--header 'api-key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '{
"name": "VIP Club",
"description": "Earn points on every purchase and unlock exclusive rewards."
}'
Set up a points loyalty program with Silver and Gold tiers.
curl --request POST \
--url https://api.brevo.com/v3/loyalty/balance/programs/27xxdd7a-.../transactions \
--header 'api-key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '{
"contactId": 12345,
"balanceDefinitionId": "a74cxx1d-4a96-4xx3-804e-dc3xxd9axxeb",
"amount": 50,
"autoComplete": false,
"meta": {
"reason": "signup_bonus"
}
}'
Use the loyalty_begin_transaction tool to credit 50 points to contact 12345 in program PID with balance definition BDID, keeping the transaction as a draft, then complete it with loyalty_complete_transaction.
curl --request GET \
--url 'https://api.brevo.com/v3/loyalty/balance/programs/27xxdd7a-.../subscriptions/12345/balances?includeInternal=false' \
--header 'api-key: YOUR_API_KEY'
Show this member's loyalty balance and recent transactions.
The cURL examples use shortened program and balance IDs.
Setup steps
Create and configure
Create the program with POST /v3/loyalty/config/programs, define a balance definition such as Purchase Points, and add a tier group and tiers if you want tiers. Then publish it: a new program is inactive and cannot enroll members until published.
Enroll members
Enroll a contact that already exists in Brevo with POST /v3/loyalty/config/programs/{pid}/subscriptions. A transaction for a contact who is not subscribed to the program returns a 422, so enroll the contact first.
Credit and debit in two phases
Create a transaction in draft, then complete it when the order is confirmed or cancel it. Use autoComplete for instant bonuses.
Show and react
Read the current balance, available vouchers and transaction history. No single endpoint returns a member's current tier: compute it from the balance and the tier group's tiers. Use the balance_value_updated webhook instead of polling the transaction endpoint.



