Planned invoices
A planned invoice is one entry of a project’s invoice plan: a forecast of a future invoice, with a planned date and an amount. It is not an invoice. When an invoice is raised from the plan, the planned invoice links to it and becomes invoiced, then paid.
The planned invoice form in Drum, these endpoints and the MCP tools in Billing run the same operations, so a change is refused or saved for the same reasons everywhere.
Endpoints
| Method and path | Does |
|---|---|
GET /api/v1/planned_invoices |
Lists the planned invoices you can read |
GET /api/v1/planned_invoices/:id |
One planned invoice |
POST /api/v1/planned_invoices |
Adds a planned invoice to a project |
PATCH /api/v1/planned_invoices/:id |
Changes a pending planned invoice |
DELETE /api/v1/planned_invoices/:id |
Deletes a pending planned invoice for good |
Permissions
Each call needs the API permission of its verb (api_read, api_create, api_update or api_delete). Then, as in Drum:
| Action | Allowed for |
|---|---|
| Read | An admin, read_invoices, or a project role that can view planned invoices on the project |
| Create | An admin, create_invoices, or a project role that can create planned invoices |
| Update | An admin, update_invoices, or a project role that can update planned invoices |
| Delete | An admin, delete_invoices, or a project role that can delete planned invoices |
The legacy project role permission to manage project invoices allows all four.
The permissions are separate. A caller with a create, update or delete permission and no read permission can still make that change, but sees an empty list, and a create or update answers only id and status. A planned invoice you can neither read nor change answers 404 (planned_invoice_not_found), so its existence is not disclosed. One you can read but not change answers 403 (not_authorized).
The planned invoice
{
"id": 3301,
"project_id": 20488,
"invoice_id": null,
"status": "pending",
"amount_cents": 1250000,
"currency": "AUD",
"planned_date": "2026-12-31",
"project_number": "2026-088",
"project_name": "Riverside fit-out",
"billing_type": "fixed_amount",
"percentage": 12.5,
"description": "Design development",
"created_at": "2026-11-26T01:00:00Z",
"updated_at": "2026-11-26T01:00:00.123456Z"
}
| Field | Meaning |
|---|---|
status |
pending, invoiced or paid. Only an invoice changes it, and no write takes it |
invoice_id |
The invoice raised for it, or null |
amount_cents |
The planned amount in integer cents, tax exclusive |
planned_date |
The date the invoice is planned for |
billing_type |
fixed_amount: amount_cents is the plan. percentage: the amount follows percentage of the project’s invoicing budget, and Drum keeps it up to date |
percentage |
The share of the project’s invoicing budget, 0 to 100. For a fixed amount Drum works it out from the amount. null when the project has no budget |
description |
255 characters or fewer, or null |
updated_at |
UTC to the microsecond, so you can send it back as expected_updated_at |
GET /api/v1/planned_invoices
Lists the planned invoices you can read, earliest planned date first. Paginated (see Pagination). The response is an array of planned invoices.
| Parameter | Meaning |
|---|---|
project_id |
The planned invoices of one project, or of several (project_id[]) |
status |
pending, invoiced or paid, or several (status[]) |
start_date, end_date |
Planned on or after, or on or before, this date (yyyy-mm-dd) |
A filter value that does not parse answers 422 invalid_input with its field.
curl -H "Authorization: Bearer $DRUM_API_TOKEN" \
"https://app.getdrum.com/api/v1/planned_invoices?project_id=20488&status=pending"
GET /api/v1/planned_invoices/:id
Returns one planned invoice.
POST /api/v1/planned_invoices
Adds a planned invoice to a project. Send the fields at the top level, or nested under planned_invoice. It answers 201 with the planned invoice.
| Field | Meaning |
|---|---|
project_id |
Required. A project whose planned invoices you can read |
planned_date |
Required. yyyy-mm-dd |
billing_type |
fixed_amount (default) or percentage |
amount_cents |
Required for fixed_amount. Not accepted for percentage |
percentage |
0 to 100 of the project’s invoicing budget. percentage only |
percentage_of_remaining_budget |
More than 0 and up to 100 of the budget that no other pending planned invoice holds yet. Drum sets the amount from it, rounded to the cent, and stores the matching percentage. percentage only, and not with percentage |
description |
255 characters or fewer |
A percentage planned invoice needs percentage or percentage_of_remaining_budget. To plan everything not planned yet, send percentage_of_remaining_budget: 100.
When the project limits its plan to its budget (a setting in Drum), a plan above the remaining budget, or pending percentages above 100%, answer 422 validation_failed.
Send an Idempotency-Key header to make a retry safe. The same key with the same body answers 200 with Idempotent-Replayed: true and the first planned invoice. See Idempotency keys.
curl -X POST https://app.getdrum.com/api/v1/planned_invoices \
-H "Authorization: Bearer $DRUM_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 7d2c1f0e-plan-stage-2" \
-d '{"project_id": 20488, "planned_date": "2027-02-26", "amount_cents": 1200000, "description": "Stage 2"}'
PATCH /api/v1/planned_invoices/:id
Changes the fields you send on one pending planned invoice. It takes the fields of POST, except project_id: a planned invoice stays on its project. Fields you leave out stay the same, and null clears description.
- An edit that sends only
planned_dateordescriptionkeeps the stored amount and percentage. - Send
expected_updated_at, theupdated_atof your read. If the planned invoice changed since, by an edit or a recalculation of the project’s plan, the call answers409stale_stateand changes nothing. - An invoiced or paid planned invoice answers
422planned_invoice_not_pending. It is the record of its invoice, so change the invoice in Drum instead.
DELETE /api/v1/planned_invoices/:id
Deletes one pending planned invoice for good and answers 204. An invoiced or paid planned invoice answers 422 planned_invoice_not_pending.
Errors
| Status | code |
When |
|---|---|---|
403 |
not_authorized |
You can read the planned invoice but not make this change |
404 |
planned_invoice_not_found, project_not_found |
Missing, deleted, in another account, or not readable by you |
409 |
stale_state |
The planned invoice changed since the expected_updated_at read |
409 |
idempotency_key_reused |
The key was used before with a different body |
422 |
missing_input, invalid_input |
A field is missing or does not parse. field names it |
422 |
validation_failed |
The project’s budget limit refused the plan. errors gives the messages |
422 |
planned_invoice_not_pending |
The planned invoice is invoiced or paid |
Not in the API
Generating a default invoice schedule, deleting all pending planned invoices, bulk deletes and the project’s budget limit setting are in Drum only for now.
Related
- Billing tools on the MCP server
- Invoices and write-offs