finance

Update Company Settings Route

Changed on

Finance -> 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.

put/api/finance/company-settings

Request

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

Request body

CompanySettingsIn required

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".

company_name, string nullable
address1, string nullable
address2, string nullable
city, string nullable
state, string nullable
postal_code, string nullable
remittance_payee, string nullable
remittance_address, string nullable
remittance_instructions, string nullable
bank_name, string nullable
ach_routing, string nullable
ach_account, string nullable
invoice_contact_email, string nullable
invoice_mailing_instructions, string nullable
return_name, string nullable
return_address1, string nullable
return_address2, string nullable
return_city, string nullable
return_state, string nullable
return_postal_code, string nullable

Response

Successful Response

object required

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