Buy a gift card
buy_gift_cardBuy a gift card for a person, paid online: the clinic's own (clinic_id) or GLØDI's on glodi.no. Give the amount, the buyer's name, mobile number and e-mail, and the recipient if it is a present. A code goes to the buyer; confirm_with_code then answers with the payment link, also sent by e-mail. Nothing is paid until the person pays on that 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": {
"amount_nok": "<amount_nok>",
"name": "<name>",
"phone": "<phone>",
"email": "<email>"
},
"name": "buy_gift_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The person's full name, as they say it. | |
| Yes | The buyer's e-mail: the receipt and the payment link go there. | ||
| phone | Yes | The person's mobile number. The code goes there by SMS. | |
| locale | No | Answer language: nb (Norwegian) or en. | nb |
| message | No | A greeting on the gift card. | |
| clinic_id | No | The clinic_id find_clinics returns. Never build it from a name. A clinic site needs none. | |
| from_name | No | ||
| amount_nok | Yes | The gift card value in NOK. | |
| delivery_mode | No | ||
| payment_method | No | How the person pays on the payment link: card or Vipps. | card |
| recipient_name | No | ||
| recipient_email | No | Where the gift card is sent. | |
| recipient_phone | 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. |