Transactional Loyalty API
A small server-to-server checkout API for approved POS and kiosk partners.
Fishbowl-Loyalty-Version: 2026-09-12 with every authenticated request. Fishbowl provisions the partner credentials, client boundary, loyalty-program mappings, and fixed transaction permissions.Use this API for checkout
This contract is for systems that need to identify a loyalty member, inquire against the current order, redeem one selected reward, and accrue the completed purchase. It is vendor-neutral; do not copy GoTab's webhook payload or event names.
Mobile game and engagement backends use the separate Mobile Application Backend API. Fishbowl-managed native applications use the Managed Mobile Loyalty API. Neither mobile contract should be substituted for checkout.
Environments and data
Fishbowl issues one confidential application credential for each partner and restaurant customer. The staging and production API hosts currently use the same loyalty data, so Fishbowl does not issue a second registration merely for staging. Exchange the same application credentials at the token endpoint on the host you are calling; an access token obtained from one host must not be reused on another.
Staging calls can affect real loyalty records. Use only Fishbowl-designated test members, locations, and transaction IDs until launch approval.
Authentication
Calls must originate from the partner's secure backend. Never place the client secret in kiosk software or another physically accessible client. Fishbowl supplies the client_id and client_secret. Exchange them for a one-hour Bearer token and cache that token until shortly before it expires.
curl -sS https://api.fishbowl.com/api/l/loyalty/oauth/token \
-H 'Content-Type: application/json' \
--data '{
"grant_type": "client_credentials",
"client_id": "<Fishbowl application UUID>",
"client_secret": "<server-only secret>"
}'
Do not request scopes. Fishbowl assigns the fixed transactional permission profile. Use the returned token as:
Authorization: Bearer <access_token>
Fishbowl-Loyalty-Version: 2026-09-12
Content-Type: application/json
The checkout flow
- Resolve the verified guest and retain the returned
accountId. - Inquire with the current order to receive eligible rewards and their discount amounts.
- The guest selects one returned
rewardId; redeem it before final tender. - After the sale completes, accrue the final qualifying purchase amount.
No separate retry header is required. Fishbowl makes guest resolution retry-safe internally. For redemption and accrual, use the same stable transactionId for the sale and resend the unchanged request if a network retry is necessary.
1. Resolve the guest
POST /accounts/resolve
{
"phoneNumber": "+14105551212",
"phoneVerified": true,
"createIfMissing": false
}
The partner backend must verify possession of the phone before asserting phoneVerified: true. The response includes the stable accountId used in the remaining calls. Fishbowl configures the restaurant and program mapping; the partner should not infer it from a brand name. When the credential covers one loyalty program, omit programId. If Fishbowl explicitly configures multiple programs, Fishbowl supplies the program IDs and the partner sends the applicable programId during resolution.
Order model
Inquiry and redemption use the same order shape. Monetary amounts are decimal currency units, such as 14.50 dollars—not integer cents. subtotal is the qualifying subtotal before the loyalty reward being evaluated. Each lineItemId must be unique and stable for the life of the transaction.
{
"order": {
"subtotal": 14.50,
"items": [
{
"lineItemId": "line-1",
"productId": "combo-1",
"name": "Chicken Combo",
"categoryId": "combos",
"categoryName": "Combos",
"unitPrice": 7.25,
"quantity": 2,
"tags": ["entree"]
}
]
}
}
Only lineItemId, unitPrice, and quantity are always required. Send product/category identifiers and tags when Fishbowl reward rules use them. Set discounted, comped, or voided only when true for that line.
2. Inquire
POST /accounts/{accountId}/inquiries
{
"order": {
"subtotal": 14.50,
"items": [
{ "lineItemId": "line-1", "productId": "combo-1", "unitPrice": 14.50, "quantity": 1 }
]
}
}
Inquiry is read-only. It returns every reward eligible for this member and order; it does not reserve, select, or consume a reward.
{
"success": true,
"message": "Loyalty inquiry completed.",
"data": {
"points": { "available": 250, "monetaryValue": 2.50 },
"rewards": [
{
"rewardId": "44444444-4444-4444-8444-444444444444",
"name": "$5 Off",
"description": "Save $5 on an eligible combo.",
"discountAmount": 5.00,
"lineItemDiscounts": [
{ "lineItemId": "line-1", "discountAmount": 5.00 }
]
}
]
}
}
discountAmount is the total discount to display and apply for the reward. lineItemDiscounts allocates an item-scoped reward to the partner's line IDs. An empty array means the reward is order-wide rather than assigned to a specific line.
3. Redeem the selected reward
POST /accounts/{accountId}/redemptions
{
"transactionId": "tillster-check-84721",
"rewardId": "44444444-4444-4444-8444-444444444444",
"order": {
"subtotal": 14.50,
"items": [
{ "lineItemId": "line-1", "productId": "combo-1", "unitPrice": 14.50, "quantity": 1 }
]
}
}
rewardId is copied directly from the inquiry response. transactionId is Tillster's stable identifier for the sale. Fishbowl re-evaluates the reward against the submitted order and current member state, consumes it once, and returns the authoritative discount. HTTP 409 with details.code = REWARD_NOT_APPLIED means the reward is no longer applicable; refresh the inquiry rather than tendering the stale discount.
4. Accrue the completed sale
POST /accounts/{accountId}/accruals
{
"transactionId": "tillster-check-84721",
"amount": 9.50
}
Call accrual only after the sale completes. Use the same transactionId used for redemption. amount is the final qualifying purchase amount after non-qualifying items and applied discounts. A successful response reports status: applied and pointsAwarded. A 202 response with status: queued means Fishbowl accepted the request for reconciliation; do not submit it again.
Errors and retries
| Status | Meaning | Partner action |
|---|---|---|
| 400 | Invalid version, order, amount, or identifier | Correct the request |
| 401 | Invalid or expired token | Refresh once, then investigate |
| 403 | Operation or restaurant boundary not granted | Do not retry without Fishbowl configuration |
| 404 | Member is absent or outside the application boundary | Treat it as unavailable |
| 409 | Reward rejection, account ambiguity, or a conflicting retry | Inspect details.code and preserve the original request |
| 429 | Traffic limit | Honor Retry-After and back off |
| 5xx | Retryable service failure | Retry with backoff; keep the same transactionId and request body |