Mobile Application Backend API
The frozen confidential-backend contract for approved mobile game and engagement integrations.
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
| Experience | Operation | Rule |
|---|---|---|
| Find or enroll a verified guest | POST /accounts/resolve | The backend verifies the phone before asserting phoneVerified: true |
| Show member details | GET /accounts/{accountId} | Persist the stable Fishbowl accountId |
| Show points and rewards | GET /accounts/{accountId}/summary | Displayed rewards are revalidated at checkout |
| Render the member QR | Use returned posLookupValue | Render the opaque value exactly |
| Preview an order | POST /accounts/{accountId}/inquiries | Optional and read-only |
| Award governed activity | POST /accounts/{accountId}/award-events | Only Fishbowl-configured event types are accepted |
| Correct an award | POST .../award-events/{awardEventId}/reversal | Only 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
- Verify possession of the guest's phone number in the application's trusted backend.
- Call
POST /accounts/resolvewith an E.164 phone number,phoneVerified: true, and the approved program when required. - Store the returned
accountId. - Render the returned
posLookupValueexactly 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
- Use a durable idempotency key for each logical mutation and reuse the unchanged request on retry.
- Handle 409 responses explicitly.
- On HTTP 429, honor
Retry-Afterordetails.retryAfterSeconds, then use bounded exponential backoff. - Use the same registration on both API hosts, but do not reuse an access token across hosts.
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.