---
title: "Credit Invoice Route"
method: POST
path: "/api/finance/invoices/{invoice_id}/credits"
tags: ["finance"]
---

# Credit Invoice Route

`POST /api/finance/invoices/{invoice_id}/credits`

## 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}/credits`
- Auth: none declared

Credit an invoice: it keeps its real amount and stops being owed.

Frederick, 2026-09-08: "not that we receive payment, that I can give
Pigeonly credits ... just so our accounting stays true." This never
touches invoice_payments, so a credit can never be mistaken for
collection in any figure that measures how well we get paid.

⛔A PERSON ISSUES EVERY CREDIT. Frederick, 2026-09-28: "No auto credit
on invoices ever. That must go through human." (ruling file
docs/01_decisions/rulings/2026-09-28-no-automatic-invoice-credits.md).
An agent principal is refused here whatever grants it holds -- a grant
is not a person -- and this route is the ONLY caller of
`service.credit_invoice` in app/ (pinned by
tests/modules/finance/test_only_a_person_credits_an_invoice.py).

## Path parameters

- `invoice_id` string, uuid, required

## Request body

- CreditInvoiceRequest
  - `amount` union, required
    - number
    - string
  - `reason` string, required
  - `credit_date` string, date, nullable

## 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)
