Loyalty API and webhooks for your POSConnect your system to Volví.

A REST API and webhooks so your point of sale, ordering app or CRM can talk to your customers' cards.

Stamp from your register

Every sale on your POS adds stamps or points. No scanning needed.

“Your order is ready”

A notification that lands on that customer's lock screen via Apple Wallet, Google Wallet and web.

Know instantly

Webhooks when someone joins, completes their card or redeems their reward.

Authentication

Create a key in Dashboard → Integrations. Each key belongs to one business and is shown only once. Send it with every request:

bash
curl https://api.getvolvi.com/v1/business \
  -H "Authorization: Bearer vk_live_…"

Base URL: https://api.getvolvi.com. Everything goes in and out as JSON, and every response carries its object in data. Dates are ISO 8601 in UTC; the business's time zone comes in GET /v1/business.

The customer object

In routes, {customer} is the 6-character code shown under the card's QR code, the numeric id or the 22-character token from the card's link (card_url). Six characters of the code alphabet are looked up as a code first, so a code made only of digits is never mistaken for an id. Store your own identifier in external_id to find them later; consent_at tells you when they accepted the processing of their data.

json
{
  "id": 1842,
  "code": "K7P2QX",
  "name": "Marta Gómez",
  "phone": "809-555-0101",
  "email": "marta@example.com",
  "external_id": "CRM-77",
  "card_id": 0,
  "program_type": "stamps",
  "stamps": 6,
  "points": 0,
  "goal": 8,
  "rewards_available": 0,
  "rewards_redeemed": 2,
  "reward_text": "Un café americano gratis",
  "milestones": [{ "at": 5, "reward": "Un postre gratis" }],
  "milestone_rewards": [],
  "last_visit_at": "2026-10-11T18:20:04.000Z",
  "consent_at": "2026-03-02T15:11:40.000Z",
  "card_url": "https://getvolvi.com/t/…",
  "phone_e164": "+18095550101",
  "birthday": "1990-02-11",
  "card": { "id": 0, "title": "Café Arriero" },
  "visits": 22,
  "created_at": "2026-03-02T15:11:40.000Z",
  "wallet": { "apple": true, "google": false }
}

On points-by-amount cards the customer also has points_value (what their points are worth), currency, min_redemption and next_expiration ({points, at}), and goal is null.

Endpoints

GET/v1/business

Your program, in data: name, logo_url, program_type (stamps or points), goal, reward_text, points_per_visit, time zone, the sign-up link and cards, each card with its own program (0 is the main one).

PATCH/v1/business

PATCH /v1/business with links (up to 3 { label, url }, label up to 30 characters and an https url) changes the card's links and refreshes every pass; GET /v1/business returns them in data.links. If the url carries {card}, each customer gets their link_token there: an opaque random token (not their card's, nor their name, phone or email).

bash
curl -X PATCH https://api.getvolvi.com/v1/business \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"links":[{"label":"Ver menú y pedir","url":"https://menu.cuadre.do/mika?c={card}"}]}'

GET/v1/customers

List or search customers. Filters: phone, email, code, external_id. Phones are compared as numbers, however they were typed (809-555-0101, +1 809 555 0101…); without a country code the business's country is assumed. Paginate with limit (max. 100) and starting_after (the last id you received).

bash
curl "https://api.getvolvi.com/v1/customers?phone=809-555-0101" -H "Authorization: Bearer vk_live_…"

POST/v1/customers

Sign up a customer from your system (they get their welcome stamp), or get back the one that already exists with created: false: we look them up by external_id, then by phone (any format), then by email. name is only needed to create them. If they accepted the processing of their data at your register or in your app, send consent: {"accepted": true} (optionally with at and source). Send them the card_url by SMS or WhatsApp so they can save it to their Wallet.

bash
curl -X POST https://api.getvolvi.com/v1/customers \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"name":"Marta Gómez","phone":"809-555-0101","external_id":"CRM-77","consent":{"accepted":true,"source":"pos"}}'

POST/v1/customers/resolve

Finds the customer of a card scanned or typed at your register. scan takes the card's link (what its QR code holds, with or without parameters), its token or the 6-character code, in upper or lower case. Returns 404 not_found if it isn't a card of your business.

bash
curl -X POST https://api.getvolvi.com/v1/customers/resolve \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"scan":"https://getvolvi.com/t/…"}'

POST/v1/customers/{customer}/link_token/rotate

Gives the customer a new link_token (say, they shared their link): the old one stops resolving, their passes refresh and customer.updated is sent with fields: ["link_token"]. Answers data and link_token.

GET/v1/customers/{customer}

A single customer by code, id or token.

PATCH/v1/customers/{customer}

Update name, phone, email, birthday or external_id. The card on their phone updates automatically.

DELETE/v1/customers/{customer}

Deletes the customer with their card, stamps, points and history, just like Delete in the dashboard; their Wallet card stops updating. This can’t be undone. Sends the customer.deleted webhook; repeating it returns 404.

POST/v1/customers/{customer}/visits

Record a purchase: adds units stamps (or units × points per visit). If it completes the card, the response includes unlocked and the customer gets their reward notification. Send your order number in external_ref (it comes back in the visit.recorded webhook) and use it as the Idempotency-Key too: retries never stamp twice, even when they arrive at the same time.

bash
curl -X POST https://api.getvolvi.com/v1/customers/K7P2QX/visits \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -H "Idempotency-Key: visit-1001" \
  -d '{"units":1,"external_ref":"1001"}'

On points-by-amount cards (program_type: amount) send amount (the eligible amount, up to 2 decimals) instead of units: it adds floor(amount × points_per_amount) points that expire after points_expire_days days. The response has points_earned, points, points_value and expires_at; without amount, 400 amount_required.

bash
curl -X POST https://api.getvolvi.com/v1/customers/K7P2QX/visits \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -H "Idempotency-Key: visit-1002" \
  -d '{"amount":1250.00,"external_ref":"1002"}'

{ "data": { "points": 7777, "points_value": 777.7, "…": "…" }, "points_earned": 1250, "points": 7777, "points_value": 777.7, "expires_at": "2027-10-22T15:04:05.000Z" }

If the card has rewards on the way (milestones, up to 3 before the goal) and the visit reaches one, the response includes milestones_unlocked with { at, reward }, the customer gets a notification and milestone.unlocked is sent. The ones the customer won and hasn't picked up are in the customer's milestone_rewards.

json
{ "data": { "stamps": 5, "milestone_rewards": [{ "at": 5, "reward": "Un postre gratis", "unlocked_at": "2026-10-24T18:20:04.000Z" }], "…": "…" },
  "unlocked": 0, "milestones_unlocked": [{ "at": 5, "reward": "Un postre gratis" }] }

Minimum purchase: if the card has a min_visit_amount (shown in GET /v1/business and on every customer), send the amount charged in amount. A smaller purchase answers 400 below_min_visit_amount with min_visit_amount and doesn’t count; without amount the visit counts as always.

json
{ "error": { "code": "below_min_visit_amount", "message": "La compra no llega al mínimo para sumar en esta tarjeta (1000.00)",
  "min_visit_amount": 1000, "amount": 850 } }

POST/v1/customers/{customer}/visits/reverse

Undoes a sale's visits by its external_ref (voided sale, stamp by mistake): all of them or units visits, with an optional reason. Takes off the stamps (or per-visit points) and the visits and puts last_visit_at back to the previous visit; if those stamps completed a reward that is still available the reward comes off, and if it was already redeemed it answers 409 reward_already_redeemed. The undone visit stops counting (stamp_reversed / points_reversed) and an adjust line «Corrección: …» stays. Answers stamps_reversed, points_reversed, visits_reversed, rewards_removed and already_reversed (repeating it once the sale is undone does nothing); without that visit, 404 nothing_to_reverse. On a points-by-amount card it is the same as points/reverse with kind: earn. The Wallet card updates without a notice and visit.reversed is sent.

bash
curl -X POST https://api.getvolvi.com/v1/customers/K7P2QX/visits/reverse \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -H "Idempotency-Key: void-1001" \
  -d '{"external_ref":"1001","reason":"Venta anulada"}'

{ "data": { "stamps": 3, "…": "…" }, "already_reversed": false, "stamps_reversed": 1, "points_reversed": 0, "visits_reversed": 1, "rewards_removed": 0 }

POST/v1/customers/{customer}/visits/adjust

Manual correction without a sale: negative units (visits to take off) and a reason. Takes off those visits' stamps or points with the same reward rule as visits/reverse, but the visits stay. Answers like visits/reverse. On points-by-amount cards use points/adjust.

bash
curl -X POST https://api.getvolvi.com/v1/customers/K7P2QX/visits/adjust \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"units":-1,"reason":"Sello de prueba"}'

POST/v1/customers/{customer}/points/redeem

Pays with points on a points-by-amount card: points, or amount (uses ceil(amount ÷ point_value) points), with your external_ref. It takes the points that expire first and answers points_redeemed, amount_redeemed, points and points_value. Errors: below_min_redemption, insufficient_points, not_amount_card.

bash
curl -X POST https://api.getvolvi.com/v1/customers/K7P2QX/points/redeem \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -H "Idempotency-Key: pay-1003" \
  -d '{"amount":80.00,"external_ref":"1003"}'

{ "data": { "…": "…" }, "points_redeemed": 800, "amount_redeemed": 80, "points": 6977, "points_value": 697.7 }

POST/v1/customers/{customer}/points/reverse

Reverses a sale's movement by its external_ref. kind: redeem gives the redemption's points back (those of lots that already expired don't come back). kind: earn takes back the points the sale earned, all of them or points for a partial refund; if they were already spent, the balance stops at 0 and points_unreversed says how many couldn't be taken back. Repeating it does nothing (already_reversed: true); without such a movement, 404 nothing_to_reverse. visits/reverse undoes the whole sale with the same rule.

bash
curl -X POST https://api.getvolvi.com/v1/customers/K7P2QX/points/reverse \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"kind":"earn","external_ref":"1002","points":300}'

{ "data": { "…": "…" }, "kind": "earn", "points_reversed": 300, "points_unreversed": 0, "already_reversed": false, "points": 6677, "points_value": 667.7 }

POST/v1/customers/{customer}/points/adjust

Manual adjustment or migration, with no notice to the customer, with a reason. Positive points create a lot that expires at expires_at (or after the card's days); negative ones take from the points that expire first.

bash
curl -X POST https://api.getvolvi.com/v1/customers/K7P2QX/points/adjust \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"points":6527,"reason":"Migración","expires_at":"2027-05-01T00:00:00Z"}'

GET/v1/giftcards/settings

What the business sells: enabled, amounts (fixed amounts), custom ({min, max} or null) and expire_months (null = never expire), in currency.

POST/v1/giftcards

Sells a gift card (201): amount (one of the amounts or within custom), and optional external_ref (your sale), recipient (name, phone, email), message, send_email (emails it to recipient.email) and cashier. Returns the card: id, code, amount, balance, currency, status, expires_at, card_url and qr (what goes in the receipt's QR), plus kind, format, earns_rewards, batch_id, customer_ref, forfeited, activated_at and void_reason. With kind: voucher it hands out a single-use voucher: the first payment uses it up whole and the settings' amounts don't apply. Optional: format (digital, printed or physical), earns_rewards (whether paying with it earns on the loyalty card; yes by default for gift cards, no for vouchers), customer_ref (your customer id, for personal vouchers) and expires_at (YYYY-MM-DD, valid until the end of that day in the business's time zone, or a date and time with offset; null = never expires; without it, the settings' months for gift cards). To migrate cards from another system send their code: it's kept, any amount is accepted and so is a past date (it arrives expired and PATCH brings it back). Errors: giftcards_disabled, invalid_amount, invalid_expiry, 409 code_in_use.

bash
curl -X POST https://api.getvolvi.com/v1/giftcards \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -H "Idempotency-Key: gift-2001" \
  -d '{"amount":1000,"external_ref":"2001","recipient":{"name":"Laura","email":"laura@example.com"},"message":"¡Feliz cumpleaños!","send_email":true}'

{ "data": { "id": 41, "code": "GQ7M-K2PD-9XTR", "amount": 1000, "balance": 1000, "currency": "DOP", "status": "active", "expires_at": null, "card_url": "https://getvolvi.com/g/…", "qr": "https://getvolvi.com/g/…", "…": "…" } }

GET/v1/giftcards/{code}

A card by its code (with or without dashes), by what the scanner reads (its /g/… URL) or by its token. Without it, 404 not_found.

POST/v1/giftcards/{code}/redeem

Pays with the card: amount (partial if you like) and your external_ref. Returns amount_redeemed, balance and forfeited. A single-use voucher (kind: voucher) is used up whole in that payment: amount can't exceed its value and forfeited is what that sale didn't use (0 on gift cards). Errors: 400 insufficient_balance (with balance), giftcard_expired, giftcard_void, giftcard_inactive (physical card not loaded) and voucher_used. The card is locked while it's charged: two payments at once never take it below zero.

bash
curl -X POST https://api.getvolvi.com/v1/giftcards/GQ7M-K2PD-9XTR/redeem \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -H "Idempotency-Key: pay-2002" \
  -d '{"amount":350,"external_ref":"2002"}'

{ "data": { "balance": 650, "…": "…" }, "amount_redeemed": 350, "balance": 650, "forfeited": 0 }

POST/v1/giftcards/{code}/reverse

Undoes a movement of your sale. kind: redeem gives back what that sale took, all of it or amount (never more than it took; repeating it returns already_reversed); a voucher comes back whole and forfeited_reversed says what it had lost. kind: issue voids the card that sale sold if nobody used it (if it was used, 409 giftcard_in_use); a physical card loaded at that sale goes back to not loaded (inactive), ready to be sold again. Without such a movement, 404 nothing_to_reverse.

bash
curl -X POST https://api.getvolvi.com/v1/giftcards/GQ7M-K2PD-9XTR/reverse \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"kind":"redeem","external_ref":"2002"}'

{ "data": { "…": "…" }, "kind": "redeem", "amount_reversed": 350, "already_reversed": false, "balance": 1000, "forfeited_reversed": 0 }

GET/v1/giftcards

Lists cards by id, with filters status (active, redeemed, expired, void, inactive), external_ref, kind, format, batch_id and customer_ref. Paginate with limit and starting_after.

PATCH/v1/giftcards/{code}

Changes the expiry: expires_at (a future date or date and time, or null so it never expires). An expired card is active again with the balance it had when it expired (amount_restored). A voided one returns 400 giftcard_void.

bash
curl -X PATCH https://api.getvolvi.com/v1/giftcards/7WQK-M3RD-PZ8N \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"expires_at":"2027-06-30"}'

{ "data": { "status": "active", "balance": 200, "expires_at": "2027-07-01T03:59:59.000Z", "…": "…" }, "amount_restored": 200 }

POST/v1/giftcards/{code}/activate

Loads a physical card without balance (status: inactive) when you sell it: amount (one of the amounts or within custom), external_ref (your sale) and optional cashier, recipient, message and send_email. It expires on its date or, without one, after the settings' months. Repeating the same sale returns already_activated; a card already loaded, 409 giftcard_already_active. Undo it with reverse and kind: issue.

bash
curl -X POST https://api.getvolvi.com/v1/giftcards/5U3U-TQ3T-Z54R/activate \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -H "Idempotency-Key: card-2003" \
  -d '{"amount":1000,"external_ref":"2003","cashier":"Ana"}'

{ "data": { "status": "active", "balance": 1000, "format": "physical", "activated_at": "…", "…": "…" }, "amount_activated": 1000, "already_activated": false }

POST/v1/giftcards/{code}/void

Voids a card that still has balance (unused, partly used or not loaded): reason (lost, stolen or cancelled) and an optional note. Its balance goes to 0 (amount_voided). Repeating it returns already_voided; a card without balance, 400 giftcard_redeemed.

bash
curl -X POST https://api.getvolvi.com/v1/giftcards/GQ7M-K2PD-9XTR/void \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"reason":"lost","note":"Reportada por el cliente"}'

Vouchers: single-use vouchers, printed vouchers and physical cards are created in batches. Every card of a batch is just another card (batch_id): it's looked up, paid with, reversed and voided with the routes above.

POST/v1/giftcard-batches

Creates count vouchers or cards at once (1 to 1,000; 201): kind (voucher or giftcard), format (printed, physical or digital), amount (the value of each; on physical it can be left out and then they're created not loaded, inactive, to be loaded when sold with activate) and optional expires_at, description (printed on them), earns_rewards, customer_ref and external_ref. Returns the batch with counts by status (inactive, active, redeemed, expired, void), value_outstanding, value_redeemed, value_forfeited and value_loaded. Use Idempotency-Key.

bash
curl -X POST https://api.getvolvi.com/v1/giftcard-batches \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -H "Idempotency-Key: lote-77" \
  -d '{"kind":"voucher","format":"printed","amount":200,"count":500,"expires_at":"2027-03-31","description":"2x1 en café"}'

{ "data": { "id": 12, "kind": "voucher", "format": "printed", "amount": 200, "count": 500, "earns_rewards": false, "status": "active",
  "counts": { "inactive": 0, "active": 500, "redeemed": 0, "expired": 0, "void": 0 }, "value_outstanding": 100000, "…": "…" } }

GET/v1/giftcard-batches

Lists batches by id, with filters kind, format and external_ref. Paginate with limit and starting_after.

GET/v1/giftcard-batches/{id}

A batch, with its cards counted by status and the balance they still hold (value_outstanding).

GET/v1/giftcard-batches/{id}/cards

A batch's cards in order, with a status filter. Paginate with limit (max 100) and starting_after.

PATCH/v1/giftcard-batches/{id}

Changes the expiry of every card of the batch that isn't voided (expires_at, or null); expired ones come back with their balance. Returns cards_updated and cards_reactivated.

POST/v1/giftcard-batches/{id}/print-link

A signed link to print the batch, without your key and valid for 30 minutes: {url, expires_at}. layout: sheet (a Letter or A4 page with 10 vouchers: the business's logo or name, value, code, QR to its /g/ page, expiry and description), cards (one CR80 card per page, for card printers) or csv (the file, with code, qr_url, amount, expires_at and currency). It prints the ones that can still be used or loaded.

bash
curl -X POST https://api.getvolvi.com/v1/giftcard-batches/12/print-link \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"layout":"sheet"}'

{ "data": { "url": "https://getvolvi.com/print/bonos/12-…?layout=sheet", "expires_at": "…", "layout": "sheet", "csv_url": "…" }, "url": "…", "expires_at": "…" }

POST/v1/giftcard-batches/{id}/void

Voids every card of the batch nobody has used (reason: lost, stolen or cancelled); the ones already used keep their balance. Returns the batch, cards_voided and amount_voided.

POST/v1/customers/{customer}/redeem

Hand out an available reward and get the updated customer back. Returns 400 no_reward_available if they have no rewards to claim. Takes external_ref and Idempotency-Key, like /visits.

bash
curl -X POST https://api.getvolvi.com/v1/customers/K7P2QX/redeem \
  -H "Authorization: Bearer vk_live_…" -H "Idempotency-Key: redeem-1001"

To hand out a reward on the way, send milestone with its number of stamps or points (at). It comes off milestone_rewards and milestone.redeemed is sent; if the customer doesn't have it, 400 no_milestone_reward. Undoing visits that had won it removes it too while it's still unclaimed (milestone_rewards_removed).

bash
curl -X POST https://api.getvolvi.com/v1/customers/K7P2QX/redeem \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -H "Idempotency-Key: milestone-1001" \
  -d '{"milestone":5,"external_ref":"1001"}'

POST/v1/customers/{customer}/notify

A notification to one customer, e.g. “Your order is ready”. It lands on their lock screen via Apple Wallet, Google Wallet and web notification, and stays on their card. Title up to 60 characters, message up to 180. Maximum 10 notifications per customer every 24 hours.

bash
curl -X POST https://api.getvolvi.com/v1/customers/K7P2QX/notify \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"title":"Tu orden está lista","body":"Pasa por ella a la caja 2. ¡Gracias!"}'

POST/v1/campaigns

Send a campaign to an audience: all, inactive (no visit in over 21 days), birthday (birthday this month), vip (5 or more visits) or near (close to their reward).

GET/v1/events

If you can't receive webhooks, poll the events in order. Store the last id and request from there with starting_after. Filter with type.

bash
curl "https://api.getvolvi.com/v1/events?starting_after=evt_9xK…&limit=100" -H "Authorization: Bearer vk_live_…"

POST/v1/webhooks

Registers your server's URL (https) to receive the events you choose in events, same as Dashboard → Integrations. The answer includes the webhook's secret (whsec_…) to verify the signature. If that URL was already registered, it updates it (events and description), turns it back on and returns the same secret with created: false: you can call it every time your system connects. Up to 5 webhooks per business.

bash
curl -X POST https://api.getvolvi.com/v1/webhooks \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"url":"https://tu-sistema.com/webhooks/volvi","events":["customer.created","customer.updated","customer.deleted"]}'

{ "data": { "id": 7, "url": "https://tu-sistema.com/webhooks/volvi", "events": ["customer.created", "…"], "active": true, "secret": "whsec_…" }, "created": true }

GET/v1/webhooks

The business's webhooks, without the secret.

DELETE/v1/webhooks/{id}

Deletes a webhook: it stops receiving events.

POST/v1/sso

A single-use link (valid for 60 seconds) that opens your Volví dashboard already signed in, to show it inside your own system. return_to is the dashboard page it lands on (for example /dashboard/campaigns) and embed: true prepares it for an iframe. To show it in an iframe your domain has to be allowed: write to us.

bash
curl -X POST https://api.getvolvi.com/v1/sso \
  -H "Authorization: Bearer vk_live_…" -H "Content-Type: application/json" \
  -d '{"return_to":"/dashboard/campaigns","embed":true}'

{ "data": { "url": "https://getvolvi.com/es/sso?token=…", "expires_at": "2026-10-22T15:04:05.000Z" } }

Recipes

Cuadre POS integration

If you sell with Cuadre, Volví comes included: paste your key in Cuadre → Fidelización. Your register recognizes the card when it's scanned, every sale adds its stamp on its own and rewards are redeemed at the register. From Cuadre's back office you open this same dashboard to design your card, send campaigns and see your customers. Cuadre uses this very API.

Identify on scan

When your cashier scans the card, send what was read as is to POST /v1/customers/resolve: you get the customer back with their stamps and rewards.

Stamp at checkout

When you close the sale on your POS, call /visits with the customer's code and the order number in external_ref and as the Idempotency-Key.

Your order is ready

When your kitchen marks the order as ready, look up the customer by phone (GET /v1/customers?phone=) and call /notify.

Sign-up from your app

When someone registers in your app, create them with POST /v1/customers, with their consent, and store their external_id. Send them the card_url.

Rewards in your system

Listen for reward.unlocked to show the reward on your POS and reward.redeemed to mark it as handed out.

Your dashboard inside your system

POST /v1/sso opens the Volví dashboard already signed in, on the page you choose: card design, campaigns, customers.

Webhooks

Add your server's URL (https) in Dashboard → Integrations, or from your system with POST /v1/webhooks, and choose the events you want. We send you a POST with this body:

json
{
  "id": "evt_Q3vTn0x8kJ2bLw9sA1cD",
  "type": "reward.unlocked",
  "created_at": "2026-10-11T18:20:04.112Z",
  "business": { "id": 12, "slug": "cafe-arriero" },
  "data": {
    "customer": { "id": 1842, "code": "K7P2QX", "external_id": "CRM-77", "stamps": 0, "rewards_available": 1, "…": "…" },
    "unlocked": 1,
    "reward": "Un café americano gratis"
  }
}
EventWhen it's sent
customer.createdSomeone got their card: via the QR code, a link or your system (API).
customer.updatedTheir name, phone, email, birthday or external_id changed.
customer.deletedThe customer deleted their card from “My info”.
visit.recordedA visit was recorded at the counter, through the API or by referring a friend.
visit.reversedA visit was undone (voided sale or stamp by mistake) or stamps were taken off by hand.
reward.unlockedThey collected enough stamps or points for the goal and have a reward to claim.
reward.redeemedA reward was handed out at the counter or through the API.
milestone.unlockedReached the stamps or points of a reward on the way (before the goal).
milestone.redeemedA reward on the way was handed out at the counter or through the API.
wallet.addedThe customer added their card to Apple Wallet or Google Wallet.
message.sentYou sent them a notice with POST /v1/customers/{id}/notify.
campaign.sentA campaign was sent from the dashboard or through the API.
points.redeemedPoints were used to pay on a points-by-amount card.
points.reversedA redemption or a sale's points were reversed (void or refund).
points.adjustedPoints were added or removed by hand, by a migration or as a gift.
points.expiredA customer's points expired.
giftcard.issuedA gift card was issued at the counter, in the panel or through the API.
giftcard.redeemedBalance was taken off a gift card in a purchase.
giftcard.reversedA use was undone for a voided or refunded sale.
giftcard.voidedA card with balance was voided: voided sale, lost, stolen or cancelled (`reason`).
giftcard.expiredA gift card reached its expiry date with balance left.
giftcard.activatedA physical card without balance was loaded when sold (at the counter or through the API).
giftcard.forfeitedA single-use voucher was used for less than its value: the rest was lost.
giftcard.updatedA card's or voucher's date was changed or removed; if it had expired, it works again with its balance.
giftcard_batch.createdVouchers or cards were created in a batch in the panel or through the API.
giftcard_batch.voidedThe vouchers or cards of a batch that nobody had used were voided.
  • Respond with a 2xx code within 10 seconds; do any heavy processing afterwards.
  • If it fails, we retry after 1 min, 5 min, 30 min, 2 h, 6 h and 24 h. After 30 failures in a row we pause the webhook, and you'll see it in the dashboard.
  • The same event may arrive more than once: use its id so you don't process it twice.
  • Headers: Volvi-Event, Volvi-Delivery and Volvi-Signature.
  • customer.created carries, besides customer, source (where the card came from: qr, referido, api or the link's src) and affiliate: the affiliate (for example an influencer) whose link brought the customer, { "ref": "maria-g", "click_id": "…" }, or null. To credit one, send people to the join link (join_url from GET /v1/business) with ?aff=CODE&aff_click=ID: aff is 3 to 32 letters, digits or hyphens, not starting or ending with a hyphen (stored in lowercase), and aff_click up to 64 letters, digits or hyphens. A value that doesn't fit is ignored, and click_id is null when none came. Only people who create their card count: a customer who already had it is left as is.

Verifying the signature

Volvi-Signature: t=1791747000,v1=5f2c… is an HMAC-SHA256 of `${t}.${body}` using your webhook's whsec_… secret. Compare it before trusting the request, and reject any older than 5 minutes.

javascript (node)
import { createHmac, timingSafeEqual } from "node:crypto";

// Use the RAW (unparsed) body and your whsec_… secret from the dashboard.
export function verifyVolvi(rawBody, header, secret) {
  const t = /t=(\d+)/.exec(header)?.[1];
  const v1 = /v1=([a-f0-9]+)/.exec(header)?.[1] ?? "";
  if (!t || Math.abs(Date.now() / 1000 - Number(t)) > 300) return false; // 5 min
  const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
  return v1.length === expected.length && timingSafeEqual(Buffer.from(v1), Buffer.from(expected));
}
python
import hmac, hashlib, re, time

def verify_volvi(raw_body: bytes, header: str, secret: str) -> bool:
    t = re.search(r"t=(\d+)", header)
    v1 = re.search(r"v1=([a-f0-9]+)", header)
    if not t or not v1 or abs(time.time() - int(t.group(1))) > 300:
        return False
    msg = t.group(1).encode() + b"." + raw_body
    expected = hmac.new(secret.encode(), msg, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, v1.group(1))

Errors and limits

Errors respond with the HTTP status code and {"error": {"code": "not_found", "message": "…"}}. Codes: invalid_request (400, invalid data; includes issues), no_reward_available (400), invalid_return_to (400), unauthorized (401, invalid or revoked key), not_found (404), conflict (409), idempotency_in_progress (409, that Idempotency-Key is still being processed: retry in a few seconds), idempotency_key_reused (409, that key was already used for another customer on that route) and rate_limited (429). You can make up to 120 requests per minute per key; if you go over, Retry-After tells you how many seconds to wait. An Idempotency-Key applies to your API key, the method and the route, and is remembered for 24 hours: a repeat returns the same response with Idempotent-Replayed: true.

On points-by-amount cards: amount_required, not_amount_card, not_reward_card, below_min_redemption and insufficient_points (400), and nothing_to_reverse (404).