- Find a gift card or membership by number
Looks up a gift card or membership by its number and reports whether it can pay the visit resolved from appointment_id.
This is for instruments the client does not hold in Altegio: a gift card received as a present, or a membership bought at another location of the chain. Instruments already attached to the client come back from getVisit in payment_methods and need no search. Results carry the same applicability fields, so both are passed to createPayment the same way.
Anti-enumeration: unknown, foreign-tenant, expired, and not-applicable numbers share one client-visible outcome — empty result or 422 instrument_not_applicable — and never distinct codes that would reveal whether a number exists elsewhere. This search and number-bearing createPayment attempts share a per-credential, per-Location rate limit (429 + Retry-After).
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/appointments/{appointment_id}/payment_methods/search
- Preview resource API contract - endpoint surface is not live yethttps://api.alteg.io/api/v3/locations/{location_id}/appointments/{appointment_id}/payment_methods/search
- OAuth2
- RestrictedKey
curl -i -X GET \
'https://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/appointments/{appointment_id}/payment_methods/search?number=string&type=gift_card' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'OK
Requests left in the most constrained policy window that applies to this request.
On 429, seconds until the most constrained policy frees up; it equals Retry-After there. On a successful response it reports the length of that policy's window rather than the time left in the current one, so treat it as the window size, not as a countdown — the counter to pace against is RateLimit-Remaining.
Most constrained policy applied to the request, as <limit>;w=<window in seconds>.
{ "object": "list", "has_more": true, "next_cursor": "string", "data": [ { … } ] }