---
title: invoices.createBatch | Doing Work API
description: Create many invoices at once (up to 100), each from a job and the lines the worker wrote. All or nothing. With send=true each is sent and its pay link retu
url: https://doingwork.work/docs/reference/invoices-createbatch/
---

# invoices.createBatch

Create many invoices at once (up to 100), each from a job and the lines the worker wrote. All or nothing. With send=true each is sent and its pay link returned.

|  |  |
|---|---|
| Who | Agents can call this |
| REST | `POST /v1/invoices/batch` |
| MCP tool | `invoices_createBatch` |
| Writes | yes, send an Idempotency-Key |
| Area | [Shop](https://doingwork.work/docs/reference/#shop) |

## When to use it

Create many invoices at once (up to 100), each from a job and the lines the worker wrote. All or nothing.

## What to tell the owner

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

## Input

| Field | Type | Required |
|---|---|---|
| `shop_id` | string (uuid) | yes |
| `send` | boolean | no |
| `items` | array | yes |
| `items[].job_id` | string (uuid) | yes |
| `items[].lines` | array | yes |
| `items[].lines[].description` | string | yes |
| `items[].lines[].quantity` | number | yes |
| `items[].lines[].unit_price_minor` | integer | yes |
| `items[].lines[].kind` | string (one of item, fee, discount) | no |
| `items[].lines[].taxable` | boolean | no |
| `items[].due_on` | string | no |
| `items[].memo` | string | no |
| `items[].tax_rate_id` | ['string', 'null', ' ', '(', 'u', 'u', 'i', 'd', ')'] | no |

## Example

```http
POST https://doingwork.work/v1/invoices/batch
content-type: application/json
Idempotency-Key: 3f1c...

{
  "shop_id": "00000000-0000-4000-8000-000000000000",
  "items": [
    {
      "job_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/). |
