fishbowlAPI API

Managed Mobile Loyalty API

One secretless, mobile-only contract for Fishbowl-managed native applications.

Production: https://api.fishbowl.com/api/loyalty/mobile/v1
Certification: https://api-staging.fishbowl.com/api/loyalty/mobile/v1
The URL carries version v1; do not send a date-version header.

Developer setup

Fishbowl creates one public registration for each independently released branded app. The operator selects only the owning client and app name. The developer receives exactly two non-secret values:

There is no client secret, scope selection, program allowlist, or separate staging registration. The registration automatically covers every current and future loyalty program owned by its client. Testing still uses designated test members because the API hosts share loyalty data.

Authentication

  1. Generate a high-entropy PKCE verifier and its S256 challenge.
  2. Call POST /auth/start with applicationId, the supplied callback URI, the challenge, and the guest's phone, email, or both. If both are supplied, verify the separate codes before enrollment.
  3. Call POST /auth/verify with the challenge ID, verification code, same identity, and application ID.
  4. Exchange the returned authorization code at POST /oauth/token with the original PKCE verifier.
  5. Store the one-hour guest Bearer token using the platform's protected storage.

The callback is an OAuth binding value in the current OTP flow. The app repeats it during token exchange; Fishbowl does not navigate the guest to it today.

Mobile operations

NeedOperation
List the verified guest's accountsGET /accounts
Enroll the verified guestPOST /accounts
Verify an additional phone or email on an accountPOST /accounts/{accountId}/contacts/start, then /contacts/verify
Read allowed profile dataGET /accounts/{accountId}
Update name or birthdatePATCH /accounts/{accountId}
Read points, rewards, and tier progressGET /accounts/{accountId}/summary
Read active store-targeted promotional imagesGET /mobile-promotions?storeId={storeId}
Identify participating loyalty locationsGET /participating-stores
Read games and eligibility at a selected storeGET /accounts/{accountId}/games?storeId={storeId}
Play a game and receive Fishbowl's recorded outcomePOST /accounts/{accountId}/games/{gameId}/plays
Preview order eligibilityPOST /accounts/{accountId}/inquiries
Create a short-lived POS claimPOST /accounts/{accountId}/redemption-intents

The access token is bound to the verified guest, registered application, and owning client. An account outside those boundaries is not returned. Enrollment uses only independently verified contact values; the device cannot substitute another phone or email. Profile updates cannot change identity fields.

Phone and email

Signup accepts phone, email, or both in one auth/start request. When both are supplied, Fishbowl sends separate one-time codes and returns a session ID plus a challenge ID for each contact. Call auth/verify separately for each challenge using that session ID. The first successful verification returns pending: true without an authorization code; the second returns the authorization code. Both contacts must be verified before token exchange or enrollment. Each successful verification links only that contact to the same guest identity. Enrollment writes and matches only verified contacts. An unverified value is held only in the short-lived auth challenge, never treated as trusted. For an existing account, contacts/start and contacts/verify can add another verified contact later. Account reads return contactVerification.emailVerified and phoneVerified; a pre-existing field is not automatically verified. A contact owned by another guest or matching another member in the program fails with 409 IDENTITY_CONFLICT for manual resolution.

Retries

The SDK automatically supplies retry protection for enrollment and profile updates. App developers do not need to create another identifier or header.

Promotions, participation, and games

After authentication, pass the selected store UUID to mobile-promotions to receive only active images scheduled for that store, with start and end timestamps. The selected lodge remains on the device; this does not use Fishbowl's guest email-targeting favorite-store field. participating-stores returns explicit store UUID lists by loyalty program. The program remains owned by its client or brand; an omitted store is not participating in the mobile rollout.

For an enrolled account, games returns configured wheel or scratch outcomes plus eligibility.canPlay and eligibility.nextPlayAt at that store. To play, create one random attemptId, persist it before the request, and send it as Idempotency-Key with JSON {"storeId":"..."}. Retry with the same key after a timeout or app restart. Fishbowl checks limits, draws and records the outcome, and issues the configured points or wallet reward; the app only animates to the returned outcomeId. A replay returns the same result. Do not calculate or submit a winning outcome on the device.

Stores and Acquire questions

Store discovery remains on the existing Public API at GET /api/public/store; Acquire question definitions remain at GET /api/public/question. Those routes require a client-scoped X-API-Key and X-Delightable-Client-Uuid. Keep the key on the app's controlled server, not in the native bundle. The key is not limited to those read operations. Question answers and marketing subscriptions remain in Acquire, not in this loyalty API.

Server-only features

A native app cannot directly award points, accrue purchases, redeem a reward, reverse ledger entries, resolve arbitrary guests, or administer loyalty. Game outcomes and awards are server-side.

SDK and contract

The client handles request headers, PKCE generation, token exchange, optional protected-storage adapters, and response errors. The app supplies its platform-specific secure storage and networking implementation.

One rule going forward

Fishbowl-managed native apps receive an applicationId and callbackUri, then use only this mobile URL and contract. New native functionality is added here without adding another profile or date branch to the shared loyalty URL.