Register for an arrangement
register_for_eventRegister a person for an arrangement or course: session_id for one session or arrangement_id for the whole one (from list_events), pricing_tier_id when it has tiers, and the person's name, mobile number and e-mail. A code goes to the person; confirm_with_code registers them and, for a paid arrangement, answers with the payment link.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"phone": "<phone>",
"email": "<email>"
},
"name": "register_for_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The person's full name, as they say it. | |
| note | No | A short note to the clinic in the person's words. Never health details. | |
| Yes | The person's e-mail: the confirmation and any payment link go there. | ||
| phone | Yes | The person's mobile number. The code goes there by SMS. | |
| guests | No | People who come with the person (an open-house or time-slot arrangement); 0 for the person alone. | |
| locale | No | Answer language: nb (Norwegian) or en. | nb |
| session_id | No | One session (session_id from list_events). | |
| arrangement_id | No | The whole arrangement (arrangement_id from list_events). | |
| payment_method | No | How the person pays on the payment link: card or Vipps. | card |
| pricing_tier_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | code_sent: ask the person for the code, then call confirm_with_code. | |
| channel | Yes | sms or email. | |
| purchase | Yes | ||
| expires_at | Yes | When the code stops working. | |
| code_sent_to | Yes | The masked phone or email the code went to. | |
| confirmation_id | Yes | Pass it to confirm_with_code with the code. |