--- title: customers.setAutopay | Doing Work API description: Turn auto-pay on or off for a customer (owner or office). On needs a saved card. With auto-pay on, each invoice sent to them is charged to the card on its. url: https://doingwork.work/docs/reference/customers-setautopay/ --- # customers.setAutopay Turn auto-pay on or off for a customer (owner or office). On needs a saved card. With auto-pay on, each invoice sent to them is charged to the card on its due date (or the day it is sent if it has none). A failed charge is not retried; you get an email and the pay link still works. | | | |---|---| | Who | Agents can call this | | REST | `POST /v1/customers/autopay` | | MCP tool | `customers_setAutopay` | | Writes | yes, send an Idempotency-Key | | Area | [Shop](https://doingwork.work/docs/reference/#shop) | ## When to use it Turn auto-pay on or off for a customer (owner or office). On needs a saved card. ## What to tell the owner Say what you did in plain words and what happens next. ## Input | Field | Type | Required | |---|---|---| | `customer_id` | string (uuid) | yes | | `enabled` | boolean | yes | ## Example ```http POST https://doingwork.work/v1/customers/autopay content-type: application/json Idempotency-Key: 3f1c... { "customer_id": "00000000-0000-4000-8000-000000000000", "enabled": true } ``` ## 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/). |