---
title: "Verify Code"
method: POST
path: "/api/v1/sms/verify-code"
tags: ["sms"]
---

# Verify Code

`POST /api/v1/sms/verify-code`

## Request

- Base URL: `https://api.food24.kz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.food24.kz/api/v1/sms/verify-code`
- Auth: none declared
- TypeScript: <https://skmtc.dev/food24/apis/goodfood/docs/api/v1/sms/verify-code/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- VerifyCodePayload
  - `phone` string, required
  - `code` string, required
  - `name` string, nullable
  - `location_id` integer, nullable

## Response `200`

Successful Response

- CustomerSession: Ответ на вход, обновление и обмен токена. Refresh уходит отдельно, в cookie.
  - `ok` boolean
  - `token` string, required
  - `phone` string, required
  - `name` string, nullable
  - `customer_id` integer, nullable
  - `expires_in` integer, required
  - `is_blocked` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/food24/apis/goodfood.md) - [All operations](https://skmtc.dev/food24/apis/goodfood/llms.txt) - [OpenAPI document](https://skmtc.dev/food24/apis/goodfood/revisions/f75c731597d3?raw)
