Add or change one fee
save_feeAdd a fee, or change one (give its id; send only the fields to change). A second fee for the same thing in overlapping months is refused. Owner only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_fee"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The fee to change; leave out to add one (then name, category, charged, per, first_month and last_month are needed). | |
| per | No | ||
| mode | No | ||
| name | No | What the business calls it, up to 120 characters. | |
| note | No | Up to 200 characters. | |
| charged | No | ongoing: every period while enrolled; on_enrolment: once on joining; when_used: each time it is used. | |
| lessons | No | Lessons the amount buys. | |
| category | No | ||
| class_id | No | Narrow it to one class. | |
| currency | No | 3-letter code; defaults to the business's currency. | |
| prorated | No | Charged in part for a part period. | |
| confirmed | No | false marks a price still to confirm with the business. | |
| level_ids | No | Narrow to these levels; empty means every level. | |
| branch_ids | No | Narrow to these branches; empty means every branch. | |
| last_month | No | In force until YYYY-MM. | |
| amount_rule | No | fixed (needs amount_cents), free, one_period_fee (equal to one period's tuition), ask (ask the branch), tbc. | |
| first_month | No | In force from YYYY-MM. | |
| nth_subject | No | This price is for the 1st, 2nd... subject a child takes. | |
| subject_ids | No | Narrow to these subjects; empty means every subject. | |
| amount_cents | No | The amount in cents, as the business states it (with or without tax: see includes_gst). | |
| includes_gst | No | The amount already includes the business's tax. | |
| period_label | No | e.g. Term 3. | |
| days_per_week | No | Days a week this price covers. |