visits.setSeriesBilling
Set or update standing-price lines and billing_mode (off, per_visit_draft, per_visit_send, monthly_rollup) on a recurring visit series. Agent-authored standing lines stay drafts until an owner approves.
| Who | Agents can call this |
| REST | POST /v1/visits/recurring/billing |
| MCP tool | visits_setSeriesBilling |
| Writes | yes, send an Idempotency-Key |
| Area | Scheduling and visits |
When to use it
Set or update standing-price lines and billing_mode (off, per_visit_draft, per_visit_send, monthly_rollup) on a recurring visit series. Agent-authored standing lines stay drafts until an owner approves.
What to tell the owner
Say what you did in plain words and what happens next.
Input
| Field | Type | Required |
|---|---|---|
series_id | string (uuid) | yes |
billing_mode | string (one of off, per_visit_draft, per_visit_send, monthly_rollup) | yes |
lines | array | no |
lines[].description | string | yes |
lines[].quantity | number | yes |
lines[].unit_price_minor | integer | yes |
lines[].kind | string (one of item, fee, discount) | no |
lines[].taxable | boolean | no |
tax_rate_id | ['string', 'null', ' ', '(', 'u', 'u', 'i', 'd', ')'] | no |
Example
POST https://doingwork.work/v1/visits/recurring/billing
content-type: application/json
Idempotency-Key: 3f1c...
{
"series_id": "00000000-0000-4000-8000-000000000000",
"billing_mode": "off"
}Output
JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.
Errors
| Code | Status | What to do |
|---|---|---|
invalid_input, invalid_token, rate_limited | Can happen on any call. See errors. |