Overview / Kiosk / Verify the SMS code

Verify the SMS code

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

Step two of phone sign-in. A correct code returns the same masked recognition as the lookup; pass customer_id when creating the order. A wrong code returns validation_failed with details.reason = wrong_code and details.attempts_left; an expired or used-up code returns details.reason = expired and a new code must be requested.

Required scope kiosk.read
Success status200

Request body

FieldTypeDescription
phone * string —
code * string The digits from the SMS.

Examples

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

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

HTTP 200 · application/json

{
    "data": {
        "found": true,
        "customer_id": "01m43myc2w7vxbztqc8mzwjadc",
        "masked_name": "Ze**** Ak***",
        "points": 120
    }
}