---
title: "Set Invoice Parcel Count Route"
method: POST
path: "/api/finance/invoices/{invoice_id}/parcel-count"
tags: ["finance"]
---

# Set Invoice Parcel Count Route

`POST /api/finance/invoices/{invoice_id}/parcel-count`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/finance/invoices/{invoice_id}/parcel-count`
- Auth: none declared

Put the month's parcel count into an existing per_parcel draft and
reprice it from the contract.

Frederick, 2026-08-04: "Iowa is the only thing that remains in draft
form... once I fill in the information, the amount of parcels, a send
button on it." The billing tick raises that invoice on the 1st with
everyone else's, before the count is knowable; this is how the real
number gets into it afterwards. Repricing runs through the same
derive_contract_billing the generator uses, so the rate and the line
wording come from the contract, never from the caller.

CHANGED 2026-10-04 (APPENDED; the quote above is the 2026-08-04 record):
Frederick, 2026-10-04: "I don't want to have it wait. Once I put the
number, the number parcels in, it should just go out the next business day
at 9 a.m. local time." Saving the count now also SCHEDULES the invoice's
send; the response carries `scheduled_send` ("Sends Mon Oct 5, 9:00 AM
CT"). The Send button still works and cancels the schedule.

## Path parameters

- `invoice_id` string, uuid, required

## Request body

- SetParcelCountRequest: The month's parcel count for a per_parcel draft. Frederick: "I have to plug in the data, the number of count, of parcels, and we don't know what that is until after the new month."
  - `parcel_count` integer, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
