fishbowlAPI API

Mobile Application Backend API

The frozen confidential-backend contract for approved mobile game and engagement integrations.

Existing integration contract: Use https://api.fishbowl.com/api/l/loyalty with contract version 2026-07-30. This is not the native-app API and it is not the POS/kiosk transaction contract.

Architecture

Mobile application
        |
        v
Application's confidential backend
        |
        | OAuth client credentials
        v
Fishbowl Mobile Application Backend API

The Fishbowl client secret and access token belong only on the application's secure backend. They must never be embedded in the mobile application. Fishbowl fixes each application's permissions, client and program boundaries, traffic allowance, and award rules.

Supported operations

ExperienceOperationRule
Find or enroll a verified guestPOST /accounts/resolveThe backend verifies the phone before asserting phoneVerified: true
Show member detailsGET /accounts/{accountId}Persist the stable Fishbowl accountId
Show points and rewardsGET /accounts/{accountId}/summaryDisplayed rewards are revalidated at checkout
Render the member QRUse returned posLookupValueRender the opaque value exactly
Preview an orderPOST /accounts/{accountId}/inquiriesOptional and read-only
Award governed activityPOST /accounts/{accountId}/award-eventsOnly Fishbowl-configured event types are accepted
Correct an awardPOST .../award-events/{awardEventId}/reversalOnly the owning application may reverse it

Authentication and boundaries

Exchange the Fishbowl-issued client_id and client_secret using OAuth client_credentials. The access token identifies the application and carries its configured permissions. Send Fishbowl-Loyalty-Version: 2026-07-30 with authenticated requests.

The registration remains restricted to its approved Fishbowl client and loyalty-program allowlist. Changing the version header cannot grant another profile's operations. Fishbowl's staging and production hosts share application registrations and loyalty data, so development must use the staging hostname and designated test members.

Award policy

Fishbowl configures each permitted eventType, fixed or bounded point value, maximum awards per member per day, and optional expiration. The integration submits the approved event name and its durable externalEventId; it cannot invent award rules at runtime.

Reversal ownership follows the authenticated application. Reversals are append-only and record the application, award, reason, idempotency key, reversal identifier, and timestamp.

Enrollment and QR flow

  1. Verify possession of the guest's phone number in the application's trusted backend.
  2. Call POST /accounts/resolve with an E.164 phone number, phoneVerified: true, and the approved program when required.
  3. Store the returned accountId.
  4. Render the returned posLookupValue exactly in the member QR code.

If more than one member matches, Fishbowl returns HTTP 409 with details.code = AMBIGUOUS_ACCOUNT. The integration must not guess.

Retry and traffic rules

What this contract does not do

This backend contract does not perform direct checkout accruals or redemptions and must not be substituted for the Transactional Loyalty API. Fishbowl-managed native apps use the separate Managed Mobile Loyalty API and never receive a client secret.