Join the loyalty programme
join_loyaltyEnrol the authenticated customer in the restaurant loyalty programme. Returns the member id, current points balance, and tier. Safe to call even if the customer is already enrolled — returns existing data in that case. Requires an active agent_session_id and the customer email or phone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Customer email (either email or phone required). | ||
| phone | No | Customer phone in E.164 format (either email or phone required). | |
| display_name | No | Optional display name shown in the loyalty dashboard. | |
| agent_session_id | Yes | Active session id from start_order_session. |