Accountant Portal

Change a company's bookkeeping agent settings

Changed on

Human super-admin only (SUPER_ADMIN_USER_IDS). Enabling a company is refused unless it is on the deployment allowlist, and grants the agent its assignment for that company. initializeIfMissing: true creates a disabled settings row only if absent, requires explicit positive limits and an allowlisted, non-PHI-bounded company, and never grants an assignment or overwrites a row. A concurrent or existing row returns 409 AGENT_SETTINGS_ALREADY_CONFIGURED. PHI-bounded or unreadable companies are refused. One patient-data company is refused in code whatever the allowlist says: enabling it or setting phiRestricted: false for it gets 403 AGENT_PATIENT_DATA_COMPANY_REFUSED, and every agent request for it gets the same refusal. killSwitch: true stops the agent's next write. Mounted only when the deployment enables the bookkeeping agent (default off); otherwise 404. The shared cloud-bookkeeping service token gets 404 here.

put/accountant/companies/{customerId}/agent/settings

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

customerId, string uuid required

Request body

union required
BookkeepingAgentSettingsPatch required
OR
BookkeepingAgentSettingsInitialize required

Response

Success envelope

object required

Changes

    • info

      the oneOf[#/components/schemas/BookkeepingAgentSettingsInitialize]/dailyBudgetMicros request property's max was increased from 100000.00 to 1000000.00

    • info

      the oneOf[#/components/schemas/BookkeepingAgentSettingsPatch]/dailyBudgetMicros request property's max was increased from 100000.00 to 1000000.00

    • warning

      the oneOf[#/components/schemas/BookkeepingAgentSettingsInitialize]/dailyBudgetMicros request property's max was set to 100000.00

    1 more change in this revision