Send a sign-in code by SMS
post
https://api.flactrum.com/v1/kiosk/customer-otp
Step one of phone sign-in on loyalty brands. When the number belongs to an active customer, a one-time code is texted to it; unmatched numbers get found: false and no SMS. The code lives for expires_in seconds and allows a handful of attempts. Asking again for the same number within resend_in seconds, or exceeding the per-kiosk hourly allowance, returns rate_limited with details.retry_after.
| Required scope | kiosk.read |
| Success status | 200 |
Request body
| Field | Type | Description |
|---|---|---|
| phone * | string | Turkish mobile number (5XX XXX XX XX) in any common spelling. |
| language | string | Language of the SMS text: tr, en or de. Anything else falls back to Turkish. |
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' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"phone": "555 111 22 33",
"language": "tr"
}'
HTTP 200 · application/json
{
"data": {
"found": true,
"sent": true,
"expires_in": 300,
"resend_in": 60
}
}