Accountants

Set a customer's stored business model and/or its additional-metrics list (accountant only)

Two independent halves (#1967). model pins the stored businessModel as an accountant override (businessModelOverride = model, businessModelSource = override); it is never null — a stored model is required and only an accountant's pick can replace a derivation. additionalMetrics replaces the customer's per-company metric-pack list and touches nothing else (a pack tick never changes the model, its override or its source). At least one of the two keys is required. Accountant-only; requires requireAccountantAccessToCompany guard.

patch/accountant/companies/{customerId}/business-model

Request

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

Path parameters

customerId, string uuid required

Request body

object required

At least one of model / additionalMetrics is required; a null model is rejected with 422.

model, 'software' | 'services' | 'digital' | 'ecommerce' | 'manufacturing'

The business model to store as the accountant override. general is retired.

additionalMetrics, string[]

The complete list of additional metric packs enabled for this customer (duplicates dropped). Unknown ids are rejected with 422.

Response

Updated company with the stored businessModel/businessModelOverride/businessModelSource and additionalMetrics

object required
success, true required
data, object required

Company object with businessModel, businessModelOverride, businessModelSource and additionalMetrics fields.

Changes

No recorded changes to this operation across all 110 revisions of this API.