tappi
HomeProductPricingAppPartners
Log inStart free
HomeProductPricingGeopushQuestionsAppPartners
Start freeLog in

Developers

API reference

A small set of endpoints and signed webhooks, to connect your own till, website or CRM to your own TAPPI account.

See plans

What the API is for

The TAPPI API connects a business’s own systems (its till software, website, booking page or CRM) to its own TAPPI account: sign a customer up from your checkout, add a stamp or points when a sale closes, keep points in step with your app, and hear about every change through signed webhooks.

It is narrow on purpose. It is not a way to run TAPPI from outside, and one key works for one business only.

Getting a key

API keys come with the Scale plan. The owner creates them in the dashboard under Settings › Developers, picks the scopes each key may use, and can revoke a key at any time. Every key expires.

A test key reads a sample café and writes nothing, so you can build against it before you touch real customers.

Want an AI app such as Claude or ChatGPT to work on your venue instead? Connect an AI app (MCP)

Authentication

Send your key as a bearer token. Live keys start with tappi_live_, test keys with tappi_test_. A test key reads a sample café, never your customers, and writes nothing: write endpoints answer { "mode": "test", "simulated": true }.

curl https://www.thetappi.com/api/public/v1/locations \
  -H "Authorization: Bearer tappi_live_…"

Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. The limit is 60 requests per minute per key and 120 across all of your keys. Over it is 429 with Retry-After. Errors are always { "error": "snake_case" }: 401 for a missing, invalid, revoked or expired key; 403 insufficient_scope names the scope you need; 404 for anything that is not yours.

Daily limits

Each business can read up to 2,000 customer records a day through the API (10% of its customers if that is more, at most 10,000) and make up to 5,000 writes, whatever the number of keys. Past a limit the answer is 429 daily_cap_reached until midnight UTC. Points added to one card through the API are capped per day too, and so are the points one key with points:write can add across all cards (10,000 a day). Ask TAPPI if a real integration needs more, for example a go-live import.

Endpoints

  • GET/api/public/v1/customerscustomers:read
    Customers who changed since `updated_since`, oldest first (`limit` ≤ 100; page on with `next_since` and `next_after_id`). Name, email, phone, visits, tags. Counts against the daily limit.
  • GET/api/public/v1/customers/{id}customers:read
    One customer, by the `customer_id` a webhook carries: contact details, birthday, tags, consent per channel, visits and their cards. Counts against the daily limit.
  • GET/api/public/v1/customers/{id}/timelinecustomers:read
    What happened to one customer, newest first (`limit` ≤ 100; page back with `next_before` and `next_before_id`). Never a reward code, email or phone.
  • GET/api/public/v1/segmentscustomers:read
    Your saved customer segments and their rules.
  • GET/api/public/v1/segments/{id}/customerscustomers:read
    Who is in a segment now, as customer ids (`limit` ≤ 500; page on with `next_after`).
  • GET/api/public/v1/cardscards:read
    Cards changed since `updated_since`, or one customer’s cards (`customer`), by id and never by serial (`limit` ≤ 100; page on with `next_updated_since` and `next_after_id`).
  • GET/api/public/v1/cards/{serial}cards:read
    One card, by its serial or its id: type, stamps / points / balance / tier, and its customer id (name, email and phone only with customers:read). The serial comes back only when you looked the card up by it.
  • GET/api/public/v1/visitsvisits:read
    Visits since `since`, one per customer per day (`limit` ≤ 500; page on with `next_since` and `next_after_customer`).
  • GET/api/public/v1/programsprograms:read
    Your card programmes, with type, status and the rules a POS needs (stamps, points and reward levels, tiers, top-up limits). `include_closed=true` adds closed ones.
  • GET/api/public/v1/programs/{id}programs:read
    One programme, plus what its type keeps apart: membership plans and benefits, packs, the coupon offer.
  • GET/api/public/v1/rewardsrewards:read
    Rewards changed since `updated_since`, or one customer’s (`customer`), with status open, redeemed, expired or voided. Never the code.
  • GET/api/public/v1/rewards/{id_or_code}rewards:read
    One reward by its id, or by its code (the answer then echoes the code).
  • GET/api/public/v1/membershipsmemberships:read
    Membership subscriptions changed since `updated_since`, or one card’s (`card`): plan, billing period, status, current period.
  • GET/api/public/v1/memberships/{id}memberships:read
    One membership with its last 50 benefit uses and last 24 invoices.
  • GET/api/public/v1/multipassmemberships:read
    Packs bought online, changed since `updated_since` or for one card: units, price, status, expiry.
  • GET/api/public/v1/coupons/redemptionsprograms:read
    Coupon uses since `since`: which coupon, card and location (`limit` ≤ 500).
  • GET/api/public/v1/promotionsprograms:read
    Your promotions with their schedule, audience, limits, usage and status.
  • GET/api/public/v1/referralsprograms:read
    Referrals made since `since`: who invited, who joined, status and when each side was rewarded.
  • POST/api/public/v1/rewardsrewards:write
    Give a customer a reward (`card`, `template_id` or `name`, `quantity` ≤ 5, `idempotency_key`). The key’s maker must still hold Give rewards.
  • POST/api/public/v1/rewards/{id_or_code}/redeemredemptions:write
    Hand over a reward by its id or code, as the till does. `card` is optional: the card it completed, else the customer’s first live card.
  • POST/api/public/v1/cards/{serial_or_id}/coupon/redeemredemptions:write
    Use one of a coupon card’s uses, with its dates, time windows and uses left.
  • POST/api/public/v1/cards/{serial_or_id}/membership/check-inredemptions:write
    Check in a membership benefit (`benefit_id`, or the plan’s default), within the plan’s limits.
  • POST/api/public/v1/cards/{serial_or_id}/multipass/useredemptions:write
    Use multipass visits (`units`, 1–100, default 1).
  • POST/api/public/v1/cards/{serial_or_id}/points/redeemredemptions:write
    Spend points on a reward level (`level_id`) or a custom amount (`points`, `note`). Points only come off.
  • GET/api/public/v1/campaignscampaigns:read
    Your push campaigns, changed since `updated_since` (optional) or by `status`: the text, who each one is for, when it goes out, and how many its last send reached and kept back. Never who received it.
  • GET/api/public/v1/campaigns/{id}campaigns:read
    One campaign, by the `campaign_id` a card_message.sent webhook carries.
  • POST/api/public/v1/campaignsmessages:write
    Create a push campaign with the composer’s rules (`name`, `body`, `audience`, then `send_now`, `scheduled_for` or `recurrence`, or none for a draft; `idempotency_key`). Reaches only customers who said yes to offers. At most 10 a day through the API.
  • POST/api/public/v1/campaigns/{id}/cancelmessages:write
    Stop a draft or scheduled campaign; a recurring one stops for good.
  • POST/api/public/v1/cards/{serial_or_id}/messagemessages:write
    Send one customer’s card a message (`body`, `idempotency_key`): it shows on their lock screen and stays on the card. Only if they said yes to offers; at most 3 per card a day.
  • GET/api/public/v1/transactionstransactions:read
    Till transactions from the last 30 days, with each card’s id (`card` = serial to filter, `limit` ≤ 100).
  • POST/api/public/v1/transactionstransactions:write
    Stamp a card or add points, with the same rules as the till. Charging a prepaid balance (`"kind": "spend"`) needs prepaid:write.
  • POST/api/v1/webhooks/testwebhooks:write
    Send a signed `webhook.test` delivery to one of your endpoints (`endpoint_id`) to check your receiver. It sits outside `/api/public`; a test key cannot send it.
  • GET/api/public/v1/locationslocations:read
    Active locations and their ids (for `location_id`).
  • GET/api/public/v1/eventsevents:read
    The last 100 webhook events published for your account.
  • GET/api/public/v1/giftsgifts:read
    Gift card orders changed since a date, with buyer, recipient and (while unredeemed) the redeem link.
  • GET/api/public/v1/gifts/{id}gifts:read
    One gift card order, by the `order_id` a gift_card webhook carries.
  • POST/api/public/v1/memberscustomers:write
    Sign a customer up from your own checkout, with their consent, and add what they bought. Answers the add-to-wallet links.
  • GET/api/public/v1/members/lookupcards:read
    One member by your own `member_ref` or their `email`, exact match only, with their cards’ standing.
  • PUT/api/public/v1/members/{member_ref}/totaltransactions:write
    Set a member’s total on a card that climbs on your own unit (km, points from your app), up or down. The level follows the number.
  • POST/api/public/v1/members/{member_ref}/pointspoints:write
    Add or take off a member’s points from your own system: `delta`, a `reason` and your own `external_ref`. Answers the new balance.
  • PUT/api/public/v1/members/{member_ref}/pointspoints:write
    Set a member’s balance, to bring them across or repair drift (`reason`: migration or correction). TAPPI records the difference.
  • GET/api/public/v1/members/{member_ref}/pointscards:read
    A member’s balance and every change after `since_seq`, oldest first, to catch up on anything a webhook missed.
  • POST/api/public/v1/points/importpoints:write
    Up to 100 members’ balances on one card in one call, answered row by row. For go-live.
  • PATCH/api/public/v1/members/{member_ref}customers:write
    Correct “member since” on a member’s cards: a month (2024-03) or a day, for customers who came before TAPPI. null goes back to the card’s own date.

Scopes

  • customers:readCustomers who changed since a date you give, one customer’s full record and timeline, and your saved segments, with name, email and phone. Counted against the daily limit.
  • customers:writeSign a customer up to one of your cards from your own checkout or booking page, with their consent, and add what they bought. Owner only.
  • cards:readLook up a loyalty card by its serial or id, or list the cards that changed: type, stamps, points, balance or tier. The customer’s name, email and phone ride along only with Read customers, on a single card.
  • transactions:readThe last 30 days of till transactions.
  • transactions:writeStamp a card or add points from your POS or website.
  • prepaid:writeTake money off a customer’s prepaid balance from your POS. Owner only.
  • points:writeKeep your own website or app in step with your cards: add, take off or set a member’s points. Owner only.
  • webhooks:writeSend a test delivery to one of your endpoints.
  • locations:readList your active locations and their ids.
  • events:readThe last 100 webhook events TAPPI published for your account, with the amounts of top-ups, gift cards and membership payments. Owner only.
  • gifts:readGift card orders with the buyer’s and recipient’s name and email, the message and, while unredeemed, the redeem link, so you can send the gift email yourself. Owner only.
  • visits:readVisits since a date you give: one per customer per day, with the location and what counted it. Customer ids only, no contact details.
  • programs:readYour card programmes and their rules (stamps, points, tiers, top-ups, membership plans, packs, coupon offers), plus promotions, coupon uses and referrals. No contact details.
  • rewards:readRewards your customers hold and whether each is open, used or expired, and one reward looked up by its code. Codes are never listed.
  • memberships:readMembership subscriptions with their plan, status and current period, benefit uses and invoices, and packs bought. Owner only.
  • redemptions:writeFrom your POS, use what a customer already holds, exactly as staff do at the till: hand over a reward, use a coupon, check in a membership benefit, use pack visits or spend points on a reward.
  • rewards:writeGive a customer a reward from your own system, as you can from their page: up to 5 at once and 10 per customer a day.
  • campaigns:readYour push campaigns: the text, who each one is for, when it goes or went out, and how many it reached. No contact details.
  • messages:writeSend a message to one customer’s card, and create, send or cancel push campaigns, with the composer’s own rules: only customers who said yes to offers on their card are reached. Owner only.

There is no scope that can create keys, change billing or touch your team. A leaked key can only ever do what it was given.

Retries

Send your own idempotency_key with every write that takes one. If the answer is a 5xx, or no answer arrives (a timeout, a dropped connection), send the same request again with the same key: the first attempt may have been applied, and TAPPI uses the key to recognise a request it has already applied.

A 4xx is final: the request was refused, so correct it before sending it again. The one exception is 429, which means a limit was reached: try again later.

Webhooks

TAPPI POSTs a JSON envelope to your https endpoint and expects a 2xx within 10 seconds. Failures retry at 30 s, 2 min, 10 min, 1 h and 6 h, then the delivery is marked “gave up” and can be replayed from the Developers page.

Delivery records are kept for 30 days after a delivery succeeds and 90 days after it gives up, then deleted — replay a delivery before then.

The signature is HMAC-SHA256 of t=<ts>.<raw body> with your endpoint’s secret, hex-encoded. Reject anything older than five minutes. For 24 hours after a rotation the header carries two v1 values — accept either.

import { createHmac, timingSafeEqual } from 'node:crypto';

// TAPPI signs every delivery: X-TAPPI-Signature: t=<unix seconds>,v1=<hex>[,v1=<hex>]
// During a secret rotation the header carries two v1 values — one per secret.
export function verifyTappiSignature(secret: string, rawBody: string, header: string | null) {
  if (!header) return false;
  let ts = null;
  const sigs = [];
  for (const part of header.split(',')) {
    const [k, v] = part.trim().split('=', 2);
    if (k === 't') ts = Number(v);
    else if (k === 'v1' && v) sigs.push(v);
  }
  if (!Number.isFinite(ts) || sigs.length === 0) return false;
  if (Math.abs(Math.floor(Date.now() / 1000) - ts) > 300) return false; // 5 min replay window
  const expected = createHmac('sha256', secret).update(`t=${ts}.${rawBody}`).digest();
  return sigs.some((s) => {
    const given = Buffer.from(s, 'hex');
    return given.length === expected.length && timingSafeEqual(given, expected);
  });
}

// export async function POST(req: Request) {
//   const raw = await req.text();
//   if (!verifyTappiSignature(process.env.TAPPI_WEBHOOK_SECRET, raw, req.headers.get('x-tappi-signature')))
//     return new Response('invalid signature', { status: 401 });
//   const event = JSON.parse(raw); // { id, type, created_at, org_id, data }
//   // dedupe on event.id, then handle event.type
//   return new Response('ok');
// }

Events

  • webhook.testA test delivery you send from the Developers page or the API.
  • wallet.pass.savedA customer added their card to Apple Wallet, or a reward pass to Google Wallet.
  • wallet.pass.removedA customer removed their card from Apple Wallet, or a reward pass from Google Wallet.
  • customer.enrolledA customer joined a loyalty card.
  • transaction.createdAny till action was recorded (stamp, points, prepaid spend or top-up, reward, coupon, check-in, pack, promotion), at the till or via the API.
  • transaction.voidedA till action was undone within 30 seconds: the reversal of a transaction.created.
  • reward.issuedA reward code was minted for a customer.
  • reward.redeemedStaff redeemed a reward at the till.
  • membership.purchasedA customer bought a paid membership.
  • membership.renewedA membership renewed for another period.
  • membership.cancelledA membership ended: cancelled by the customer or the owner, run out, or left unpaid.
  • multipass.purchasedA customer bought a pack of units.
  • coupon.redeemedStaff redeemed a coupon at the till.
  • referral.createdA new customer joined through a referral link.
  • referral.rewardedA referral qualified and both sides were rewarded.
  • promotion.publishedA promotion went live on customers’ cards.
  • promotion.usedStaff applied a promotion at the till.
  • points.changedA card’s points moved, whatever moved them (till, dashboard, reward, your own API calls), with the new balance.
  • stamps.changedA card’s stamps moved (a stamp added or taken back), with the card’s new count.
  • balance.changedA prepaid card’s balance moved, whatever moved it (top-up, spend, refund, gift credit, expiry), with the new balance.
  • gift_card.purchasedA gift card was paid for.
  • gift_card.deliveredThe gift card email is due: TAPPI sent it to the recipient, or, if your system sends its own, this is the moment to send it (right away, or on the day the buyer chose).
  • gift_card.redeemedThe recipient redeemed the gift card onto a loyalty card.
  • gift_card.refundedA gift card was refunded, or a dispute over it was lost.
  • gift_card.disputedThe buyer’s bank opened a dispute over a gift card.
  • gift_card.expiredA gift card passed its expiry date without being redeemed.
  • topup.succeededA customer topped up their prepaid card online, by hand or by auto-reload.
  • topup.failedAn online top-up or auto-reload charge failed.
  • topup.refundedAn online top-up was refunded and the money taken off the card.
  • topup.disputedThe customer’s bank opened a dispute over a top-up and the money was taken off the card.
  • topup.dispute_wonA top-up dispute was won and the money put back on the card.
  • customer.updatedA customer’s name, email, phone, birthday, tags or member reference changed, whoever changed it.
  • customer.consent_changedA customer said yes or no to marketing by email or Wallet offers.
  • customer.erasedA customer’s personal data was erased (their request, or your account closing), with your member reference so you can erase your copy.
  • card.completedA stamp card filled up. Sent once per card per round.
  • card.voidedA card was voided.
  • card.tier_changedA tier card moved up or down a level.
  • visit.recordedA customer’s first visit of the day was counted (a till action, a scan or a stamp).
  • membership.payment_failedA membership renewal payment failed. Stripe tries again; the membership is past due until it pays.
  • membership.benefit_usedA member used a benefit at the till.
  • multipass.usedUnits were used from a pack, with the units left.
  • coupon.issuedA customer got a coupon card.
  • reward.expiredA reward passed its expiry date without being used.
  • card_message.sentA message reached customers’ cards: a campaign, an automation, or one sent to a single card. One event per send, with how many it reached.
  • program.createdA card programme was created.
  • program.updatedA card programme’s rules or tiers changed, or it was paused or resumed.
  • program.archivedA card programme was stopped (no new cards, balances still honoured) or closed.
  • location.createdA location was added.
  • location.updatedA location’s name, address, time zone or public contact details changed.
  • location.removedA location was switched off or deleted.

Terms of use

By using the TAPPI API, you agree:

  • The API connects your own business systems to your own TAPPI account. One key, one business.
  • Do not resell, sublicense, white-label or give API access to any other business.
  • Do not use the API to build, feed or run a product that competes with TAPPI, or to run TAPPI as the back end of another service.
  • Do not copy your customers out in bulk through the API. Use the export in your dashboard.
  • Do not try to get around the rate or daily limits, for example with extra keys.
  • Keep keys secret. You are responsible for everything done with them.
  • TAPPI may limit, suspend or revoke any key at any time to protect customers or the service, and logs API use to check these terms.
tappi
thetappi.com

Product

  • The app
  • Pricing
  • Design your card
  • Apple Wallet cards
  • Google Wallet cards
  • Request a demo

Card types

  • Digital stamp card
  • Digital points card
  • Tiered loyalty card
  • Prepaid card
  • Multi-visit pass
  • Digital coupon
  • Membership card

By trade

  • Cafés and coffee shops
  • Bakeries
  • Bars and pubs
  • Restaurants
  • Hair salons
  • Barbershops
  • All trades

Compare

  • TAPPI vs Stampy
  • TAPPI vs PassKit
  • TAPPI vs Square Loyalty
  • TAPPI vs Loopy Loyalty
  • TAPPI vs Perkstar
  • All comparisons

Resources

  • Help centre
  • What a digital loyalty card is
  • Blog
  • Glossary
  • Calculator (free)
  • API docs
  • Connect an AI app (MCP)
  • Status

Ask AI about TAPPI

  • ChatGPT
  • Claude
  • Perplexity
  • Google AI Mode

Get the app

Download on the App StoreGet it on Google Play
GDPRALIGNED© 2026 TAPPIPrivacyTermsGDPRCookiesTrustLegal

Request a demo

Pick a time that suits you. 30 minutes, no commitment and no slides.

Rather we called you?

Message us on WhatsApp