Skip to main content
GET
List challenges
Lists restaurant challenges — reward campaigns a member completes to earn FLY. A challenge’s type sets how it’s completed: PAYMENT (spend), REFERRALS, DINES, or PASSPORT. The threshold object carries the relevant target for that type, and fly_reward is what the member earns. Pass the restaurant UUID you want challenges for (required); location optionally narrows the results to a single venue. Auth: API key in X-API-Key. The key must carry the read:restaurant_challenges scope.

Example

Response

Tasting note — the money fields (fly_reward, and the threshold.spend_threshold / threshold.minimum_spend amounts) are big-integer strings in the smallest unit of their currency — parse them with a big-integer type, never a float. The other thresholds (dine_threshold, referral_threshold) are plain integer counts. Currency casing isn’t guaranteed across endpoints; compare it case-insensitively.
FieldTypeNotes
typestringPAYMENT, REFERRALS, DINES, or PASSPORT.
thresholdobjectTargets for completion; which fields are set depends on type.
fly_rewardobjectFLY earned on completion.
termsarrayHuman-readable terms.