Overview / Kiosk / Recognise a customer by phone

Recognise a customer by phone

post https://api.flactrum.com/v1/kiosk/customer-lookup

The kiosk asks "are you a member?" before the menu. The guest types a phone number and, if an account matches, gets a partly masked name back and their order earns loyalty points. A kiosk stands in public, so this endpoint recognises rather than discloses: it returns the masked name and the point balance, never the phone, e-mail or address. Unmatched numbers simply return found: false. It carries its own rate limit even for paired devices, so the endpoint cannot be used to sweep through numbers. Pass the returned customer_id as customer_id when creating the order.

Required scope kiosk.read
Success status200

Request body

FieldTypeDescription
phone * string As the guest typed it. Common Turkish spellings of the same number (0555…, +90555…, 555…) all match.

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X POST 'https://api.flactrum.com/v1/kiosk/customer-lookup' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "phone": "05551112233"
}'

HTTP 200 · application/json

{
    "data": {
        "found": true,
        "customer_id": "01m43mybd2eghqd179gwvk8aey",
        "masked_name": "Ab********* Yı****",
        "points": 240
    }
}