Update Company Settings Route
Changed onFinance -> Company settings: save edits to Pigeonly's billing identity -- company name, the invoice/remittance mailing address, remittance payee/address/instructions, bank name, ACH routing and account numbers, the invoice contact email and mailing instructions -- and the shipping-label return address (its own six fields, return_*; never the invoice address).
GATED ON finance:write, the Finance section's existing write key (held by the Finance role and by Frederick), for everything EXCEPT the bank.
⛔THE BANK IS FREDERICK'S ALONE. Frederick, 2026-09-24: "Nobody can change bank details except me." A save that touches a bank field needs finance:bank:write as well -- checked in the service (company_settings.update_company_settings) against the REAL signed-in person, so viewing as Frederick does not lend his key. Refused with 403 and nothing written. Every bank change that does go through DMs Frederick (send_bank_change_alarm); the response's bank_alarm says whether it reached him.
Every changed field is audited (company_settings_changes: who, when, which field, old/new -- bank numbers as last four). A bad routing or account number refuses the whole save with 422 and writes nothing.
Request
- Base URLhttps://api.pigeonly.com (the document declares no server; this is the origin it was published from)
- Authnone declared
Request body
PUT /api/finance/company-settings body. Every field is optional: only the fields the request actually carries are changed (exclude_unset), so the screen sends a bank number ONLY when somebody typed a new one -- the stored one is never round-tripped through the browser to be "unchanged".
Response
Successful Response
Changes
- info
added the new optional request property
return_address1 - info
added the new optional request property
return_address2 - info
added the new optional request property
return_city
3 more changes in this revision
- info