# Workflow: Kaspi cashier

> How the customer connects their Kaspi Pay cashier on Bankemes while the agent waits.

1. `bankemes_start_cashier_connection` returns `url` (`/kaspi?connect=<cashier id>`).
2. Send it to the customer. On that page they sign in to Bankemes, enter the Kaspi cashier phone and the SMS code from Kaspi.
3. Poll `bankemes_check_cashier_connection` until `connected` is true.

The agent never receives phone codes, passwords or Kaspi session data, and must never ask for them. If the state becomes `cashier_reconnection_required`, repeat with the given URL.

Source: https://bankemes.kz/for-agents/workflows/connect-cashier
