---
title: maintenance.setPrice | Doing Work API
description: Replace a plan's priced lines (owner or office; you write them, never AI), and optionally its tax rate. Applies from the next term's invoice; invoices alre
url: https://doingwork.work/docs/reference/maintenance-setprice/
---

# maintenance.setPrice

Replace a plan's priced lines (owner or office; you write them, never AI), and optionally its tax rate. Applies from the next term's invoice; invoices already made keep their price.

|  |  |
|---|---|
| Who | Agents can call this |
| REST | `POST /v1/maintenance-plans/price` |
| MCP tool | `maintenance_setPrice` |
| Writes | yes, send an Idempotency-Key |
| Area | [Scheduling and visits](https://doingwork.work/docs/reference/#scheduling-and-visits) |

## When to use it

Replace a plan's priced lines (owner or office; you write them, never AI), and optionally its tax rate. Applies from the next term's invoice; invoices already made keep their price.

## What to tell the owner

Say what you did in plain words and what happens next.

## Input

| Field | Type | Required |
|---|---|---|
| `plan_id` | string (uuid) | yes |
| `lines` | array | yes |
| `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

```http
POST https://doingwork.work/v1/maintenance-plans/price
content-type: application/json
Idempotency-Key: 3f1c...

{
  "plan_id": "00000000-0000-4000-8000-000000000000",
  "lines": [
    {
      "description": "40 gallon gas heater, installed",
      "quantity": "...",
      "unit_price_minor": 50000
    }
  ]
}
```

## 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](https://doingwork.work/docs/errors/). |
