finance

Mark Invoice Sent

Changed on

v1 parity: POST /:id/mark-sent (packages/api/src/routes/invoices.ts: 1713-1720). Gated by invoice_lifecycle.assert_sendable — v1's three send-path gates (draft-only, org lifecycle, balance) all resolve to HTTP 422 there, not the generic 409 _handle_domain_errors gives ArSendBlocked elsewhere (that mapping is for the AR pipeline's own internal use, never exercised through a route today), so both InvoiceNotDraft and ArSendBlocked are mapped to 422 here directly.

The optional body is the design's "Mark sent" form (MarkSentRequest, open item S11-1, 2026-11-15): kept on the invoice as a record, moving no date. A "Sent on" after today is 422 (SentOnInTheFuture).

post/api/finance/invoices/{invoice_id}/mark-sent

Request

  • Base URL
    https://api.pigeonly.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Path parameters

invoice_id, string uuid required

Request body

MarkSentRequest nullable required

The design's "Mark sent" form (Finance Invoice Tools.dc.html; open item S11-1, 2026-11-15): how a draft that went out some other way was sent, on which day, and a note. Every field is optional and the body itself may be left off, so the invoice record's one-press "Mark Sent" keeps working. A record only. Frederick, 2026-11-15: "Due date is based on invoice not when it's sent." Ruling 2026-11-15-a-due-date-counts-from-the-invoice-date.

sent_via, 'mail' | 'email_outside_roost' | 'agency_portal' nullable
sent_on, string date nullable
note, string nullable

Response

Successful Response

object required

Changes