Complete endpoint reference.
Every agent API endpoint across all roles. Routes, methods, scopes, parameters, and response fields.
On this page
Complete endpoint reference
This page lists every agent API endpoint, read from source. Base URL: /api/agent/v1.
All endpoints require a valid Integration API key via the X-Agent-Key header. See Authentication for details.
💡 Interactive version available: Browse the full OpenAPI spec in Swagger UI → or download the raw JSON spec for import into Postman or code generators. For machine-readable tool definitions, see Tool Discovery.
Global
Health check
GET /health
Scope: Any valid key (no specific scope required) Role: All (partner, member, admin)
Returns key identity, scopes, rate limit, and connectivity status.
Response fields: status, key.name, key.prefix, key.role, key.scopes[], key.rate_limit, key.expires_at, key.created_at, key.last_used_at, owner.id, owner.name, owner.type
Tool discovery
GET /tools
Scope: Any valid key (no specific scope required) Role: All (partner, member, admin)
Returns machine-readable tool definitions scoped to the authenticated key's role and permissions. Pass ?format=openai, ?format=anthropic, ?format=mcp, or ?format=generic (default) to get definitions in your agent framework's format.
This endpoint does not appear in its own tool list. A tool that lists tools adds noise for agents.
Query parameters: format (string, default: generic)
Response fields: tools[], meta.role, meta.format, meta.tool_count, meta.cached
See Tool Discovery for full format examples and integration guides.
Partner endpoints
All partner endpoints are prefixed with /partner and require a partner Integration API key.
Clubs
Clubs are organizational units that group cards, staff, and tiers.
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/partner/clubs |
read or write:clubs |
List all clubs |
GET |
/partner/clubs/{id} |
read or write:clubs |
Get club detail |
POST |
/partner/clubs |
write:clubs |
Create a club |
PUT |
/partner/clubs/{id} |
write:clubs |
Update a club |
DELETE |
/partner/clubs/{id} |
write:clubs |
Delete a club |
Create/Update body:
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | ✅ create | Max 120 chars |
is_active |
boolean | - | Default true |
business_location_id |
UUID or null |
- | One of the business's locations, or null for All locations. A new club without it uses All locations. An update without it keeps the current choice |
Club responses include business_location_id. A location ID from another business returns 404 NOT_FOUND, and nothing saves.
Guards: You cannot delete protected clubs (is_undeletable). Changing business_location_id on a protected club (is_uneditable) returns 422 RESOURCE_PROTECTED.
Business locations
The business owns its locations. Each club uses all of them or one. These endpoints require the business owner role. Other roles get 403 AUTH_WRONG_ROLE.
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/partner/business-locations |
read or write:business |
List every location in saved order |
GET |
/partner/business-locations/{location_id} |
read or write:business |
Get one location |
POST |
/partner/business-locations |
write:business |
Create a location |
PUT |
/partner/business-locations/{location_id} |
write:business |
Change the fields you send, the order, the primary or business page visibility |
DELETE |
/partner/business-locations/{location_id} |
write:business |
Delete a location |
Create/Update body: Create requires only name (max 128 chars). Optional: address_line_1, address_line_2, city, state, postal_code, phone, maps_url, opening_hours, time_zone, show_on_business_page, position, is_primary and expected_revision. With discovery on, latitude, longitude and business_category are also accepted. Unknown fields are rejected.
Response fields: id, partner_id, position, the location fields, show_on_business_page, is_primary, business_locations_revision, directions_url, anchor, business_page_url, created_at, updated_at. Lists add pagination and revision. total counts every location the business owns.
Guards: The limit is 20 locations per business. A protected business (is_uneditable) can read but not change its locations. A club that uses a location blocks its deletion, including an inactive club. When other locations exist, select another primary before you delete the primary. Direct HTTP deletion returns 200. MCP deletion returns 202 for owner approval before execute_approval.
See Business locations for field limits, weekly hours, order and primary rules, errors and retries.
Loyalty cards
Cards define the points economy: currency, earning rate, limits, expiry.
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/partner/cards |
read or write:cards |
List all loyalty cards |
GET |
/partner/cards/{id} |
read or write:cards |
Get card detail |
POST |
/partner/cards |
write:cards |
Create a loyalty card |
PUT |
/partner/cards/{id} |
write:cards |
Update a loyalty card |
DELETE |
/partner/cards/{id} |
write:cards |
Delete a loyalty card |
Create body:
| Field | Type | Required | Notes |
|---|---|---|---|
club_id |
UUID | ✅ | Must belong to this partner |
name |
string | ✅ | Max 250 chars |
head |
string/json | - | Translatable heading |
title |
string/json | - | Translatable title |
description |
string/json | - | Translatable description |
currency |
string | ✅ | ISO 4217 (3 chars, e.g. EUR) |
points_per_currency |
number | ✅ | Points earned per currency unit (0–100000) |
currency_unit_amount |
number | ✅ | Currency unit size (1–1000000) |
min_points_per_purchase |
number | ✅ | Min points per transaction (0–10M) |
max_points_per_purchase |
number | ✅ | Max points per transaction (0–10M) |
initial_bonus_points |
number | - | Bonus on first interaction |
points_expiration_months |
number | ✅ | Months before points expire (1–1200) |
issue_date |
date | - | When the card becomes active |
expiration_date |
date | - | When the card expires |
is_active |
boolean | - | Default true |
is_visible_by_default |
boolean | - | Show on homepage |
bg_color |
hex color | - | Background color (e.g. #FF5733) |
bg_color_opacity |
number | - | Opacity 0–100 |
text_color |
hex color | - | Text color |
Update: All fields optional. You can change club_id (the platform verifies ownership).
Permission gate: loyalty_cards_permission
Limit gate: loyalty_cards_limit
Rewards
Redeemable items that members exchange points for.
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/partner/rewards |
read or write:rewards |
List all rewards |
GET |
/partner/rewards/{id} |
read or write:rewards |
Get reward detail |
POST |
/partner/rewards |
write:rewards |
Create a reward |
PUT |
/partner/rewards/{id} |
write:rewards |
Update a reward |
DELETE |
/partner/rewards/{id} |
write:rewards |
Delete a reward |
Create body:
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | ✅ | Max 120 chars |
title |
string/json | - | Translatable |
description |
string/json | - | Translatable |
points |
number | ✅ | Cost in points (0–10M) |
active_from |
date | - | When the reward becomes active |
expiration_date |
date | - | When the reward expires |
is_active |
boolean | - | Default true |
Permission gate: loyalty_cards_permission
Limit gate: rewards_limit
Transactions
The core earn-and-burn flow for POS/CRM integrations.
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/partner/transactions |
read or write:transactions |
List transactions |
POST |
/partner/transactions/purchase |
write:transactions |
Record a purchase and award points |
POST |
/partner/transactions/redeem |
write:rewards |
Redeem a reward and deduct points |
POST |
/partner/transactions/deduct |
write:transactions |
Deduct custom points from balance |
List transactions
GET /partner/transactions
Query parameters:
| Parameter | Type | Description |
|---|---|---|
member_identifier |
string | Filter by member (UUID, email, or unique_identifier) |
card_id |
UUID | Filter by loyalty card |
event |
string | Filter by event type |
from |
date | Start date (Y-m-d) |
to |
date | End date (Y-m-d) |
per_page |
int | Results per page (default 25, max 100) |
Response per item: id, event, points, purchase_amount, currency, member_id, card_id, reward_id, staff_id, staff_name, note, expires_at, created_at, voided_at
Record a purchase
POST /partner/transactions/purchase
| Field | Type | Required | Notes |
|---|---|---|---|
card_id |
UUID | ✅ | Must belong to this partner |
member_identifier |
string | ✅ | UUID, email, member_number, or unique_identifier |
purchase_amount |
number or decimal string | ✅† | Required if points not set. Min 0.01. Send a decimal string for retry-safe purchases |
points |
integer | - | Override automatic calculation |
staff_id |
UUID | - | Attribute to staff member. If omitted, attributed to "System" |
note |
string | - | Max 500 chars |
| source_reference | string | - | Stable sale reference, up to 128 characters; enables retry-safe recording |
| currency | string | With reference | Three uppercase letters; must match the card currency |
| source_completed_at | string | With reference | ISO 8601 instant with whole seconds and an offset or Z |
† Either purchase_amount or points must be provided.
Points clamping: The platform caps awarded points at the card's max_points_per_purchase after applying tier multipliers. If you send points: 5000 and the card's maximum is 1,000, the transaction awards 1,000. Retry-safe awards also have an absolute ceiling of 2147483647 points, even when the card has no configured cap.
Response: transaction_id, points_awarded, member_balance, purchase_amount, card_id, member_id
With a sale reference, the first request returns 201 with replayed: false. An identical retry returns 200 with replayed: true and the original result. Responses also include currency, source_completed_at, source_reference, and transaction_status. See Record a purchase for reference syntax, source-time limits, conflicts, and recovery rules. Without a reference, each accepted request awards points again.
Redeem a reward
POST /partner/transactions/redeem
| Field | Type | Required | Notes |
|---|---|---|---|
card_id |
UUID | ✅ | Must belong to this partner |
reward_id |
UUID | ✅ | Must belong to this partner |
member_identifier |
string | ✅ | UUID, email, member_number, or unique_identifier |
staff_id |
UUID | - | If omitted, uses system-level redemption |
note |
string | - | Max 500 chars |
Response: transaction_id, points_deducted, member_balance, new_balance, reward_id, reward.id, reward.title, card_id, member_id
Deduct points
POST /partner/transactions/deduct
| Field | Type | Required | Notes |
|---|---|---|---|
card_id |
UUID | ✅ | Must belong to this partner |
member_identifier |
string | ✅ | UUID, email, member_number, or unique_identifier |
points |
integer | ✅ | Number of points to deduct (min 1) |
note |
string | ✅ | Required reason for audit trail. Max 1024 chars |
reference |
string | - | External reference for linking. Max 255 chars |
staff_id |
UUID | - | Attribute to staff member. If you omit it, the platform records as "Partner" |
Response: transaction_id, points_deducted, member_balance, new_balance, card_id, member_id
Apple Wallet settings
| Method | Endpoint | Scope |
|---|---|---|
GET |
/partner/apple-wallet/{type}/{id} |
read or write:wallet |
PUT |
/partner/apple-wallet/{type}/{id} |
write:wallet |
Use loyalty, stamp, offer, or prepaid for {type} and an owned item UUID for {id}. PUT accepts enabled and optional appearance settings; repeated identical requests return meta.result: "unchanged". These endpoints do not return signed member passes or signing credentials. See the Apple Wallet API for the fields, availability checks, and errors.
Members
Read member access for partners, no writes. Members self-register or join through transaction auto-enrollment.
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/partner/members |
read |
List members who've interacted with your cards |
GET |
/partner/members/{id} |
read |
Get member detail |
GET |
/partner/members/{id}/balance/{cardId} |
read |
Get member's point balance on a card |
List query parameters:
| Parameter | Type | Description |
|---|---|---|
search |
string | Search by name, email, member_number, or unique_identifier |
per_page |
int | Results per page |
Show: The {id} parameter accepts UUID, email, member_number, or unique_identifier.
Member response: id, unique_identifier, name, email, locale, currency, time_zone, last_login_at, created_at, updated_at, avatar, is_anonymous, is_active, birthday, gender, phone, phone_country, consents. Partner keys read the profile and never change it. See Partner endpoints for the field formats.
Balance response: member_id, card_id, balance, currency
Achievements
Read-only view of the achievements program: status, rules, insights, and per-member progress. Program settings change in the partner dashboard.
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/partner/achievements |
read |
Get the program, its rules, and aggregate insights |
GET |
/partner/members/{id}/achievements |
read |
Get one member's progress and earned achievements |
Permission gate: achievements_permission
Rules expose each reward's public envelope only (type, cap, window), insights are aggregates (never member listings), and voided achievements never appear. Member keys read their own progress with GET /member/achievements (scope read, optional business selector). See Partner endpoints and Member endpoints for the response shapes.
Stamp cards
Digital punch cards. Members collect stamps and earn a reward when complete.
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/partner/stamp-cards |
read or write:stamps |
List stamp cards |
GET |
/partner/stamp-cards/{id} |
read or write:stamps |
Get stamp card detail |
POST |
/partner/stamp-cards |
write:stamps |
Create a stamp card |
PUT |
/partner/stamp-cards/{id} |
write:stamps |
Update a stamp card |
DELETE |
/partner/stamp-cards/{id} |
write:stamps |
Delete a stamp card |
POST |
/partner/stamp-cards/{id}/stamps |
write:stamps |
Add stamps to a member |
POST |
/partner/stamp-cards/{id}/redeem |
write:stamps |
Redeem a pending stamp reward |
Create body:
| Field | Type | Required | Notes |
|---|---|---|---|
club_id |
UUID | ✅ | Must belong to this partner |
name |
string | ✅ | Max 250 chars |
head |
string/json | - | Translatable heading |
title |
string/json | - | Translatable title |
description |
string/json | - | Translatable description |
reward_title |
string/json | - | Translatable reward title |
stamps_required |
integer | ✅ | 1–100 |
stamps_per_purchase |
integer | - | Default 1 |
max_stamps_per_transaction |
integer | - | Limit per transaction |
max_stamps_per_day |
integer | - | Per-day limit |
min_purchase_amount |
number | - | Min transaction to earn stamp |
currency |
string | - | ISO 4217 |
stamps_expire_days |
integer | - | Days before stamps expire |
requires_physical_claim |
boolean | - | Require staff to confirm redemption |
is_active |
boolean | - | Default true |
Use canonical field names: stamps_expire_days and requires_physical_claim.
Permission gate: stamp_cards_permission
Limit gate: stamp_cards_limit
Add stamps
POST /partner/stamp-cards/{id}/stamps
| Field | Type | Required | Notes |
|---|---|---|---|
member_identifier |
string | ✅ | UUID, email, or unique_identifier |
stamps |
integer | - | Default 1. Effective max is card-dependent: stamps_required when the card has no per-transaction cap, otherwise the configured cap (absolute ceiling 100) |
purchase_amount |
number | - | Transaction amount (for min_purchase_amount validation) |
note |
string | - | Max 500 chars |
Response: stamps_added, current_stamps, stamps_required, completed, pending_rewards
Redeem stamp reward
POST /partner/stamp-cards/{id}/redeem
| Field | Type | Required | Notes |
|---|---|---|---|
member_identifier |
string | ✅ | UUID, email, or unique_identifier |
note |
string | - | Max 500 chars |
Response: reward_title, reward_value, remaining_rewards
Vouchers
Digital discount vouchers with usage tracking.
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/partner/vouchers |
read or write:vouchers |
List vouchers |
GET |
/partner/vouchers/{id} |
read or write:vouchers |
Get voucher detail |
POST |
/partner/vouchers |
write:vouchers |
Create a voucher |
PUT |
/partner/vouchers/{id} |
write:vouchers |
Update a voucher |
DELETE |
/partner/vouchers/{id} |
write:vouchers |
Delete a voucher |
POST |
/partner/vouchers/validate |
write:vouchers |
Validate a voucher code |
POST |
/partner/vouchers/{id}/redeem |
write:vouchers |
Redeem voucher for a member |
Create body:
| Field | Type | Required | Notes |
|---|---|---|---|
club_id |
UUID | ✅ | Must belong to this partner |
code |
string | - | Max 32 chars. The platform generates one when omitted |
name |
string | ✅ | Max 128 chars |
title |
string/json | - | Translatable |
description |
string/json | - | Translatable |
type |
string | ✅ | percentage, fixed_amount, free_product, or bonus_points |
value |
integer | ✅† | Required unless type is free_product or bonus_points |
points_value |
integer | - | Required when type=bonus_points |
currency |
string | - | ISO 4217 |
min_purchase_amount |
integer | - | Minimum order amount in minor units |
max_discount_amount |
integer | - | Discount cap in minor units |
max_uses_total |
integer | - | Total usage ceiling |
max_uses_per_member |
integer | - | Per-member usage ceiling |
valid_from |
date | - | Voucher becomes redeemable at this time |
valid_until |
date | - | Voucher expires after this time |
is_active |
boolean | - | Default true |
is_public |
boolean | - | Public, claimable in member flows |
is_single_use |
boolean | - | Single-use voucher flag |
Use canonical field names: type, value, max_uses_total, valid_from, and valid_until.
Permission gate: vouchers_permission
Limit gate: vouchers_limit
Validate voucher
POST /partner/vouchers/validate
| Field | Type | Required | Notes |
|---|---|---|---|
code |
string | ✅ | Voucher code |
member_identifier |
string | ✅ | UUID, email, member_number, or unique_identifier |
club_id |
UUID | ✅ | Must belong to this partner |
order_amount |
integer | - | Order amount in minor units |
Response: valid, voucher_id, code, name, type, value, currency, discount_amount, capped, original_amount, final_amount, times_used, remaining_uses, valid_until
Redeem voucher
POST /partner/vouchers/{id}/redeem
| Field | Type | Required | Notes |
|---|---|---|---|
member_identifier |
string | ✅ | UUID, email, member_number, or unique_identifier |
order_amount |
integer | - | Order amount in minor units |
order_reference |
string | - | External order reference, max 64 chars |
Response: voucher_id, code, type, member_id, discount_amount, points_awarded, remaining_uses, redemption_id
Validation checks: Active, within the validity window, and not exhausted (times_used < max_uses_total when a total cap exists).
Prepaid passes
Counted visit packs, time-limited memberships, and monetary balances for the issuing business. Templates are prepaid-passes; sold instances are member-passes. The table below describes visit format 1 unless stated otherwise.
| Method | Path | Scope | Notes |
|---|---|---|---|
GET |
/partner/prepaid-passes |
read or write:passes |
List pass templates |
GET |
/partner/prepaid-passes/{id} |
read or write:passes |
Get a template |
POST |
/partner/prepaid-passes |
write:passes |
Create a template |
PUT |
/partner/prepaid-passes/{id} |
write:passes |
Update a template |
DELETE |
/partner/prepaid-passes/{id} |
write:passes |
Soft-delete a template |
POST |
/partner/prepaid-passes/{id}/sell |
write:passes |
Sell (issue) a pass to a member |
GET |
/partner/members/{id}/passes |
read or write:passes |
List a member's sold passes |
GET |
/partner/member-passes/{memberPassId} |
read or write:passes |
Get a sold pass with history |
POST |
/partner/member-passes/{memberPassId}/scan |
write:passes |
Deduct visit(s) |
POST |
/partner/member-passes/{memberPassId}/undo |
write:passes |
Undo the last visit |
POST |
/partner/member-passes/{memberPassId}/spend?pass_format=2 |
write:passes and write:pass-money |
Spend an integer monetary amount |
POST |
/partner/member-passes/{memberPassId}/transactions/{transactionId}/reverse?pass_format=2 |
write:passes and write:pass-money |
Reverse one complete spend |
GET |
/partner/money/overview |
Explicit read:money |
List money accounts or sales |
GET |
/partner/money/setup |
Explicit read:money |
Read setup and sales readiness |
GET |
/partner/money/records/{kind}/{id} |
Explicit read:money |
Read an account or sale with history |
GET |
/partner/analytics/money-passes |
Explicit read:money |
Money analytics; needs Prepaid passes |
Sales and product gates: prepaid_passes_permission and the prepaid_passes_limit template limit. Existing monetary balance reads, spends and spend reversals remain available when sales stop. Oversight reads have no prepaid-sales gate; a setup read needs a saved setup or permission to enable sales. Money analytics still needs Prepaid passes. See money oversight reads.
Add pass_format=2 to read typed monetary records; omitted or explicit format 1 keeps visit-only lists. Monetary template writes and /sell?pass_format=2 also require both literal write scopes. Each monetary sale, spend, or reversal needs a UUID Idempotency-Key header; retry the same key and body after an uncertain result. The admin scope alone does not grant monetary writes. Refunds and corrections remain web oversight actions. See monetary request examples.
Member keys also read their own passes: GET /member/passes and GET /member/passes/{id} (scope read). Use pass_format=2 for money balances and safe history. Member endpoints cannot spend or refund value.
Tiers
Loyalty levels within a club (e.g., Bronze, Silver, Gold).
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/partner/tiers |
read or write:tiers |
List tiers |
GET |
/partner/tiers/{id} |
read or write:tiers |
Get tier detail |
POST |
/partner/tiers |
write:tiers |
Create a tier |
PUT |
/partner/tiers/{id} |
write:tiers |
Update a tier |
DELETE |
/partner/tiers/{id} |
write:tiers |
Delete a tier |
Create body:
| Field | Type | Required | Notes |
|---|---|---|---|
club_id |
UUID | ✅ | Must belong to this partner |
name |
string/json | ✅ | Translatable |
description |
string/json | - | Translatable |
level |
integer | ✅ | Sorting order (min 0) |
points_threshold |
integer | - | Points needed to reach this tier |
points_multiplier |
number | - | Earning multiplier (1–100) |
color |
string | - | Hex, max 7 chars |
icon |
string | - | Icon identifier, max 50 chars |
is_default |
boolean | - | Default tier for new members |
is_active |
boolean | - | Default true |
Staff
Staff members who operate loyalty cards (scan, award, redeem).
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/partner/staff |
read or write:staff |
List staff members |
GET |
/partner/staff/{id} |
read or write:staff |
Get staff detail |
POST |
/partner/staff |
write:staff |
Create a staff member |
PUT |
/partner/staff/{id} |
write:staff |
Update a staff member |
DELETE |
/partner/staff/{id} |
write:staff |
Delete a staff member |
Create body:
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | ✅ | Max 120 chars |
email |
string | ✅ | Must be unique across all staff |
password |
string | ✅ | 6–48 chars |
club_id |
UUID | - | Assign to a specific club (ownership verified) |
is_active |
boolean | - | Default true |
Use the canonical field club_id.
Update: All fields optional. The uniqueness check on email excludes the current record.
Limit gate: staff_members_limit
Member endpoints
All member endpoints are prefixed with /member and require a member Integration API key.
Profile
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/member/profile |
read |
Get own profile |
PUT |
/member/profile |
write:profile |
Update own profile |
Show response: id, name, email, locale, unique_identifier, avatar, birthday, gender, phone, phone_country, time_zone, currency, email_verified_at, consents, is_anonymous, has_interacted, first_interaction_at, created_at
Update body:
| Field | Type | Notes |
|---|---|---|
name |
string | Max 200 chars |
locale |
string | Installed locale code (e.g. en_US, fr_FR) |
time_zone |
string | IANA time zone (e.g. America/Mexico_City) |
birthday |
date or null | YYYY-MM-DD, before today. null removes it |
gender |
string or null | male, female, prefer_not_to_say, or null |
phone |
string or null | E.164 (e.g. +5215512345678). null removes it |
phone_country |
string | Two-letter country (e.g. MX). Required with phone |
consents |
object | loyalty_emails and/or marketing_emails, each {"state": "subscribed"} or {"state": "not_subscribed"}. Needs an email address on the account |
Every field is optional; send only what changes. Email and password cannot change via API. See Member endpoints for the phone checks and consent records.
Balance & cards
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/member/balance |
read |
All card balances in one call |
GET |
/member/cards |
read |
List enrolled cards (paginated) |
GET |
/member/cards/{id} |
read |
Get card detail + balance |
Balance response per card: card_id, card_title, balance, currency
Card detail response: id, name, title, description, currency, balance, bg_color, text_color, is_active
Transaction history
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/member/transactions |
read |
All transactions across all cards |
GET |
/member/transactions/{cardId} |
read |
Transactions for a specific card |
Response per transaction: id, card_id, card_title, event, points, points_used, purchase_amount, currency, reward_title, reward_points, note, expires_at, created_at, voided_at
Member transaction responses carry member-relevant fields only; partner emails, internal config, and admin metadata never appear.
Rewards
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/member/rewards |
read |
List available rewards on enrolled cards |
POST |
/member/rewards/{id}/claim |
write:redeem |
Check reward eligibility (no saved claim) |
Rewards list response per item: id, title, description, points, image, active_from, expiration_date, can_afford, best_balance, deficit
The can_afford and deficit fields enable "You need X more points" messaging.
Claim: This endpoint checks the member's reward eligibility and returns claim_submitted. It does not deduct points, save a pending claim, or notify staff. Your integration must arrange the staff handoff and use the normal redemption workflow to complete it.
Claim response: status (claim_submitted), reward_id, reward_title, points_required, card_id, card_title, current_balance, message
Achievements (member view)
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/member/achievements |
read |
Progress and earned achievements, grouped per business |
Optional business query parameter selects a business; the default is the one with the most recent loyalty activity. The earned collection paginates with page/per_page. See Member endpoints.
Discover
Members discover cards via homepage browsing or QR code/shared link scanning.
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/member/discover |
read |
Browse homepage-visible cards |
POST |
/member/discover/resolve |
read |
Resolve a URL/UUID/identifier to a card |
POST |
/member/discover/follow |
write:profile |
Save card to "My Cards" |
POST |
/member/discover/unfollow |
write:profile |
Remove card from "My Cards" |
Browse
Returns all active, visible cards across all partners grouped by type:
Response: data.cards[], data.stamp_cards[], data.vouchers[]
Each item includes type-specific display fields and the member's enrollment/follow status.
Resolve
POST /member/discover/resolve
| Field | Type | Notes |
|---|---|---|
url |
string | A card URL from QR code |
identifier |
string | UUID or unique_identifier (e.g. 344-319-665-971) |
You must provide one of url or identifier.
Supported URL patterns:
https://example.com/{locale}/card/{uuid}https://example.com/{locale}/stamp-card/{uuid}https://example.com/{locale}/voucher/{uuid}https://example.com/{locale}/follow/{uuid}
Follow / unfollow
POST /member/discover/follow
POST /member/discover/unfollow
| Field | Type | Required |
|---|---|---|
card_id |
UUID | ✅ |
Follow is idempotent. Calling it twice is safe.
Admin endpoints
All admin endpoints are prefixed with /admin and require an admin Integration API key.
Partners
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/admin/partners |
read:partners |
List all partners |
GET |
/admin/partners/{id} |
read:partners |
Get partner detail + permissions + usage |
PATCH |
/admin/partners/{id}/permissions |
write:partners |
Update partner permissions & limits |
POST |
/admin/partners/{id}/activate |
write:partners |
Reactivate a partner |
POST |
/admin/partners/{id}/deactivate |
write:partners |
Deactivate a partner |
List query parameters:
| Parameter | Type | Description |
|---|---|---|
is_active |
boolean | Filter by active status |
search |
string | Search by name or email |
per_page |
int | Results per page |
Partner detail response: id, name, email, locale, currency, time_zone, is_active, avatar, created_at, permissions{}, usage{}
Permissions body (all optional):
| Field | Type | Notes |
|---|---|---|
loyalty_cards_permission |
boolean | Allow loyalty cards |
loyalty_cards_limit |
integer | Card limit (-1 = unlimited) |
stamp_cards_permission |
boolean | Allow stamp cards |
stamp_cards_limit |
integer | Stamp card limit |
vouchers_permission |
boolean | Allow vouchers |
voucher_batches_permission |
boolean | Allow voucher batches |
vouchers_limit |
integer | Voucher limit |
rewards_limit |
integer | Reward limit |
staff_members_limit |
integer | Staff limit |
email_campaigns_permission |
boolean | Allow email campaigns |
activity_permission |
boolean | Allow activity logs |
agent_api_permission |
boolean | Allow agent API |
apple_wallet_permission |
boolean | Override Apple Wallet access for this partner |
agent_keys_limit |
integer | Integration API key limit |
cards_on_homepage |
boolean | Show cards on homepage |
Deactivate invalidates all associated Integration API keys on the spot.
The agent API cannot create or delete partners. They self-register, or admins manage them in the admin dashboard.
Members (platform-wide)
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/admin/members |
read:members |
List all members platform-wide |
GET |
/admin/members/{id} |
read:members |
Get member detail + card balances |
PATCH |
/admin/members/{id} |
write:members |
Update a member (admin_update_member) |
List query parameters:
| Parameter | Type | Description |
|---|---|---|
search |
string | Search by name, email, or unique_identifier |
is_active |
boolean | Filter by active status |
per_page |
int | Results per page |
Member detail response: id, name, email, unique_identifier, locale, is_active, is_anonymous, created_at, birthday, gender, phone, phone_country, time_zone, currency, email_verified_at, consents, accepts_emails, accepts_loyalty_emails, card_balances[]. The list returns the same profile fields and consents for each member.
Each card_balance includes: card_id, card_title, club_name, balance, currency
PATCH accepts birthday, gender, and phone with phone_country in the same formats as PUT /member/profile, next to the member's name, email, language, time zone, active switch, and email choices. See Admin endpoints.
Stored-money oversight
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/admin/money/overview |
Explicit read:money |
List accounts or sales across businesses |
GET |
/admin/money/records/{kind}/{id} |
Explicit read:money |
Get an account or sale with history |
Use kind=accounts or kind=sales on the overview, or the corresponding path segment for a record. These reads have no prepaid-sales plan gate. The admin scope never includes read:money. See admin money oversight for filters and response fields.
Analytics
| Method | Endpoint | Scope | Description |
|---|---|---|---|
GET |
/admin/analytics/overview |
read:analytics |
Platform-wide metrics |
GET |
/admin/analytics/partners/{id} |
read:analytics |
Per-partner metrics |
Overview response: total_partners, active_partners, total_members, total_cards, total_stamp_cards, total_vouchers, transactions_today, transactions_this_week, transactions_this_month
Per-partner response: partner_id, partner_name, is_active, loyalty_cards, stamp_cards, vouchers, rewards, staff_members, total_transactions, transactions_today, total_members_enrolled