---
title: "Propose the settlement of a component period"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.getarbol.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Propose the settlement of a component period

Path: Ámbar API › Contracts

`GET /v1/contract-settlements/propose`

Computes the settlement of one component's whole period of an approved contract version, in any payment mode, with the arithmetic the settlement applies. Capitation: the price per member for the period times the member-days of the component's current, eligible coverages (under any version of the contract that keeps the component's key), over the days of the period; with a pricing another person confirmed (`listCapitationPricing`), each month's covered days are priced by the tariff the payer's listing in force that day matches, on the pricing's day basis (`proposal.basis.priced`), and a pricing nobody confirmed yet is the note `pricing_unconfirmed`. PGP: the agreed value; a per-member PGP is paid its period's population times the value per member, and the difference is one adjustment. The approved technical notes that bind the component give that value when they pay per member (`paymentBasis: fixed_per_member`): what their priced lines are worth over the period, each day at the newest note in force, ÷ the people each is priced for (`valuePerMemberFromNotes`); otherwise send `valuePerMemberMinor`. Fee for service: the invoices of the period's services minus what the objections take. Each confirmed clause that moves money is one more adjustment; unconfirmed ones are only shown. A band clause reads what the line-execution worker measured over the period's months for the notes that bind the component (`execution`, when every month was measured through its end; else `executionGap` says why not), each line against its own note's bands, whatever other PGP components the version has; a note that binds two of them cannot be split between them and leaves the period unmeasured (`shared_note`): below its lower band it loses what it misses of the band and above its upper band the payer recognizes what it executes beyond it, as the clause says, at the note's prices; a line never makes up for another, and bands for monitoring move nothing. A per-member PGP is paid for the people its coverages hold in the period, which the payer's population file derives, unless `population` says otherwise. A population clause of a global PGP reads that same paid population against the population the value is priced for; a per-member PGP already pays it, so the clause moves nothing there. The payer's SA55 objections that name a PGP period as the one they adjust (`recordObjection`, `adjusts`) are one adjustment each, for what they take as their course stands; the band clause (SA5502) and the population clause that lowers the value (SA5501) of that period then move no money, so the deviation counts once, and what the objections take beyond them is flagged. The cut is complete once the period has ended in the contract's time zone.
Use it at the end of each period: review the proposal and its `notes` (lines not invoiced, open objections, unconfirmed clauses, an unmeasured execution, bands for monitoring), correct what is wrong saying why in `methodology`, then send `settlement` with an `id` and a `requestKey` to `createContractSettlement`; another person accepts it with `acceptContractSettlement`. Nothing is written here except the audit of the read.
Returns the proposal, the proposed total against the period's payments (those naming its component, whatever their dates in it, and those naming none with exactly its dates), the manifest it comes from (its SHA-256 is the cut's manifest and every adjustment's evidence), and the settlement body, with the close it must supersede.
Requires `ambar:contracts:read` and `ambar:settlements:read` and a read grant on the contract.
`INVALID_INPUT`: malformed identifiers, `population` without a value per member (the notes' or `valuePerMemberMinor`), either for a component that is not PGP, or values out of range; fix them. `NOT_FOUND`: the version or the component is not this contract's. `CONFLICT`: the version is not approved, a payment, an invoice line or a binding note of the period is in another currency, or `valuePerMemberMinor` is not the value the notes give, or an SA55 objection adjusts a component whose currency or precision is not its invoice's; read the version, the period or the notes. `RESOURCE_LIMIT_EXCEEDED`: the contract holds more than 2,000 SA55 objections. `INVOICE_COMPONENT_AMBIGUOUS` (409): lines have no routed payer and the version has several fee-for-service components. `error.details.lineIds` lists at most 100 unique line identifiers in lexical order; route them before retrying. Only the selected component's lines and their objections enter its proposal. A version's sole fee-for-service component also includes genuinely unrouted lines. `ACCESS_DENIED`: missing scope or grant; do not retry.

## Authentication

- `bearer_auth`, http, header `Authorization`, format `JWT`

## Query parameters

- `contractId` (`proposeContractSettlement.query.contractId`; string, required) — The contract.
- `versionId` (`proposeContractSettlement.query.versionId`; string, required) — The approved version that holds the component.
- `componentKey` (`proposeContractSettlement.query.componentKey`; string, required) — The component whose whole period is settled.
- `population` (`proposeContractSettlement.query.population`; integer, optional) — A per-member PGP: the period's paid population, when it is not the people the component's coverages hold in the period.
  - format `int64`; min 0
- `valuePerMemberMinor` (`proposeContractSettlement.query.valuePerMemberMinor`; integer, optional) — A per-member PGP whose technical notes do not price the member: what one member pays for the period, in minor units. When the approved notes that bind the component pay per member, they give it; send none, or the same.
  - format `int64`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api-ambar.getarbol.com/v1/contract-settlements/propose?contractId=cap-eps-norte-2026&versionId=cap-eps-norte-2026-v1&componentKey=cap-2026-04' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api-ambar.getarbol.com/v1/contract-settlements/propose?contractId=cap-eps-norte-2026&versionId=cap-eps-norte-2026-v1&componentKey=cap-2026-04';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api-ambar.getarbol.com/v1/contract-settlements/propose?contractId=cap-eps-norte-2026&versionId=cap-eps-norte-2026-v1&componentKey=cap-2026-04"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

#### Example

```json
{
  "data": {
    "currency": "COP",
    "endsAt": "2026-05-01T05:00:00Z",
    "execution": null,
    "executionGap": null,
    "executionMeasured": false,
    "manifest": {
      "asOf": "2026-05-02T14:00:00Z",
      "basis": {
        "memberDays": 71,
        "members": 3,
        "mode": "capitation",
        "priced": null
      },
      "clauseEffects": {
        "appliedMinor": 0,
        "effects": [],
        "shownMinor": 0
      },
      "componentKey": "cap-2026-04",
      "contractId": "cap-eps-norte-2026",
      "deviation": {
        "beyondClausesMinor": 0,
        "lostMinor": 0,
        "objections": [],
        "openMinor": 0,
        "replaced": []
      },
      "executionComplianceHundredths": null,
      "paymentBeforeClausesMinor": 71000,
      "periodEnd": "2026-05-01",
      "periodStart": "2026-04-01",
      "valuePerMemberFromNotes": false,
      "versionId": "cap-eps-norte-2026-v1"
    },
    "mode": "capitation",
    "payments": {
      "differenceMinor": -71000,
      "expectedMinor": 71000,
      "paidMinor": 0,
      "payments": 0,
      "status": "not_paid"
    },
    "periodEnd": "2026-05-01",
    "periodStart": "2026-04-01",
    "proposal": {
      "adjustments": [],
      "basis": {
        "memberDays": 71,
        "members": 3,
        "mode": "capitation",
        "priced": null
      },
      "calculation": {
        "adjustmentTotalMinor": "0",
        "baseNumeratorMinor": "2130000",
        "denominator": "30",
        "roundingStage": "component_total",
        "roundingTie": "half_away_from_zero",
        "totalMinor": "71000",
        "totalNumeratorMinor": "2130000",
        "version": "contract-period-exact-v1"
      },
      "complete": true,
      "deviation": {
        "beyondClausesMinor": 0,
        "lostMinor": 0,
        "objections": [],
        "openMinor": 0,
        "replaced": []
      },
      "notes": [],
      "paymentBeforeClausesMinor": 71000
    },
    "settlement": {
      "adjustments": [],
      "componentKey": "cap-2026-04",
      "contractId": "cap-eps-norte-2026",
      "inputCut": {
        "complete": true,
        "denominatorDefinition": "eligible_member_days",
        "denominatorVersion": "v1",
        "invoicedMinor": null,
        "knowledgeCutoff": "2026-05-02T14:00:00Z",
        "lostObjectionsMinor": null,
        "manifest": {
          "reference": "ambar-proposal:cap-eps-norte-2026/cap-eps-norte-2026-v1/cap-2026-04@2026-05-02T14:00:00Z",
          "sha256": "5d41402abc4b2a76b9719d911017c5925d41402abc4b2a76b9719d911017c592"
        },
        "memberDays": "71",
        "methodology": "Ambar proposal: member-days of the component's current, eligible coverages; confirmed clauses as adjustments."
      },
      "supersedesId": null,
      "versionId": "cap-eps-norte-2026-v1"
    }
  },
  "metadata": {
    "requestId": "request_01"
  },
  "success": true
}
```

- `data` (`proposeContractSettlement.response.200.data`; object, required) — A proposed settlement of one component period, ready for a person to review.
  - example `{"currency":"COP","endsAt":"2026-05-01T05:00:00Z","execution":null,"executionGap":null,"executionMeasured":false,"manifest":{"asOf":"2026-05-02T14:00:00Z","basis":{"memberDays":71,"members":3,"mode":"capitation","priced":null},"clauseEffects":{"appliedMinor":0,"effects":[],"shownMinor":0},"componentKey":"cap-2026-04","contractId":"cap-eps-norte-2026","deviation":{"beyondClausesMinor":0,"lostMinor":0,"objections":[],"openMinor":0,"replaced":[]},"executionComplianceHundredths":null,"paymentBeforeClausesMinor":71000,"periodEnd":"2026-05-01","periodStart":"2026-04-01","valuePerMemberFromNotes":false,"versionId":"cap-eps-norte-2026-v1"},"mode":"capitation","payments":{"differenceMinor":-71000,"expectedMinor":71000,"paidMinor":0,"payments":0,"status":"not_paid"},"periodEnd":"2026-05-01","periodStart":"2026-04-01","proposal":{"adjustments":[],"basis":{"memberDays":71,"members":3,"mode":"capitation","priced":null},"calculation":{"adjustmentTotalMinor":"0","baseNumeratorMinor":"2130000","denominator":"30","roundingStage":"component_total","roundingTie":"half_away_from_zero","totalMinor":"71000","totalNumeratorMinor":"2130000","version":"contract-period-exact-v1"},"complete":true,"deviation":{"beyondClausesMinor":0,"lostMinor":0,"objections":[],"openMinor":0,"replaced":[]},"notes":[],"paymentBeforeClausesMinor":71000},"settlement":{"adjustments":[],"componentKey":"cap-2026-04","contractId":"cap-eps-norte-2026","inputCut":{"complete":true,"denominatorDefinition":"eligible_member_days","denominatorVersion":"v1","invoicedMinor":null,"knowledgeCutoff":"2026-05-02T14:00:00Z","lostObjectionsMinor":null,"manifest":{"reference":"ambar-proposal:cap-eps-norte-2026/cap-eps-norte-2026-v1/cap-2026-04@2026-05-02T14:00:00Z","sha256":"5d41402abc4b2a76b9719d911017c5925d41402abc4b2a76b9719d911017c592"},"memberDays":"71","methodology":"Ambar proposal: member-days of the component's current, eligible coverages; confirmed clauses as adjustments."},"supersedesId":null,"versionId":"cap-eps-norte-2026-v1"}}`
  - `currency` (`proposeContractSettlement.response.200.data.currency`; string, required) — The currency of every amount.
    - one of `"COP"`, `"PEN"`, `"MXN"`, `"CLP"`, `"BRL"`
  - `endsAt` (`proposeContractSettlement.response.200.data.endsAt`; string, required) — When the period ends in the contract's time zone; a complete cut needs it past.
    - format `date-time`
  - `execution` (`proposeContractSettlement.response.200.data.execution`; one of, required)
    - one of: `PeriodExecution`, `null`
  - `executionGap` (`proposeContractSettlement.response.200.data.executionGap`; one of, required)
    - one of: `ExecutionGap`, `null`
  - `executionMeasured` (`proposeContractSettlement.response.200.data.executionMeasured`; boolean, required) — Whether the line-execution worker measured every month of the period through its end for the notes that bind the component, so `execution` is what the band clauses read.
  - `manifest` (`proposeContractSettlement.response.200.data.manifest`; object, required) — The document the cut comes from, with every clause's effect.
    - `asOf` (`proposeContractSettlement.response.200.data.manifest.asOf`; string, required) — When the data was read: the cut's knowledge cutoff.
      - format `date-time`
    - `basis` (`proposeContractSettlement.response.200.data.manifest.basis`; ProposalBasis, required) — What the period is settled from.
      - one of:
        - `object`
          - `memberDays` (`proposeContractSettlement.response.200.data.manifest.basis.1.memberDays`; integer, required) — Covered days of every person in the period, each day counted once.
            - format `int64`; min 0
          - `members` (`proposeContractSettlement.response.200.data.manifest.basis.1.members`; integer, required) — People with at least one covered day in the period.
            - format `int64`; min 0
          - `mode` (`proposeContractSettlement.response.200.data.manifest.basis.1.mode`; string, required)
            - one of `"capitation"`
          - `priced` (`proposeContractSettlement.response.200.data.manifest.basis.1.priced`; one of, optional)
            - one of: `PricedDays`, `null`
        - `object`
          - `mode` (`proposeContractSettlement.response.200.data.manifest.basis.2.mode`; string, required)
            - one of `"pgp"`
          - `perMember` (`proposeContractSettlement.response.200.data.manifest.basis.2.perMember`; one of, optional)
            - one of: `PerMemberPopulation`, `null`
        - `object`
          - `mode` (`proposeContractSettlement.response.200.data.manifest.basis.3.mode`; string, required)
            - one of `"fee_for_service"`
          - `totals` (`proposeContractSettlement.response.200.data.manifest.basis.3.totals`; object, required) — The period's invoice lines and objections, totalled.
            - example `{"expectedMinor":1230000,"invoicedMinor":1350000,"lines":3,"lostObjectionsMinor":120000,"notInvoicedMinor":45000,"objectionsToAnswer":1,"openObjectionsMinor":60000}`
            - `expectedMinor` (`proposeContractSettlement.response.200.data.manifest.basis.3.totals.expectedMinor`; integer, required) — What the payer is expected to pay: `invoicedMinor - lostObjectionsMinor`.
              - format `int64`
            - `invoicedMinor` (`proposeContractSettlement.response.200.data.manifest.basis.3.totals.invoicedMinor`; integer, required) — What those lines bill once on an invoice.
              - format `int64`
            - `lines` (`proposeContractSettlement.response.200.data.manifest.basis.3.totals.lines`; integer, required) — Lines of the period's services that still bill.
              - format `int32`; min 0
            - `lostObjectionsMinor` (`proposeContractSettlement.response.200.data.manifest.basis.3.totals.lostObjectionsMinor`; integer, required) — What the objections take: accepted amounts, expired objections in full, what answers conceded and what conciliations left standing.
              - format `int64`
            - `notInvoicedMinor` (`proposeContractSettlement.response.200.data.manifest.basis.3.totals.notInvoicedMinor`; integer, required) — What those lines would bill but are not on an invoice yet.
              - format `int64`
            - `objectionsToAnswer` (`proposeContractSettlement.response.200.data.manifest.basis.3.totals.objectionsToAnswer`; integer, required) — Objections still waiting for the provider's answer.
              - format `int32`; min 0
            - `openObjectionsMinor` (`proposeContractSettlement.response.200.data.manifest.basis.3.totals.openObjectionsMinor`; integer, required) — What open objections (received, answered or escalated) still dispute.
              - format `int64`
    - `clauseEffects` (`proposeContractSettlement.response.200.data.manifest.clauseEffects`; object, required) — What every clause of the version does to the period, confirmed or not.
      - `appliedMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.appliedMinor`; integer, required) — What the confirmed clauses add to the payment, in minor units.
        - format `int64`
      - `effects` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects`; array<object>, required) — One entry per clause, by position.
        - `amountMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.amountMinor`; integer, required) — Signed amount the clause adds to the payment, in minor units: negative withholds or discounts.
          - format `int64`
        - `detail` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail`; EffectDetail, required) — What Ambar computed.
          - one of:
            - `object`
              - `kind` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.1.kind`; string, required)
                - one of `"pay_for_results_retention"`
              - `retention` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.1.retention`; object, required) — Withheld, released, pending and kept.
                - `atRisk` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.1.retention.atRisk`; array<string>, required) — The indicators putting the retention at risk: breached or not measured yet.
                - `keptMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.1.retention.keptMinor`; integer, required) — Kept by the payer because indicators were breached.
                  - format `int64`
                - `pendingMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.1.retention.pendingMinor`; integer, required) — Waiting for indicators not measured yet; released if they are met.
                  - format `int64`
                - `releasedMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.1.retention.releasedMinor`; integer, required) — Released by met indicators.
                  - format `int64`
                - `withheldMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.1.retention.withheldMinor`; integer, required) — Withheld from the period's payment, in minor units.
                  - format `int64`
            - `object`
              - `kind` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.2.kind`; string, required)
                - one of `"penalty_escalation"`
              - `penalty` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.2.penalty`; object, required) — The listed indicators and the discount.
                - `discountMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.2.penalty.discountMinor`; integer, required) — Discounted from the period's payment, in minor units: the clause's share of each month's part of it while any listed indicator is penalized that month, else 0.
                  - format `int64`
                - `indicators` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.2.penalty.indicators`; array<object>, required) — The listed indicators after the period's last month, in the clause's order.
                  - `indicatorId` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.2.penalty.indicators.indicatorId`; string, required) — The indicator.
                  - `status` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.2.penalty.indicators.status`; object, required) — Its status after its latest recorded month; `compliant` with no breaches when none is recorded.
                    - `consecutiveBreaches` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.2.penalty.indicators.status.consecutiveBreaches`; integer, required) — Consecutive months the target was missed.
                      - format `int32`; min 0
                    - `escalation` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.2.penalty.indicators.status.escalation`; string, required) — Escalation state.
                      - one of `"compliant"`, `"breached"`, `"improvement_plan"`, `"cure_period"`, `"penalty"`, `"termination_risk"`
                  - `measuredMonth` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.2.penalty.indicators.measuredMonth`; one of, optional)
                    - one of: `BillingMonth`, `null`
                  - `next` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.2.penalty.indicators.next`; one of, optional)
                    - one of: `NextEscalation`, `null`
                - `penalizedMonths` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.2.penalty.penalizedMonths`; array<string>, required) — The months of the period with a listed indicator penalized, in order.
            - `object`
              - `chargebacks` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks`; object, required) — The period's chargebacks and their leakage.
                - `avoidableCount` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.avoidableCount`; integer, required) — Avoidable leakage: chargebacks no site of the organization delivered whose order reached this provider first.
                  - format `int32`; min 0
                - `avoidableMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.avoidableMinor`; integer, required) — Their amount, in minor units.
                  - format `int64`
                - `byProcedure` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.byProcedure`; array<object>, required) — Leakage by procedure, ordered by code.
                  - `amountMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.byProcedure.amountMinor`; integer, required) — Their amount, in minor units.
                    - format `int64`
                  - `avoidable` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.byProcedure.avoidable`; integer, required) — Of them, the avoidable ones: the order had reached this provider first.
                    - format `int32`; min 0
                  - `count` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.byProcedure.count`; integer, required) — Chargebacks in the group.
                    - format `int32`; min 0
                  - `key` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.byProcedure.key`; string | null, optional) — The procedure code, or the reason why people went elsewhere (`null`: not explained yet).
                - `byReason` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.byReason`; array<object>, required) — Leakage by reason, the unexplained ones first.
                  - `amountMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.byReason.amountMinor`; integer, required) — Their amount, in minor units.
                    - format `int64`
                  - `avoidable` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.byReason.avoidable`; integer, required) — Of them, the avoidable ones: the order had reached this provider first.
                    - format `int32`; min 0
                  - `count` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.byReason.count`; integer, required) — Chargebacks in the group.
                    - format `int32`; min 0
                  - `key` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.byReason.key`; string | null, optional) — The procedure code, or the reason why people went elsewhere (`null`: not explained yet).
                - `count` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.count`; integer, required) — Chargebacks counted, leakage or not.
                  - format `int32`; min 0
                - `deliveredHere` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.deliveredHere`; object, required) — The ones whose service the organization's own sites delivered: to dispute, and left out of the leakage below.
                  - `amountMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.deliveredHere.amountMinor`; integer, required) — Their amount, in minor units.
                    - format `int64`
                  - `count` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.deliveredHere.count`; integer, required) — Chargebacks counted.
                    - format `int32`; min 0
                  - `substitutions` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.deliveredHere.substitutions`; integer, required) — Of them, the ones another of the organization's sites delivered for the contract's contracted site: substitutions the contract allows.
                    - format `int32`; min 0
                - `discountedMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.discountedMinor`; integer, required) — Accepted ones: what the payer discounts, in minor units.
                  - format `int64`
                - `openMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.chargebacks.openMinor`; integer, required) — Reported or disputed ones, still to be decided.
                  - format `int64`
              - `kind` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.3.kind`; string, required)
                - one of `"chargeback"`
            - `object`
              - `kind` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.4.kind`; string, required)
                - one of `"excluded_technologies"`
              - `label` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.4.label`; string, required) — The contract's label for what is excluded.
              - `procedures` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.4.procedures`; array<string>, required) — The excluded procedures, ordered by code: never in the fixed value, billed apart.
              - `servicesApart` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.4.servicesApart`; integer, required) — The period's services the router paid to a PGP or capitation component of the version with an excluded procedure: never in that value, billed apart.
                - format `int32`; min 0
            - `object`
              - `band` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.5.band`; object, required) — The execution against the bands.
                - `aboveUpperBand` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.5.band.aboveUpperBand`; string, required) — What the clause does above the upper band.
                  - one of `"alert_only"`, `"recognize"`
                - `belowLowerBand` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.5.band.belowLowerBand`; string, required) — What the clause does below the lower band.
                  - one of `"discount"`, `"alert_only"`
                - `belowMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.5.band.belowMinor`; integer, required) — What those lines miss of their lower band at the note's prices, in minor units.
                  - format `int64`
                - `beyondMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.5.band.beyondMinor`; integer, required) — What those lines execute beyond their upper band at the note's prices.
                  - format `int64`
                - `linesAbove` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.5.band.linesAbove`; integer, required) — Lines that executed more than their upper band over the period.
                  - format `int32`; min 0
                - `linesBelow` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.5.band.linesBelow`; integer, required) — Lines that executed less than their lower band over the period.
                  - format `int32`; min 0
                - `projected` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.5.band.projected`; boolean, required) — Whether a month still running counts at its pace (a preview; a settlement never projects).
                - `reading` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.5.band.reading`; string, required) — What it could read.
                  - one of `"measured"`, `"not_measured"`, `"monitoring_only"`
                - `complianceHundredths` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.5.band.complianceHundredths`; integer | null, optional) — The period's execution, Σ executed ÷ Σ expected value, in hundredths of a percent; `null` when not measured.
                  - format `int64`; min 0
              - `kind` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.5.kind`; string, required)
                - one of `"band_adjustment"`
            - `object`
              - `kind` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.6.kind`; string, required)
                - one of `"population_adjustment"`
              - `population` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.6.population`; object, required) — The population against its base.
                - `basePopulation` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.6.population.basePopulation`; integer, required) — People the agreed value is priced for.
                  - format `int64`; min 0
                - `directionApplies` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.6.population.directionApplies`; boolean, required) — Whether the clause's direction lets this deviation move the value.
                - `position` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.6.population.position`; string, required) — Where the population falls.
                  - one of `"within"`, `"above"`, `"below"`, `"not_measured"`, `"priced_per_member"`
                - `deviationHundredths` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.6.population.deviationHundredths`; integer | null, optional) — (population − base) ÷ base, in hundredths of a percent, toward zero; `null` when the population was not read.
                  - format `int64`
                - `population` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.6.population.population`; integer | null, optional) — The period's paid population; `null` when it was not read.
                  - format `int64`; min 0
            - `object`
              - `kind` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.kind`; string, required)
                - one of `"risk_adjustment"`
              - `risk` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.risk`; object, required) — The period's risk mix against the technical note's.
                - `baseWeightTenThousandths` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.risk.baseWeightTenThousandths`; integer, required) — The note's average weight, in ten-thousandths, rounded once.
                  - format `int64`
                - `directionApplies` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.risk.directionApplies`; boolean, required) — Whether the clause's direction lets this deviation move the value.
                - `groups` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.risk.groups`; array<object>, required) — Each group, in the clause's order.
                  - `basePeople` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.risk.groups.basePeople`; integer, required) — People of the note's characterized population in it.
                    - format `int64`; min 0
                  - `label` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.risk.groups.label`; string, required) — How the annex names it.
                  - `weightTenThousandths` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.risk.groups.weightTenThousandths`; integer, required) — Its relative weight, in ten-thousandths.
                    - format `int32`; min 0
                  - `cohortId` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.risk.groups.cohortId`; one of, optional)
                    - one of: `CohortId`, `null`
                  - `people` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.risk.groups.people`; integer | null, optional) — People the period covers in it; `null` when the mix was not counted.
                    - format `int64`; min 0
                - `position` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.risk.position`; string, required) — Where the period's mix falls.
                  - one of `"within"`, `"heavier"`, `"lighter"`, `"not_measured"`
                - `deviationHundredths` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.risk.deviationHundredths`; integer | null, optional) — R − 1, the risk index's deviation from the note's mix, in hundredths of a percent, toward zero; `null` when not measured.
                  - format `int64`
                - `observedWeightTenThousandths` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.detail.7.risk.observedWeightTenThousandths`; integer | null, optional) — The period's average weight, in ten-thousandths, rounded once; `null` when the mix was not counted or the period covers nobody.
                  - format `int64`
        - `movesMoney` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.movesMoney`; boolean, required) — Whether it moves money: only a clause a second person confirmed does; otherwise it is shown and moves nothing.
        - `seq` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.effects.seq`; integer, required) — The clause's position in the version.
          - format `int32`; min 0
      - `shownMinor` (`proposeContractSettlement.response.200.data.manifest.clauseEffects.shownMinor`; integer, required) — What the unconfirmed clauses would add; shown, never applied.
        - format `int64`
    - `componentKey` (`proposeContractSettlement.response.200.data.manifest.componentKey`; string, required) — The component settled.
    - `contractId` (`proposeContractSettlement.response.200.data.manifest.contractId`; string, required) — The contract.
    - `deviation` (`proposeContractSettlement.response.200.data.manifest.deviation`; object, required) — The payer's SA55 objections attributed to a PGP period, as their course stood when read, and the clauses they replace.
      - `beyondClausesMinor` (`proposeContractSettlement.response.200.data.manifest.deviation.beyondClausesMinor`; integer, required) — What they take beyond what the measured clauses they replace compute, in minor units: 0 within it, or when no measured clause of their kind computes it.
        - format `int64`
      - `lostMinor` (`proposeContractSettlement.response.200.data.manifest.deviation.lostMinor`; integer, required) — What the objections that apply take, together, in minor units.
        - format `int64`
      - `objections` (`proposeContractSettlement.response.200.data.manifest.deviation.objections`; array<object>, required) — The SA55 objections attributed to the period, by arrival.
        - `amountMinor` (`proposeContractSettlement.response.200.data.manifest.deviation.objections.amountMinor`; integer, required) — What the payer objected, in minor units.
          - format `int64`
        - `applies` (`proposeContractSettlement.response.200.data.manifest.deviation.objections.applies`; boolean, required) — Whether it moves the settlement: an SA5501 does not on a PGP paid per member, whose payment already is the period's population.
        - `invoiceRef` (`proposeContractSettlement.response.200.data.manifest.deviation.objections.invoiceRef`; string, required) — The invoice it objects to.
        - `kind` (`proposeContractSettlement.response.200.data.manifest.deviation.objections.kind`; string, required) — Which deviation it adjusts.
          - one of `"population"`, `"frequency"`, `"other"`
        - `lostMinor` (`proposeContractSettlement.response.200.data.manifest.deviation.objections.lostMinor`; integer, required) — What it takes now, in minor units.
          - format `int64`
        - `objectionId` (`proposeContractSettlement.response.200.data.manifest.deviation.objections.objectionId`; string, required) — The objection.
        - `openMinor` (`proposeContractSettlement.response.200.data.manifest.deviation.objections.openMinor`; integer, required) — What it still disputes, in minor units.
          - format `int64`
        - `reasonCode` (`proposeContractSettlement.response.200.data.manifest.deviation.objections.reasonCode`; string, required) — Its code, as the payer sent it.
        - `receivedOn` (`proposeContractSettlement.response.200.data.manifest.deviation.objections.receivedOn`; string, required) — The day it arrived.
          - format `date`
        - `state` (`proposeContractSettlement.response.200.data.manifest.deviation.objections.state`; string, required) — Where its course stands.
          - one of `"received"`, `"answered"`, `"accepted"`, `"rejected"`, `"expired"`, `"lapsed"`, `"escalated"`, `"settled"`
        - `objectionRef` (`proposeContractSettlement.response.200.data.manifest.deviation.objections.objectionRef`; string | null, optional) — The payer's record number of it.
      - `openMinor` (`proposeContractSettlement.response.200.data.manifest.deviation.openMinor`; integer, required) — What they still dispute, in minor units.
        - format `int64`
      - `replaced` (`proposeContractSettlement.response.200.data.manifest.deviation.replaced`; array<object>, required) — The clauses they replace, by position.
        - `amountMinor` (`proposeContractSettlement.response.200.data.manifest.deviation.replaced.amountMinor`; integer, required) — What it computes for the period, in minor units.
          - format `int64`
        - `keptMinor` (`proposeContractSettlement.response.200.data.manifest.deviation.replaced.keptMinor`; integer, required) — What of it the objections do not replace and still moves, in minor units: what a band clause recognizes beyond the upper band; 0 otherwise.
          - format `int64`
        - `seq` (`proposeContractSettlement.response.200.data.manifest.deviation.replaced.seq`; integer, required) — The clause's position in the version.
          - format `int32`; min 0
    - `executionComplianceHundredths` (`proposeContractSettlement.response.200.data.manifest.executionComplianceHundredths`; integer | null, required) — The PGP execution over the period, Σ executed ÷ Σ expected value of its notes' lines, in hundredths of a percent; `null` when not measured. The band clauses read each line against its own note's bands (`clauseEffects`).
      - format `int64`; min 0
    - `paymentBeforeClausesMinor` (`proposeContractSettlement.response.200.data.manifest.paymentBeforeClausesMinor`; integer, required) — The period's payment before the clauses, in minor units.
      - format `int64`
    - `periodEnd` (`proposeContractSettlement.response.200.data.manifest.periodEnd`; string, required) — The day after the last day of the period.
      - format `date`
    - `periodStart` (`proposeContractSettlement.response.200.data.manifest.periodStart`; string, required) — First day of the period.
      - format `date`
    - `valuePerMemberFromNotes` (`proposeContractSettlement.response.200.data.manifest.valuePerMemberFromNotes`; boolean, required) — Whether the value per member is what the approved technical notes that bind the component give, rather than a figure sent with the request.
    - `versionId` (`proposeContractSettlement.response.200.data.manifest.versionId`; string, required) — The approved version applied.
  - `mode` (`proposeContractSettlement.response.200.data.mode`; string, required) — The component's payment mode.
    - one of `"pgp"`, `"capitation"`, `"fee_for_service"`
  - `payments` (`proposeContractSettlement.response.200.data.payments`; object, required) — The proposed total against the payments received for exactly the period.
    - `differenceMinor` (`proposeContractSettlement.response.200.data.payments.differenceMinor`; integer, required) — `paidMinor - expectedMinor`; negative when underpaid.
      - format `int64`
    - `expectedMinor` (`proposeContractSettlement.response.200.data.payments.expectedMinor`; integer, required) — What Ambar expects, in minor units.
      - format `int64`
    - `paidMinor` (`proposeContractSettlement.response.200.data.payments.paidMinor`; integer, required) — Sum of the live payments of the period, in minor units.
      - format `int64`
    - `payments` (`proposeContractSettlement.response.200.data.payments.payments`; integer, required) — Live payments counted.
      - format `int32`; min 0
    - `status` (`proposeContractSettlement.response.200.data.payments.status`; string, required) — How they compare.
      - one of `"matches"`, `"underpaid"`, `"overpaid"`, `"not_paid"`
  - `periodEnd` (`proposeContractSettlement.response.200.data.periodEnd`; string, required) — The day after the last day of the period.
    - format `date`
  - `periodStart` (`proposeContractSettlement.response.200.data.periodStart`; string, required) — First day of the period.
    - format `date`
  - `proposal` (`proposeContractSettlement.response.200.data.proposal`; object, required) — The proposal: its basis, the payment before clauses, the adjustments, the settlement's arithmetic, whether the cut is complete, and what to check.
    - `adjustments` (`proposeContractSettlement.response.200.data.proposal.adjustments`; array<object>, required) — The adjustments proposed: the per-member population first, then by clause, then the SA55 objections by arrival, then the fee-for-service ceiling.
      - `amountMinor` (`proposeContractSettlement.response.200.data.proposal.adjustments.amountMinor`; integer, required) — Signed amount added to the total, in minor units.
        - format `int64`
      - `clauseReference` (`proposeContractSettlement.response.200.data.proposal.adjustments.clauseReference`; string, required) — The contract clause behind it: the clause's source passage, or the component's clause for the per-member population.
      - `key` (`proposeContractSettlement.response.200.data.proposal.adjustments.key`; string, required) — Its key in the settlement: `per-member-population`, `clause-<seq>`, `objection-<id>` for an SA55 objection, or `component-ceiling`.
      - `label` (`proposeContractSettlement.response.200.data.proposal.adjustments.label`; string, required) — What it is.
      - `clauseSeq` (`proposeContractSettlement.response.200.data.proposal.adjustments.clauseSeq`; integer | null, optional) — The version clause it comes from; `null` for the per-member population, an objection and the ceiling.
        - format `int32`; min 0
      - `objectionId` (`proposeContractSettlement.response.200.data.proposal.adjustments.objectionId`; string | null, optional) — The payer's SA55 objection it comes from; `null` for the others.
    - `basis` (`proposeContractSettlement.response.200.data.proposal.basis`; ProposalBasis, required) — What the period is settled from.
      - one of:
        - `object`
          - `memberDays` (`proposeContractSettlement.response.200.data.proposal.basis.1.memberDays`; integer, required) — Covered days of every person in the period, each day counted once.
            - format `int64`; min 0
          - `members` (`proposeContractSettlement.response.200.data.proposal.basis.1.members`; integer, required) — People with at least one covered day in the period.
            - format `int64`; min 0
          - `mode` (`proposeContractSettlement.response.200.data.proposal.basis.1.mode`; string, required)
            - one of `"capitation"`
          - `priced` (`proposeContractSettlement.response.200.data.proposal.basis.1.priced`; one of, optional)
            - one of: `PricedDays`, `null`
        - `object`
          - `mode` (`proposeContractSettlement.response.200.data.proposal.basis.2.mode`; string, required)
            - one of `"pgp"`
          - `perMember` (`proposeContractSettlement.response.200.data.proposal.basis.2.perMember`; one of, optional)
            - one of: `PerMemberPopulation`, `null`
        - `object`
          - `mode` (`proposeContractSettlement.response.200.data.proposal.basis.3.mode`; string, required)
            - one of `"fee_for_service"`
          - `totals` (`proposeContractSettlement.response.200.data.proposal.basis.3.totals`; object, required) — The period's invoice lines and objections, totalled.
            - example `{"expectedMinor":1230000,"invoicedMinor":1350000,"lines":3,"lostObjectionsMinor":120000,"notInvoicedMinor":45000,"objectionsToAnswer":1,"openObjectionsMinor":60000}`
            - `expectedMinor` (`proposeContractSettlement.response.200.data.proposal.basis.3.totals.expectedMinor`; integer, required) — What the payer is expected to pay: `invoicedMinor - lostObjectionsMinor`.
              - format `int64`
            - `invoicedMinor` (`proposeContractSettlement.response.200.data.proposal.basis.3.totals.invoicedMinor`; integer, required) — What those lines bill once on an invoice.
              - format `int64`
            - `lines` (`proposeContractSettlement.response.200.data.proposal.basis.3.totals.lines`; integer, required) — Lines of the period's services that still bill.
              - format `int32`; min 0
            - `lostObjectionsMinor` (`proposeContractSettlement.response.200.data.proposal.basis.3.totals.lostObjectionsMinor`; integer, required) — What the objections take: accepted amounts, expired objections in full, what answers conceded and what conciliations left standing.
              - format `int64`
            - `notInvoicedMinor` (`proposeContractSettlement.response.200.data.proposal.basis.3.totals.notInvoicedMinor`; integer, required) — What those lines would bill but are not on an invoice yet.
              - format `int64`
            - `objectionsToAnswer` (`proposeContractSettlement.response.200.data.proposal.basis.3.totals.objectionsToAnswer`; integer, required) — Objections still waiting for the provider's answer.
              - format `int32`; min 0
            - `openObjectionsMinor` (`proposeContractSettlement.response.200.data.proposal.basis.3.totals.openObjectionsMinor`; integer, required) — What open objections (received, answered or escalated) still dispute.
              - format `int64`
    - `calculation` (`proposeContractSettlement.response.200.data.proposal.calculation`; object, required) — The settlement's arithmetic over the proposed cut and adjustments.
      - `adjustmentTotalMinor` (`proposeContractSettlement.response.200.data.proposal.calculation.adjustmentTotalMinor`; string, required) — Sum of all adjustment amounts.
      - `baseNumeratorMinor` (`proposeContractSettlement.response.200.data.proposal.calculation.baseNumeratorMinor`; string, required) — PGP: `amountMinor`. Capitation: `amountMinor` × `memberDays`. Fee for service: `invoicedMinor` − `lostObjectionsMinor`.
      - `denominator` (`proposeContractSettlement.response.200.data.proposal.calculation.denominator`; string, required) — Capitation: number of days in the component period. PGP and fee for service: `"1"`.
      - `roundingStage` (`proposeContractSettlement.response.200.data.proposal.calculation.roundingStage`; string, required) — Where rounding happens; currently `component_total`.
      - `roundingTie` (`proposeContractSettlement.response.200.data.proposal.calculation.roundingTie`; string, required) — How exact halves round; currently `half_away_from_zero`.
      - `totalMinor` (`proposeContractSettlement.response.200.data.proposal.calculation.totalMinor`; string, required) — Settled total in minor units: `totalNumeratorMinor` / `denominator`, rounded once.
      - `totalNumeratorMinor` (`proposeContractSettlement.response.200.data.proposal.calculation.totalNumeratorMinor`; string, required) — `baseNumeratorMinor` + `adjustmentTotalMinor` × `denominator`, before rounding.
      - `version` (`proposeContractSettlement.response.200.data.proposal.calculation.version`; string, required) — Calculation version; currently `contract-period-exact-v1`.
    - `complete` (`proposeContractSettlement.response.200.data.proposal.complete`; boolean, required) — Whether the cut covers the whole period, so the settlement is a `draft` that can be accepted.
    - `deviation` (`proposeContractSettlement.response.200.data.proposal.deviation`; object, required) — The SA55 objections attributed to the period and the clauses they replace.
      - `beyondClausesMinor` (`proposeContractSettlement.response.200.data.proposal.deviation.beyondClausesMinor`; integer, required) — What they take beyond what the measured clauses they replace compute, in minor units: 0 within it, or when no measured clause of their kind computes it.
        - format `int64`
      - `lostMinor` (`proposeContractSettlement.response.200.data.proposal.deviation.lostMinor`; integer, required) — What the objections that apply take, together, in minor units.
        - format `int64`
      - `objections` (`proposeContractSettlement.response.200.data.proposal.deviation.objections`; array<object>, required) — The SA55 objections attributed to the period, by arrival.
        - `amountMinor` (`proposeContractSettlement.response.200.data.proposal.deviation.objections.amountMinor`; integer, required) — What the payer objected, in minor units.
          - format `int64`
        - `applies` (`proposeContractSettlement.response.200.data.proposal.deviation.objections.applies`; boolean, required) — Whether it moves the settlement: an SA5501 does not on a PGP paid per member, whose payment already is the period's population.
        - `invoiceRef` (`proposeContractSettlement.response.200.data.proposal.deviation.objections.invoiceRef`; string, required) — The invoice it objects to.
        - `kind` (`proposeContractSettlement.response.200.data.proposal.deviation.objections.kind`; string, required) — Which deviation it adjusts.
          - one of `"population"`, `"frequency"`, `"other"`
        - `lostMinor` (`proposeContractSettlement.response.200.data.proposal.deviation.objections.lostMinor`; integer, required) — What it takes now, in minor units.
          - format `int64`
        - `objectionId` (`proposeContractSettlement.response.200.data.proposal.deviation.objections.objectionId`; string, required) — The objection.
        - `openMinor` (`proposeContractSettlement.response.200.data.proposal.deviation.objections.openMinor`; integer, required) — What it still disputes, in minor units.
          - format `int64`
        - `reasonCode` (`proposeContractSettlement.response.200.data.proposal.deviation.objections.reasonCode`; string, required) — Its code, as the payer sent it.
        - `receivedOn` (`proposeContractSettlement.response.200.data.proposal.deviation.objections.receivedOn`; string, required) — The day it arrived.
          - format `date`
        - `state` (`proposeContractSettlement.response.200.data.proposal.deviation.objections.state`; string, required) — Where its course stands.
          - one of `"received"`, `"answered"`, `"accepted"`, `"rejected"`, `"expired"`, `"lapsed"`, `"escalated"`, `"settled"`
        - `objectionRef` (`proposeContractSettlement.response.200.data.proposal.deviation.objections.objectionRef`; string | null, optional) — The payer's record number of it.
      - `openMinor` (`proposeContractSettlement.response.200.data.proposal.deviation.openMinor`; integer, required) — What they still dispute, in minor units.
        - format `int64`
      - `replaced` (`proposeContractSettlement.response.200.data.proposal.deviation.replaced`; array<object>, required) — The clauses they replace, by position.
        - `amountMinor` (`proposeContractSettlement.response.200.data.proposal.deviation.replaced.amountMinor`; integer, required) — What it computes for the period, in minor units.
          - format `int64`
        - `keptMinor` (`proposeContractSettlement.response.200.data.proposal.deviation.replaced.keptMinor`; integer, required) — What of it the objections do not replace and still moves, in minor units: what a band clause recognizes beyond the upper band; 0 otherwise.
          - format `int64`
        - `seq` (`proposeContractSettlement.response.200.data.proposal.deviation.replaced.seq`; integer, required) — The clause's position in the version.
          - format `int32`; min 0
    - `notes` (`proposeContractSettlement.response.200.data.proposal.notes`; array<ProposalNote>, required) — What a person should check before creating the settlement.
      - one of:
        - `object`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.1.code`; string, required)
            - one of `"period_open"`
        - `object`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.2.code`; string, required)
            - one of `"no_member_days"`
        - `object`
          - `amountMinor` (`proposeContractSettlement.response.200.data.proposal.notes.3.amountMinor`; integer, required) — What they would bill, in minor units.
            - format `int64`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.3.code`; string, required)
            - one of `"lines_not_invoiced"`
        - `object`
          - `amountMinor` (`proposeContractSettlement.response.200.data.proposal.notes.4.amountMinor`; integer, required) — What they put at risk, in minor units.
            - format `int64`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.4.code`; string, required)
            - one of `"objections_open"`
          - `toAnswer` (`proposeContractSettlement.response.200.data.proposal.notes.4.toAnswer`; integer, required) — How many still wait for the provider's answer.
            - format `int32`; min 0
        - `object`
          - `amountMinor` (`proposeContractSettlement.response.200.data.proposal.notes.5.amountMinor`; integer, required) — What they would add, in minor units.
            - format `int64`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.5.code`; string, required)
            - one of `"unconfirmed_clauses"`
        - `object`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.6.code`; string, required)
            - one of `"execution_not_measured"`
        - `object`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.7.code`; string, required)
            - one of `"bands_for_monitoring"`
        - `object`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.8.code`; string, required)
            - one of `"population_not_read"`
        - `object`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.9.code`; string, required)
            - one of `"pricing_unconfirmed"`
        - `object`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.10.code`; string, required)
            - one of `"risk_mix_not_read"`
        - `object`
          - `amountMinor` (`proposeContractSettlement.response.200.data.proposal.notes.11.amountMinor`; integer, required) — What the objections replace of them together, in minor units.
            - format `int64`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.11.code`; string, required)
            - one of `"clauses_replaced_by_objections"`
          - `seqs` (`proposeContractSettlement.response.200.data.proposal.notes.11.seqs`; array<integer>, required) — The clauses' positions.
            - format `int32`; min 0
        - `object`
          - `amountMinor` (`proposeContractSettlement.response.200.data.proposal.notes.12.amountMinor`; integer, required) — What they still dispute, in minor units.
            - format `int64`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.12.code`; string, required)
            - one of `"deviation_objections_open"`
          - `count` (`proposeContractSettlement.response.200.data.proposal.notes.12.count`; integer, required) — How many are open.
            - format `int32`; min 0
        - `object`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.13.code`; string, required)
            - one of `"deviation_beyond_clauses"`
          - `excessMinor` (`proposeContractSettlement.response.200.data.proposal.notes.13.excessMinor`; integer, required) — The excess, in minor units.
            - format `int64`
        - `object`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.14.code`; string, required)
            - one of `"deviation_objections_unattributed"`
          - `count` (`proposeContractSettlement.response.200.data.proposal.notes.14.count`; integer, required) — How many.
            - format `int32`; min 0
        - `object`
          - `amountMinor` (`proposeContractSettlement.response.200.data.proposal.notes.15.amountMinor`; integer, required) — What they take, in minor units.
            - format `int64`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.15.code`; string, required)
            - one of `"objections_for_other_periods"`
        - `object`
          - `code` (`proposeContractSettlement.response.200.data.proposal.notes.16.code`; string, required)
            - one of `"ceiling_reached"`
          - `excessMinor` (`proposeContractSettlement.response.200.data.proposal.notes.16.excessMinor`; integer, required) — What passes the ceiling, in minor units.
            - format `int64`
    - `paymentBeforeClausesMinor` (`proposeContractSettlement.response.200.data.proposal.paymentBeforeClausesMinor`; integer, required) — The period's payment before the clauses, in minor units: what the clauses apply to.
      - format `int64`
  - `settlement` (`proposeContractSettlement.response.200.data.settlement`; object, required) — What to send to `createContractSettlement`.
    - `adjustments` (`proposeContractSettlement.response.200.data.settlement.adjustments`; array<object>, required) — The proposed adjustments, each backed by the manifest.
      - `amountMinor` (`proposeContractSettlement.response.200.data.settlement.adjustments.amountMinor`; string, required) — Signed integer string in minor units, up to 15 digits (e.g. `-1500`); `-0` is invalid.
      - `clauseReference` (`proposeContractSettlement.response.200.data.settlement.adjustments.clauseReference`; string, required) — Contract clause that allows the adjustment (1 to 512 characters).
      - `evidence` (`proposeContractSettlement.response.200.data.settlement.adjustments.evidence`; object, required) — Document that supports the adjustment.
        - `reference` (`proposeContractSettlement.response.200.data.settlement.adjustments.evidence.reference`; string, required) — `artifact:<id>` for a file uploaded with `reserveContractArtifact` (it must be `ready` and match `sha256`), or any other reference: 1 to 512 characters, trimmed, without control characters.
        - `sha256` (`proposeContractSettlement.response.200.data.settlement.adjustments.evidence.sha256`; string, required) — SHA-256 of the document bytes: 64 lowercase hexadecimal characters.
      - `key` (`proposeContractSettlement.response.200.data.settlement.adjustments.key`; string, required) — Adjustment identifier, unique within the settlement (`^[a-z][a-z0-9_-]{0,127}$`).
      - `label` (`proposeContractSettlement.response.200.data.settlement.adjustments.label`; string, required) — Display label (1 to 160 characters, trimmed, no control characters).
    - `componentKey` (`proposeContractSettlement.response.200.data.settlement.componentKey`; string, required) — The component settled.
    - `contractId` (`proposeContractSettlement.response.200.data.settlement.contractId`; string, required) — The contract.
    - `inputCut` (`proposeContractSettlement.response.200.data.settlement.inputCut`; object, required) — The proposed input cut.
      - `complete` (`proposeContractSettlement.response.200.data.settlement.inputCut.complete`; boolean, required) — `true` when the cut covers the whole period; `false` gives a `not_evaluable` settlement.
      - `knowledgeCutoff` (`proposeContractSettlement.response.200.data.settlement.inputCut.knowledgeCutoff`; string, required) — When the source data was cut: RFC 3339 timestamp with offset, not in the future. A complete capitation or fee-for-service cut may not be earlier than the period end in the contract time zone.
      - `manifest` (`proposeContractSettlement.response.200.data.settlement.inputCut.manifest`; object, required) — Document that lists the source data of the cut.
        - `reference` (`proposeContractSettlement.response.200.data.settlement.inputCut.manifest.reference`; string, required) — `artifact:<id>` for a file uploaded with `reserveContractArtifact` (it must be `ready` and match `sha256`), or any other reference: 1 to 512 characters, trimmed, without control characters.
        - `sha256` (`proposeContractSettlement.response.200.data.settlement.inputCut.manifest.sha256`; string, required) — SHA-256 of the document bytes: 64 lowercase hexadecimal characters.
      - `methodology` (`proposeContractSettlement.response.200.data.settlement.inputCut.methodology`; string, required) — How the figures were produced (1 to 512 characters, trimmed, no control characters).
      - `dayBasis` (`proposeContractSettlement.response.200.data.settlement.inputCut.dayBasis`; one of, optional)
        - one of: `DayBasis`, `null`
      - `denominatorDefinition` (`proposeContractSettlement.response.200.data.settlement.inputCut.denominatorDefinition`; string | null, optional) — Capitation: must equal the component's `denominatorDefinition`. Otherwise `null`.
      - `denominatorVersion` (`proposeContractSettlement.response.200.data.settlement.inputCut.denominatorVersion`; string | null, optional) — Capitation: must equal the component's `denominatorVersion`. Otherwise `null`.
      - `invoicedMinor` (`proposeContractSettlement.response.200.data.settlement.inputCut.invoicedMinor`; string | null, optional) — Fee for service: what the invoices of the period's services bill (integer string in minor units, up to 15 digits); `null` when unknown, which gives `not_evaluable`. PGP and capitation: must be `null`.
      - `lostObjectionsMinor` (`proposeContractSettlement.response.200.data.settlement.inputCut.lostObjectionsMinor`; string | null, optional) — Fee for service: what the payer's objections take from those invoices (accepted amounts, and expired objections in full), at most `invoicedMinor`; present exactly when `invoicedMinor` is.
      - `memberDays` (`proposeContractSettlement.response.200.data.settlement.inputCut.memberDays`; string | null, optional) — Capitation: member-days in the period (integer string, up to 12 digits); `null` when unknown, which gives `not_evaluable`. PGP and fee for service: must be `null`.
      - `tariffDays` (`proposeContractSettlement.response.200.data.settlement.inputCut.tariffDays`; array | null, optional) — Capitation with a confirmed pricing, when `memberDays` is given: the covered calendar days each tariff prices in each month of the period (`tariffKey` `null` for the component's own price), each month and tariff once, adding up to `memberDays`; at most 1,000 entries. Otherwise `null`.
    - `supersedesId` (`proposeContractSettlement.response.200.data.settlement.supersedesId`; string | null, required) — The accepted close in force for the period, which the new settlement amends; `null` for the period's first settlement.
    - `versionId` (`proposeContractSettlement.response.200.data.settlement.versionId`; string, required) — The approved version applied.
- `metadata` (`proposeContractSettlement.response.200.metadata`; object, required) — Request metadata, including the request identifier.
  - `requestId` (`proposeContractSettlement.response.200.metadata.requestId`; string, required) — Server-assigned request identifier (opaque). Quote it when reporting a problem.
- `success` (`proposeContractSettlement.response.200.success`; boolean, required) — Always `true` in a success envelope.
  - one of `true`

### 400

Failure. The `error.code` is one of:
- `INVALID_INPUT`: Do not retry unchanged. Fix the request against the operation's schema.
- `USER_PAYMENT_REFUSED`: Check the collection basis and caps in details.paymentProblem before recording the payment.
- `INVALID_INVENTORY`: Do not retry unchanged. Fix the request against the operation's schema.
- `ANALYTICS_QUERY_REJECTED`: Rewrite the query as one read-only statement over the published catalog.
- `MINOR_UNIT_SCALE_MISMATCH`: Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again.

#### Example

```json
{
  "error": {
    "code": "INVALID_INPUT",
    "message": "The request does not match the documented contract."
  },
  "metadata": {
    "requestId": "3f2b8c1e-5d4a-4b6f-9c2e-0a1b2c3d4e5f"
  },
  "success": false
}
```

- `error` (`proposeContractSettlement.response.400.error`; object, required) — The stable failure code, its message and optional details.
  - `code` (`proposeContractSettlement.response.400.error.code`; string, required) — Stable failure code. Branch on this value, never on `message`. - `UNAUTHORIZED` (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request. - `AUTHENTICATION_UNAVAILABLE` (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `ACCESS_DENIED` (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator. - `MODULE_DISABLED` (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules. - `INVALID_INPUT` (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema. - `USER_PAYMENT_REFUSED` (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment. - `INVALID_INVENTORY` (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema. - `ANALYTICS_QUERY_REJECTED` (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog. - `BODY_TOO_LARGE` (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests. - `NOT_FOUND` (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor. - `METHOD_NOT_ALLOWED` (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path. - `CONFLICT` (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again. - `IDEMPOTENCY_CONFLICT` (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action. - `TRANSACTION_ABORTED` (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request. - `INVENTORY_INTEGRITY_CONFLICT` (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator. - `TEAM_PRIOR_UNRESOLVED` (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change. - `COHORT_ACTIVE_REQUIRED` (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_CHANGED` (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page. - `COHORT_READ_REQUIRES_ACTIVE` (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_NEEDS_RECONCILIATION` (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again. - `PROGRAM_NEW_ASSESSMENT_REQUIRED` (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again. - `CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED` (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again. - `MINOR_UNIT_SCALE_MISMATCH` (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again. - `INVOICE_COMPONENT_AMBIGUOUS` (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned. - `SITE_SUBSTITUTION_REFUSED` (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization. - `RESOURCE_LIMIT_EXCEEDED` (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first. - `MODULE_NOT_CONTRACTED` (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it. - `MODULE_REQUIREMENT_MISSING` (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them). - `CAPABILITY_NOT_CONFIGURED` (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization. - `INSTALLATION_NOT_READY` (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again. - `EVIDENCE_NOT_READABLE` (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable. - `ANALYTICS_QUERY_LIMIT` (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry. - `COMMIT_UNCERTAIN` (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first. - `DATABASE_UNAVAILABLE` (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `PIPELINE_UNAVAILABLE` (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first. - `ASSISTANT_UNAVAILABLE` (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization. - `SERVICE_BUSY` (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey. - `INVALID_CONFIGURATION` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support. - `INTERNAL` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    - one of `"UNAUTHORIZED"`, `"AUTHENTICATION_UNAVAILABLE"`, `"ACCESS_DENIED"`, `"MODULE_DISABLED"`, `"INVALID_INPUT"`, `"USER_PAYMENT_REFUSED"`, `"INVALID_INVENTORY"`, `"ANALYTICS_QUERY_REJECTED"`, `"BODY_TOO_LARGE"`, `"NOT_FOUND"`, `"METHOD_NOT_ALLOWED"`, `"CONFLICT"`, `"IDEMPOTENCY_CONFLICT"`, `"TRANSACTION_ABORTED"`, `"INVENTORY_INTEGRITY_CONFLICT"`, `"TEAM_PRIOR_UNRESOLVED"`, `"COHORT_ACTIVE_REQUIRED"`, `"COHORT_CUT_CHANGED"`, `"COHORT_READ_REQUIRES_ACTIVE"`, `"COHORT_CUT_NEEDS_RECONCILIATION"`, `"PROGRAM_NEW_ASSESSMENT_REQUIRED"`, `"CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED"`, `"MINOR_UNIT_SCALE_MISMATCH"`, `"INVOICE_COMPONENT_AMBIGUOUS"`, `"SITE_SUBSTITUTION_REFUSED"`, `"RESOURCE_LIMIT_EXCEEDED"`, `"MODULE_NOT_CONTRACTED"`, `"MODULE_REQUIREMENT_MISSING"`, `"CAPABILITY_NOT_CONFIGURED"`, `"INSTALLATION_NOT_READY"`, `"EVIDENCE_NOT_READABLE"`, `"ANALYTICS_QUERY_LIMIT"`, `"COMMIT_UNCERTAIN"`, `"DATABASE_UNAVAILABLE"`, `"PIPELINE_UNAVAILABLE"`, `"ASSISTANT_UNAVAILABLE"`, `"SERVICE_BUSY"`, `"INVALID_CONFIGURATION"`, `"INTERNAL"`; example `"INVALID_INPUT"`
  - `message` (`proposeContractSettlement.response.400.error.message`; string, required) — Fixed English explanation for people; it may change without notice.
  - `details` (`proposeContractSettlement.response.400.error.details`; object, optional) — Extra data for the codes that need it; absent for every other code.
    - `commandId` (`proposeContractSettlement.response.400.error.details.commandId`; string, optional) — Identifier (`tcm_` prefix) of the earlier team command to reconcile before retrying.
    - `lineIds` (`proposeContractSettlement.response.400.error.details.lineIds`; array<string>, optional) — Unassigned invoice lines that prevent a unique component proposal; at most 100.
    - `module` (`proposeContractSettlement.response.400.error.details.module`; string, optional) — The module the failure is about, for example `agenda`.
      - one of `"pgp"`, `"capitation"`, `"fee_for_service"`, `"results_payment"`, `"service_record"`, `"cac"`, `"cohorts"`, `"studies"`, `"agenda"`, `"voice"`, `"whatsapp"`, `"sms"`, `"email"`, `"arbi"`, `"ai_documents"`, `"ai_care"`, `"analytics"`
    - `paymentProblem` (`proposeContractSettlement.response.400.error.details.paymentProblem`; string, optional) — Why the collection was refused.
      - one of `"rules_unavailable"`, `"not_collectable"`, `"not_for_this_person"`, `"basis_incomplete"`, `"moderator_fee_value"`, `"service_value_unavailable"`, `"above_share"`, `"above_event_cap"`, `"above_year_cap"`
    - `reason` (`proposeContractSettlement.response.400.error.details.reason`; string, optional) — Why the booking's site was refused: `not_contracted` (the contracted site is not one of the contract that day), `not_a_substitute` (no substitution in force that day lets the site serve for it), `patient_acceptance_missing` or `payer_authorization_missing` (the substitution asks for them).
      - one of `"not_contracted"`, `"not_a_substitute"`, `"patient_acceptance_missing"`, `"payer_authorization_missing"`
- `metadata` (`proposeContractSettlement.response.400.metadata`; object, required) — Request metadata, including the request identifier.
  - `requestId` (`proposeContractSettlement.response.400.metadata.requestId`; string, required) — Server-assigned request identifier (opaque). Quote it when reporting a problem.
- `success` (`proposeContractSettlement.response.400.success`; boolean, required) — Always `false` in a failure envelope.
  - one of `false`

### 401

Failure. The `error.code` is one of:
- `UNAUTHORIZED`: Obtain a fresh access token and repeat the request.

#### Example

```json
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "A valid access token is required."
  },
  "metadata": {
    "requestId": "3f2b8c1e-5d4a-4b6f-9c2e-0a1b2c3d4e5f"
  },
  "success": false
}
```

- `error` (`proposeContractSettlement.response.401.error`; object, required) — The stable failure code, its message and optional details.
  - `code` (`proposeContractSettlement.response.401.error.code`; string, required) — Stable failure code. Branch on this value, never on `message`. - `UNAUTHORIZED` (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request. - `AUTHENTICATION_UNAVAILABLE` (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `ACCESS_DENIED` (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator. - `MODULE_DISABLED` (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules. - `INVALID_INPUT` (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema. - `USER_PAYMENT_REFUSED` (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment. - `INVALID_INVENTORY` (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema. - `ANALYTICS_QUERY_REJECTED` (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog. - `BODY_TOO_LARGE` (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests. - `NOT_FOUND` (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor. - `METHOD_NOT_ALLOWED` (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path. - `CONFLICT` (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again. - `IDEMPOTENCY_CONFLICT` (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action. - `TRANSACTION_ABORTED` (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request. - `INVENTORY_INTEGRITY_CONFLICT` (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator. - `TEAM_PRIOR_UNRESOLVED` (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change. - `COHORT_ACTIVE_REQUIRED` (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_CHANGED` (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page. - `COHORT_READ_REQUIRES_ACTIVE` (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_NEEDS_RECONCILIATION` (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again. - `PROGRAM_NEW_ASSESSMENT_REQUIRED` (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again. - `CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED` (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again. - `MINOR_UNIT_SCALE_MISMATCH` (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again. - `INVOICE_COMPONENT_AMBIGUOUS` (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned. - `SITE_SUBSTITUTION_REFUSED` (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization. - `RESOURCE_LIMIT_EXCEEDED` (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first. - `MODULE_NOT_CONTRACTED` (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it. - `MODULE_REQUIREMENT_MISSING` (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them). - `CAPABILITY_NOT_CONFIGURED` (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization. - `INSTALLATION_NOT_READY` (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again. - `EVIDENCE_NOT_READABLE` (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable. - `ANALYTICS_QUERY_LIMIT` (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry. - `COMMIT_UNCERTAIN` (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first. - `DATABASE_UNAVAILABLE` (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `PIPELINE_UNAVAILABLE` (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first. - `ASSISTANT_UNAVAILABLE` (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization. - `SERVICE_BUSY` (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey. - `INVALID_CONFIGURATION` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support. - `INTERNAL` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    - one of `"UNAUTHORIZED"`, `"AUTHENTICATION_UNAVAILABLE"`, `"ACCESS_DENIED"`, `"MODULE_DISABLED"`, `"INVALID_INPUT"`, `"USER_PAYMENT_REFUSED"`, `"INVALID_INVENTORY"`, `"ANALYTICS_QUERY_REJECTED"`, `"BODY_TOO_LARGE"`, `"NOT_FOUND"`, `"METHOD_NOT_ALLOWED"`, `"CONFLICT"`, `"IDEMPOTENCY_CONFLICT"`, `"TRANSACTION_ABORTED"`, `"INVENTORY_INTEGRITY_CONFLICT"`, `"TEAM_PRIOR_UNRESOLVED"`, `"COHORT_ACTIVE_REQUIRED"`, `"COHORT_CUT_CHANGED"`, `"COHORT_READ_REQUIRES_ACTIVE"`, `"COHORT_CUT_NEEDS_RECONCILIATION"`, `"PROGRAM_NEW_ASSESSMENT_REQUIRED"`, `"CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED"`, `"MINOR_UNIT_SCALE_MISMATCH"`, `"INVOICE_COMPONENT_AMBIGUOUS"`, `"SITE_SUBSTITUTION_REFUSED"`, `"RESOURCE_LIMIT_EXCEEDED"`, `"MODULE_NOT_CONTRACTED"`, `"MODULE_REQUIREMENT_MISSING"`, `"CAPABILITY_NOT_CONFIGURED"`, `"INSTALLATION_NOT_READY"`, `"EVIDENCE_NOT_READABLE"`, `"ANALYTICS_QUERY_LIMIT"`, `"COMMIT_UNCERTAIN"`, `"DATABASE_UNAVAILABLE"`, `"PIPELINE_UNAVAILABLE"`, `"ASSISTANT_UNAVAILABLE"`, `"SERVICE_BUSY"`, `"INVALID_CONFIGURATION"`, `"INTERNAL"`; example `"INVALID_INPUT"`
  - `message` (`proposeContractSettlement.response.401.error.message`; string, required) — Fixed English explanation for people; it may change without notice.
  - `details` (`proposeContractSettlement.response.401.error.details`; object, optional) — Extra data for the codes that need it; absent for every other code.
    - `commandId` (`proposeContractSettlement.response.401.error.details.commandId`; string, optional) — Identifier (`tcm_` prefix) of the earlier team command to reconcile before retrying.
    - `lineIds` (`proposeContractSettlement.response.401.error.details.lineIds`; array<string>, optional) — Unassigned invoice lines that prevent a unique component proposal; at most 100.
    - `module` (`proposeContractSettlement.response.401.error.details.module`; string, optional) — The module the failure is about, for example `agenda`.
      - one of `"pgp"`, `"capitation"`, `"fee_for_service"`, `"results_payment"`, `"service_record"`, `"cac"`, `"cohorts"`, `"studies"`, `"agenda"`, `"voice"`, `"whatsapp"`, `"sms"`, `"email"`, `"arbi"`, `"ai_documents"`, `"ai_care"`, `"analytics"`
    - `paymentProblem` (`proposeContractSettlement.response.401.error.details.paymentProblem`; string, optional) — Why the collection was refused.
      - one of `"rules_unavailable"`, `"not_collectable"`, `"not_for_this_person"`, `"basis_incomplete"`, `"moderator_fee_value"`, `"service_value_unavailable"`, `"above_share"`, `"above_event_cap"`, `"above_year_cap"`
    - `reason` (`proposeContractSettlement.response.401.error.details.reason`; string, optional) — Why the booking's site was refused: `not_contracted` (the contracted site is not one of the contract that day), `not_a_substitute` (no substitution in force that day lets the site serve for it), `patient_acceptance_missing` or `payer_authorization_missing` (the substitution asks for them).
      - one of `"not_contracted"`, `"not_a_substitute"`, `"patient_acceptance_missing"`, `"payer_authorization_missing"`
- `metadata` (`proposeContractSettlement.response.401.metadata`; object, required) — Request metadata, including the request identifier.
  - `requestId` (`proposeContractSettlement.response.401.metadata.requestId`; string, required) — Server-assigned request identifier (opaque). Quote it when reporting a problem.
- `success` (`proposeContractSettlement.response.401.success`; boolean, required) — Always `false` in a failure envelope.
  - one of `false`

### 403

Failure. The `error.code` is one of:
- `ACCESS_DENIED`: Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator.
- `MODULE_DISABLED`: Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules.

#### Example

```json
{
  "error": {
    "code": "ACCESS_DENIED",
    "message": "Access denied."
  },
  "metadata": {
    "requestId": "3f2b8c1e-5d4a-4b6f-9c2e-0a1b2c3d4e5f"
  },
  "success": false
}
```

- `error` (`proposeContractSettlement.response.403.error`; object, required) — The stable failure code, its message and optional details.
  - `code` (`proposeContractSettlement.response.403.error.code`; string, required) — Stable failure code. Branch on this value, never on `message`. - `UNAUTHORIZED` (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request. - `AUTHENTICATION_UNAVAILABLE` (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `ACCESS_DENIED` (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator. - `MODULE_DISABLED` (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules. - `INVALID_INPUT` (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema. - `USER_PAYMENT_REFUSED` (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment. - `INVALID_INVENTORY` (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema. - `ANALYTICS_QUERY_REJECTED` (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog. - `BODY_TOO_LARGE` (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests. - `NOT_FOUND` (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor. - `METHOD_NOT_ALLOWED` (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path. - `CONFLICT` (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again. - `IDEMPOTENCY_CONFLICT` (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action. - `TRANSACTION_ABORTED` (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request. - `INVENTORY_INTEGRITY_CONFLICT` (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator. - `TEAM_PRIOR_UNRESOLVED` (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change. - `COHORT_ACTIVE_REQUIRED` (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_CHANGED` (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page. - `COHORT_READ_REQUIRES_ACTIVE` (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_NEEDS_RECONCILIATION` (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again. - `PROGRAM_NEW_ASSESSMENT_REQUIRED` (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again. - `CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED` (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again. - `MINOR_UNIT_SCALE_MISMATCH` (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again. - `INVOICE_COMPONENT_AMBIGUOUS` (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned. - `SITE_SUBSTITUTION_REFUSED` (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization. - `RESOURCE_LIMIT_EXCEEDED` (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first. - `MODULE_NOT_CONTRACTED` (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it. - `MODULE_REQUIREMENT_MISSING` (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them). - `CAPABILITY_NOT_CONFIGURED` (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization. - `INSTALLATION_NOT_READY` (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again. - `EVIDENCE_NOT_READABLE` (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable. - `ANALYTICS_QUERY_LIMIT` (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry. - `COMMIT_UNCERTAIN` (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first. - `DATABASE_UNAVAILABLE` (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `PIPELINE_UNAVAILABLE` (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first. - `ASSISTANT_UNAVAILABLE` (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization. - `SERVICE_BUSY` (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey. - `INVALID_CONFIGURATION` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support. - `INTERNAL` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    - one of `"UNAUTHORIZED"`, `"AUTHENTICATION_UNAVAILABLE"`, `"ACCESS_DENIED"`, `"MODULE_DISABLED"`, `"INVALID_INPUT"`, `"USER_PAYMENT_REFUSED"`, `"INVALID_INVENTORY"`, `"ANALYTICS_QUERY_REJECTED"`, `"BODY_TOO_LARGE"`, `"NOT_FOUND"`, `"METHOD_NOT_ALLOWED"`, `"CONFLICT"`, `"IDEMPOTENCY_CONFLICT"`, `"TRANSACTION_ABORTED"`, `"INVENTORY_INTEGRITY_CONFLICT"`, `"TEAM_PRIOR_UNRESOLVED"`, `"COHORT_ACTIVE_REQUIRED"`, `"COHORT_CUT_CHANGED"`, `"COHORT_READ_REQUIRES_ACTIVE"`, `"COHORT_CUT_NEEDS_RECONCILIATION"`, `"PROGRAM_NEW_ASSESSMENT_REQUIRED"`, `"CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED"`, `"MINOR_UNIT_SCALE_MISMATCH"`, `"INVOICE_COMPONENT_AMBIGUOUS"`, `"SITE_SUBSTITUTION_REFUSED"`, `"RESOURCE_LIMIT_EXCEEDED"`, `"MODULE_NOT_CONTRACTED"`, `"MODULE_REQUIREMENT_MISSING"`, `"CAPABILITY_NOT_CONFIGURED"`, `"INSTALLATION_NOT_READY"`, `"EVIDENCE_NOT_READABLE"`, `"ANALYTICS_QUERY_LIMIT"`, `"COMMIT_UNCERTAIN"`, `"DATABASE_UNAVAILABLE"`, `"PIPELINE_UNAVAILABLE"`, `"ASSISTANT_UNAVAILABLE"`, `"SERVICE_BUSY"`, `"INVALID_CONFIGURATION"`, `"INTERNAL"`; example `"INVALID_INPUT"`
  - `message` (`proposeContractSettlement.response.403.error.message`; string, required) — Fixed English explanation for people; it may change without notice.
  - `details` (`proposeContractSettlement.response.403.error.details`; object, optional) — Extra data for the codes that need it; absent for every other code.
    - `commandId` (`proposeContractSettlement.response.403.error.details.commandId`; string, optional) — Identifier (`tcm_` prefix) of the earlier team command to reconcile before retrying.
    - `lineIds` (`proposeContractSettlement.response.403.error.details.lineIds`; array<string>, optional) — Unassigned invoice lines that prevent a unique component proposal; at most 100.
    - `module` (`proposeContractSettlement.response.403.error.details.module`; string, optional) — The module the failure is about, for example `agenda`.
      - one of `"pgp"`, `"capitation"`, `"fee_for_service"`, `"results_payment"`, `"service_record"`, `"cac"`, `"cohorts"`, `"studies"`, `"agenda"`, `"voice"`, `"whatsapp"`, `"sms"`, `"email"`, `"arbi"`, `"ai_documents"`, `"ai_care"`, `"analytics"`
    - `paymentProblem` (`proposeContractSettlement.response.403.error.details.paymentProblem`; string, optional) — Why the collection was refused.
      - one of `"rules_unavailable"`, `"not_collectable"`, `"not_for_this_person"`, `"basis_incomplete"`, `"moderator_fee_value"`, `"service_value_unavailable"`, `"above_share"`, `"above_event_cap"`, `"above_year_cap"`
    - `reason` (`proposeContractSettlement.response.403.error.details.reason`; string, optional) — Why the booking's site was refused: `not_contracted` (the contracted site is not one of the contract that day), `not_a_substitute` (no substitution in force that day lets the site serve for it), `patient_acceptance_missing` or `payer_authorization_missing` (the substitution asks for them).
      - one of `"not_contracted"`, `"not_a_substitute"`, `"patient_acceptance_missing"`, `"payer_authorization_missing"`
- `metadata` (`proposeContractSettlement.response.403.metadata`; object, required) — Request metadata, including the request identifier.
  - `requestId` (`proposeContractSettlement.response.403.metadata.requestId`; string, required) — Server-assigned request identifier (opaque). Quote it when reporting a problem.
- `success` (`proposeContractSettlement.response.403.success`; boolean, required) — Always `false` in a failure envelope.
  - one of `false`

### 404

Failure. The `error.code` is one of:
- `NOT_FOUND`: Check the identifier. The record may not exist or may not be visible to this actor.

#### Example

```json
{
  "error": {
    "code": "NOT_FOUND",
    "message": "The resource does not exist."
  },
  "metadata": {
    "requestId": "3f2b8c1e-5d4a-4b6f-9c2e-0a1b2c3d4e5f"
  },
  "success": false
}
```

- `error` (`proposeContractSettlement.response.404.error`; object, required) — The stable failure code, its message and optional details.
  - `code` (`proposeContractSettlement.response.404.error.code`; string, required) — Stable failure code. Branch on this value, never on `message`. - `UNAUTHORIZED` (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request. - `AUTHENTICATION_UNAVAILABLE` (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `ACCESS_DENIED` (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator. - `MODULE_DISABLED` (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules. - `INVALID_INPUT` (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema. - `USER_PAYMENT_REFUSED` (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment. - `INVALID_INVENTORY` (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema. - `ANALYTICS_QUERY_REJECTED` (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog. - `BODY_TOO_LARGE` (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests. - `NOT_FOUND` (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor. - `METHOD_NOT_ALLOWED` (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path. - `CONFLICT` (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again. - `IDEMPOTENCY_CONFLICT` (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action. - `TRANSACTION_ABORTED` (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request. - `INVENTORY_INTEGRITY_CONFLICT` (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator. - `TEAM_PRIOR_UNRESOLVED` (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change. - `COHORT_ACTIVE_REQUIRED` (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_CHANGED` (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page. - `COHORT_READ_REQUIRES_ACTIVE` (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_NEEDS_RECONCILIATION` (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again. - `PROGRAM_NEW_ASSESSMENT_REQUIRED` (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again. - `CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED` (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again. - `MINOR_UNIT_SCALE_MISMATCH` (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again. - `INVOICE_COMPONENT_AMBIGUOUS` (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned. - `SITE_SUBSTITUTION_REFUSED` (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization. - `RESOURCE_LIMIT_EXCEEDED` (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first. - `MODULE_NOT_CONTRACTED` (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it. - `MODULE_REQUIREMENT_MISSING` (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them). - `CAPABILITY_NOT_CONFIGURED` (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization. - `INSTALLATION_NOT_READY` (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again. - `EVIDENCE_NOT_READABLE` (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable. - `ANALYTICS_QUERY_LIMIT` (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry. - `COMMIT_UNCERTAIN` (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first. - `DATABASE_UNAVAILABLE` (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `PIPELINE_UNAVAILABLE` (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first. - `ASSISTANT_UNAVAILABLE` (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization. - `SERVICE_BUSY` (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey. - `INVALID_CONFIGURATION` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support. - `INTERNAL` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    - one of `"UNAUTHORIZED"`, `"AUTHENTICATION_UNAVAILABLE"`, `"ACCESS_DENIED"`, `"MODULE_DISABLED"`, `"INVALID_INPUT"`, `"USER_PAYMENT_REFUSED"`, `"INVALID_INVENTORY"`, `"ANALYTICS_QUERY_REJECTED"`, `"BODY_TOO_LARGE"`, `"NOT_FOUND"`, `"METHOD_NOT_ALLOWED"`, `"CONFLICT"`, `"IDEMPOTENCY_CONFLICT"`, `"TRANSACTION_ABORTED"`, `"INVENTORY_INTEGRITY_CONFLICT"`, `"TEAM_PRIOR_UNRESOLVED"`, `"COHORT_ACTIVE_REQUIRED"`, `"COHORT_CUT_CHANGED"`, `"COHORT_READ_REQUIRES_ACTIVE"`, `"COHORT_CUT_NEEDS_RECONCILIATION"`, `"PROGRAM_NEW_ASSESSMENT_REQUIRED"`, `"CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED"`, `"MINOR_UNIT_SCALE_MISMATCH"`, `"INVOICE_COMPONENT_AMBIGUOUS"`, `"SITE_SUBSTITUTION_REFUSED"`, `"RESOURCE_LIMIT_EXCEEDED"`, `"MODULE_NOT_CONTRACTED"`, `"MODULE_REQUIREMENT_MISSING"`, `"CAPABILITY_NOT_CONFIGURED"`, `"INSTALLATION_NOT_READY"`, `"EVIDENCE_NOT_READABLE"`, `"ANALYTICS_QUERY_LIMIT"`, `"COMMIT_UNCERTAIN"`, `"DATABASE_UNAVAILABLE"`, `"PIPELINE_UNAVAILABLE"`, `"ASSISTANT_UNAVAILABLE"`, `"SERVICE_BUSY"`, `"INVALID_CONFIGURATION"`, `"INTERNAL"`; example `"INVALID_INPUT"`
  - `message` (`proposeContractSettlement.response.404.error.message`; string, required) — Fixed English explanation for people; it may change without notice.
  - `details` (`proposeContractSettlement.response.404.error.details`; object, optional) — Extra data for the codes that need it; absent for every other code.
    - `commandId` (`proposeContractSettlement.response.404.error.details.commandId`; string, optional) — Identifier (`tcm_` prefix) of the earlier team command to reconcile before retrying.
    - `lineIds` (`proposeContractSettlement.response.404.error.details.lineIds`; array<string>, optional) — Unassigned invoice lines that prevent a unique component proposal; at most 100.
    - `module` (`proposeContractSettlement.response.404.error.details.module`; string, optional) — The module the failure is about, for example `agenda`.
      - one of `"pgp"`, `"capitation"`, `"fee_for_service"`, `"results_payment"`, `"service_record"`, `"cac"`, `"cohorts"`, `"studies"`, `"agenda"`, `"voice"`, `"whatsapp"`, `"sms"`, `"email"`, `"arbi"`, `"ai_documents"`, `"ai_care"`, `"analytics"`
    - `paymentProblem` (`proposeContractSettlement.response.404.error.details.paymentProblem`; string, optional) — Why the collection was refused.
      - one of `"rules_unavailable"`, `"not_collectable"`, `"not_for_this_person"`, `"basis_incomplete"`, `"moderator_fee_value"`, `"service_value_unavailable"`, `"above_share"`, `"above_event_cap"`, `"above_year_cap"`
    - `reason` (`proposeContractSettlement.response.404.error.details.reason`; string, optional) — Why the booking's site was refused: `not_contracted` (the contracted site is not one of the contract that day), `not_a_substitute` (no substitution in force that day lets the site serve for it), `patient_acceptance_missing` or `payer_authorization_missing` (the substitution asks for them).
      - one of `"not_contracted"`, `"not_a_substitute"`, `"patient_acceptance_missing"`, `"payer_authorization_missing"`
- `metadata` (`proposeContractSettlement.response.404.metadata`; object, required) — Request metadata, including the request identifier.
  - `requestId` (`proposeContractSettlement.response.404.metadata.requestId`; string, required) — Server-assigned request identifier (opaque). Quote it when reporting a problem.
- `success` (`proposeContractSettlement.response.404.success`; boolean, required) — Always `false` in a failure envelope.
  - one of `false`

### 409

Failure. The `error.code` is one of:
- `CONFLICT`: Read the current state with the matching get operation, then decide again.
- `IDEMPOTENCY_CONFLICT`: The requestKey was already used for a different request. Use a new key for a new action.
- `TRANSACTION_ABORTED`: Nothing was written. Retry the same request.
- `INVENTORY_INTEGRITY_CONFLICT`: Do not retry. Report the integrity failure to an operator.
- `TEAM_PRIOR_UNRESOLVED`: Reconcile the earlier team command (see details.commandId) before a new change.
- `COHORT_ACTIVE_REQUIRED`: Read the current state with the matching get operation, then decide again.
- `COHORT_CUT_CHANGED`: Restart the paginated read from the first page.
- `COHORT_READ_REQUIRES_ACTIVE`: Read the current state with the matching get operation, then decide again.
- `COHORT_CUT_NEEDS_RECONCILIATION`: Read the current state with the matching get operation, then decide again.
- `PROGRAM_NEW_ASSESSMENT_REQUIRED`: Read the current state with the matching get operation, then decide again.
- `CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED`: Read the current state with the matching get operation, then decide again.
- `INVOICE_COMPONENT_AMBIGUOUS`: Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned.
- `SITE_SUBSTITUTION_REFUSED`: Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization.

#### Example

```json
{
  "error": {
    "code": "CONFLICT",
    "message": "The resource conflicts with its current state."
  },
  "metadata": {
    "requestId": "3f2b8c1e-5d4a-4b6f-9c2e-0a1b2c3d4e5f"
  },
  "success": false
}
```

- `error` (`proposeContractSettlement.response.409.error`; object, required) — The stable failure code, its message and optional details.
  - `code` (`proposeContractSettlement.response.409.error.code`; string, required) — Stable failure code. Branch on this value, never on `message`. - `UNAUTHORIZED` (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request. - `AUTHENTICATION_UNAVAILABLE` (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `ACCESS_DENIED` (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator. - `MODULE_DISABLED` (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules. - `INVALID_INPUT` (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema. - `USER_PAYMENT_REFUSED` (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment. - `INVALID_INVENTORY` (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema. - `ANALYTICS_QUERY_REJECTED` (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog. - `BODY_TOO_LARGE` (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests. - `NOT_FOUND` (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor. - `METHOD_NOT_ALLOWED` (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path. - `CONFLICT` (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again. - `IDEMPOTENCY_CONFLICT` (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action. - `TRANSACTION_ABORTED` (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request. - `INVENTORY_INTEGRITY_CONFLICT` (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator. - `TEAM_PRIOR_UNRESOLVED` (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change. - `COHORT_ACTIVE_REQUIRED` (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_CHANGED` (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page. - `COHORT_READ_REQUIRES_ACTIVE` (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_NEEDS_RECONCILIATION` (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again. - `PROGRAM_NEW_ASSESSMENT_REQUIRED` (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again. - `CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED` (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again. - `MINOR_UNIT_SCALE_MISMATCH` (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again. - `INVOICE_COMPONENT_AMBIGUOUS` (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned. - `SITE_SUBSTITUTION_REFUSED` (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization. - `RESOURCE_LIMIT_EXCEEDED` (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first. - `MODULE_NOT_CONTRACTED` (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it. - `MODULE_REQUIREMENT_MISSING` (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them). - `CAPABILITY_NOT_CONFIGURED` (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization. - `INSTALLATION_NOT_READY` (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again. - `EVIDENCE_NOT_READABLE` (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable. - `ANALYTICS_QUERY_LIMIT` (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry. - `COMMIT_UNCERTAIN` (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first. - `DATABASE_UNAVAILABLE` (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `PIPELINE_UNAVAILABLE` (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first. - `ASSISTANT_UNAVAILABLE` (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization. - `SERVICE_BUSY` (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey. - `INVALID_CONFIGURATION` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support. - `INTERNAL` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    - one of `"UNAUTHORIZED"`, `"AUTHENTICATION_UNAVAILABLE"`, `"ACCESS_DENIED"`, `"MODULE_DISABLED"`, `"INVALID_INPUT"`, `"USER_PAYMENT_REFUSED"`, `"INVALID_INVENTORY"`, `"ANALYTICS_QUERY_REJECTED"`, `"BODY_TOO_LARGE"`, `"NOT_FOUND"`, `"METHOD_NOT_ALLOWED"`, `"CONFLICT"`, `"IDEMPOTENCY_CONFLICT"`, `"TRANSACTION_ABORTED"`, `"INVENTORY_INTEGRITY_CONFLICT"`, `"TEAM_PRIOR_UNRESOLVED"`, `"COHORT_ACTIVE_REQUIRED"`, `"COHORT_CUT_CHANGED"`, `"COHORT_READ_REQUIRES_ACTIVE"`, `"COHORT_CUT_NEEDS_RECONCILIATION"`, `"PROGRAM_NEW_ASSESSMENT_REQUIRED"`, `"CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED"`, `"MINOR_UNIT_SCALE_MISMATCH"`, `"INVOICE_COMPONENT_AMBIGUOUS"`, `"SITE_SUBSTITUTION_REFUSED"`, `"RESOURCE_LIMIT_EXCEEDED"`, `"MODULE_NOT_CONTRACTED"`, `"MODULE_REQUIREMENT_MISSING"`, `"CAPABILITY_NOT_CONFIGURED"`, `"INSTALLATION_NOT_READY"`, `"EVIDENCE_NOT_READABLE"`, `"ANALYTICS_QUERY_LIMIT"`, `"COMMIT_UNCERTAIN"`, `"DATABASE_UNAVAILABLE"`, `"PIPELINE_UNAVAILABLE"`, `"ASSISTANT_UNAVAILABLE"`, `"SERVICE_BUSY"`, `"INVALID_CONFIGURATION"`, `"INTERNAL"`; example `"INVALID_INPUT"`
  - `message` (`proposeContractSettlement.response.409.error.message`; string, required) — Fixed English explanation for people; it may change without notice.
  - `details` (`proposeContractSettlement.response.409.error.details`; object, optional) — Extra data for the codes that need it; absent for every other code.
    - `commandId` (`proposeContractSettlement.response.409.error.details.commandId`; string, optional) — Identifier (`tcm_` prefix) of the earlier team command to reconcile before retrying.
    - `lineIds` (`proposeContractSettlement.response.409.error.details.lineIds`; array<string>, optional) — Unassigned invoice lines that prevent a unique component proposal; at most 100.
    - `module` (`proposeContractSettlement.response.409.error.details.module`; string, optional) — The module the failure is about, for example `agenda`.
      - one of `"pgp"`, `"capitation"`, `"fee_for_service"`, `"results_payment"`, `"service_record"`, `"cac"`, `"cohorts"`, `"studies"`, `"agenda"`, `"voice"`, `"whatsapp"`, `"sms"`, `"email"`, `"arbi"`, `"ai_documents"`, `"ai_care"`, `"analytics"`
    - `paymentProblem` (`proposeContractSettlement.response.409.error.details.paymentProblem`; string, optional) — Why the collection was refused.
      - one of `"rules_unavailable"`, `"not_collectable"`, `"not_for_this_person"`, `"basis_incomplete"`, `"moderator_fee_value"`, `"service_value_unavailable"`, `"above_share"`, `"above_event_cap"`, `"above_year_cap"`
    - `reason` (`proposeContractSettlement.response.409.error.details.reason`; string, optional) — Why the booking's site was refused: `not_contracted` (the contracted site is not one of the contract that day), `not_a_substitute` (no substitution in force that day lets the site serve for it), `patient_acceptance_missing` or `payer_authorization_missing` (the substitution asks for them).
      - one of `"not_contracted"`, `"not_a_substitute"`, `"patient_acceptance_missing"`, `"payer_authorization_missing"`
- `metadata` (`proposeContractSettlement.response.409.metadata`; object, required) — Request metadata, including the request identifier.
  - `requestId` (`proposeContractSettlement.response.409.metadata.requestId`; string, required) — Server-assigned request identifier (opaque). Quote it when reporting a problem.
- `success` (`proposeContractSettlement.response.409.success`; boolean, required) — Always `false` in a failure envelope.
  - one of `false`

### 422

Failure. The `error.code` is one of:
- `RESOURCE_LIMIT_EXCEEDED`: Do not retry. Reduce the request or archive records first.
- `MODULE_NOT_CONTRACTED`: Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it.
- `MODULE_REQUIREMENT_MISSING`: Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them).
- `CAPABILITY_NOT_CONFIGURED`: Do not retry. The capability is not enabled for this organization.
- `INSTALLATION_NOT_READY`: Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again.
- `EVIDENCE_NOT_READABLE`: Leave the evidence pending until its source content is readable.
- `ANALYTICS_QUERY_LIMIT`: Narrow the query (filters, columns or range) and retry.

#### Example

```json
{
  "error": {
    "code": "RESOURCE_LIMIT_EXCEEDED",
    "message": "This resource has reached its supported capacity."
  },
  "metadata": {
    "requestId": "3f2b8c1e-5d4a-4b6f-9c2e-0a1b2c3d4e5f"
  },
  "success": false
}
```

- `error` (`proposeContractSettlement.response.422.error`; object, required) — The stable failure code, its message and optional details.
  - `code` (`proposeContractSettlement.response.422.error.code`; string, required) — Stable failure code. Branch on this value, never on `message`. - `UNAUTHORIZED` (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request. - `AUTHENTICATION_UNAVAILABLE` (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `ACCESS_DENIED` (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator. - `MODULE_DISABLED` (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules. - `INVALID_INPUT` (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema. - `USER_PAYMENT_REFUSED` (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment. - `INVALID_INVENTORY` (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema. - `ANALYTICS_QUERY_REJECTED` (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog. - `BODY_TOO_LARGE` (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests. - `NOT_FOUND` (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor. - `METHOD_NOT_ALLOWED` (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path. - `CONFLICT` (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again. - `IDEMPOTENCY_CONFLICT` (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action. - `TRANSACTION_ABORTED` (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request. - `INVENTORY_INTEGRITY_CONFLICT` (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator. - `TEAM_PRIOR_UNRESOLVED` (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change. - `COHORT_ACTIVE_REQUIRED` (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_CHANGED` (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page. - `COHORT_READ_REQUIRES_ACTIVE` (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_NEEDS_RECONCILIATION` (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again. - `PROGRAM_NEW_ASSESSMENT_REQUIRED` (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again. - `CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED` (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again. - `MINOR_UNIT_SCALE_MISMATCH` (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again. - `INVOICE_COMPONENT_AMBIGUOUS` (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned. - `SITE_SUBSTITUTION_REFUSED` (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization. - `RESOURCE_LIMIT_EXCEEDED` (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first. - `MODULE_NOT_CONTRACTED` (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it. - `MODULE_REQUIREMENT_MISSING` (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them). - `CAPABILITY_NOT_CONFIGURED` (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization. - `INSTALLATION_NOT_READY` (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again. - `EVIDENCE_NOT_READABLE` (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable. - `ANALYTICS_QUERY_LIMIT` (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry. - `COMMIT_UNCERTAIN` (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first. - `DATABASE_UNAVAILABLE` (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `PIPELINE_UNAVAILABLE` (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first. - `ASSISTANT_UNAVAILABLE` (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization. - `SERVICE_BUSY` (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey. - `INVALID_CONFIGURATION` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support. - `INTERNAL` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    - one of `"UNAUTHORIZED"`, `"AUTHENTICATION_UNAVAILABLE"`, `"ACCESS_DENIED"`, `"MODULE_DISABLED"`, `"INVALID_INPUT"`, `"USER_PAYMENT_REFUSED"`, `"INVALID_INVENTORY"`, `"ANALYTICS_QUERY_REJECTED"`, `"BODY_TOO_LARGE"`, `"NOT_FOUND"`, `"METHOD_NOT_ALLOWED"`, `"CONFLICT"`, `"IDEMPOTENCY_CONFLICT"`, `"TRANSACTION_ABORTED"`, `"INVENTORY_INTEGRITY_CONFLICT"`, `"TEAM_PRIOR_UNRESOLVED"`, `"COHORT_ACTIVE_REQUIRED"`, `"COHORT_CUT_CHANGED"`, `"COHORT_READ_REQUIRES_ACTIVE"`, `"COHORT_CUT_NEEDS_RECONCILIATION"`, `"PROGRAM_NEW_ASSESSMENT_REQUIRED"`, `"CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED"`, `"MINOR_UNIT_SCALE_MISMATCH"`, `"INVOICE_COMPONENT_AMBIGUOUS"`, `"SITE_SUBSTITUTION_REFUSED"`, `"RESOURCE_LIMIT_EXCEEDED"`, `"MODULE_NOT_CONTRACTED"`, `"MODULE_REQUIREMENT_MISSING"`, `"CAPABILITY_NOT_CONFIGURED"`, `"INSTALLATION_NOT_READY"`, `"EVIDENCE_NOT_READABLE"`, `"ANALYTICS_QUERY_LIMIT"`, `"COMMIT_UNCERTAIN"`, `"DATABASE_UNAVAILABLE"`, `"PIPELINE_UNAVAILABLE"`, `"ASSISTANT_UNAVAILABLE"`, `"SERVICE_BUSY"`, `"INVALID_CONFIGURATION"`, `"INTERNAL"`; example `"INVALID_INPUT"`
  - `message` (`proposeContractSettlement.response.422.error.message`; string, required) — Fixed English explanation for people; it may change without notice.
  - `details` (`proposeContractSettlement.response.422.error.details`; object, optional) — Extra data for the codes that need it; absent for every other code.
    - `commandId` (`proposeContractSettlement.response.422.error.details.commandId`; string, optional) — Identifier (`tcm_` prefix) of the earlier team command to reconcile before retrying.
    - `lineIds` (`proposeContractSettlement.response.422.error.details.lineIds`; array<string>, optional) — Unassigned invoice lines that prevent a unique component proposal; at most 100.
    - `module` (`proposeContractSettlement.response.422.error.details.module`; string, optional) — The module the failure is about, for example `agenda`.
      - one of `"pgp"`, `"capitation"`, `"fee_for_service"`, `"results_payment"`, `"service_record"`, `"cac"`, `"cohorts"`, `"studies"`, `"agenda"`, `"voice"`, `"whatsapp"`, `"sms"`, `"email"`, `"arbi"`, `"ai_documents"`, `"ai_care"`, `"analytics"`
    - `paymentProblem` (`proposeContractSettlement.response.422.error.details.paymentProblem`; string, optional) — Why the collection was refused.
      - one of `"rules_unavailable"`, `"not_collectable"`, `"not_for_this_person"`, `"basis_incomplete"`, `"moderator_fee_value"`, `"service_value_unavailable"`, `"above_share"`, `"above_event_cap"`, `"above_year_cap"`
    - `reason` (`proposeContractSettlement.response.422.error.details.reason`; string, optional) — Why the booking's site was refused: `not_contracted` (the contracted site is not one of the contract that day), `not_a_substitute` (no substitution in force that day lets the site serve for it), `patient_acceptance_missing` or `payer_authorization_missing` (the substitution asks for them).
      - one of `"not_contracted"`, `"not_a_substitute"`, `"patient_acceptance_missing"`, `"payer_authorization_missing"`
- `metadata` (`proposeContractSettlement.response.422.metadata`; object, required) — Request metadata, including the request identifier.
  - `requestId` (`proposeContractSettlement.response.422.metadata.requestId`; string, required) — Server-assigned request identifier (opaque). Quote it when reporting a problem.
- `success` (`proposeContractSettlement.response.422.success`; boolean, required) — Always `false` in a failure envelope.
  - one of `false`

### 500

Failure. The `error.code` is one of:
- `INVALID_CONFIGURATION`: Retry once later; if it persists, report the requestId to support.
- `INTERNAL`: Retry once later; if it persists, report the requestId to support.

#### Example

```json
{
  "error": {
    "code": "INVALID_CONFIGURATION",
    "message": "The request could not be completed."
  },
  "metadata": {
    "requestId": "3f2b8c1e-5d4a-4b6f-9c2e-0a1b2c3d4e5f"
  },
  "success": false
}
```

- `error` (`proposeContractSettlement.response.500.error`; object, required) — The stable failure code, its message and optional details.
  - `code` (`proposeContractSettlement.response.500.error.code`; string, required) — Stable failure code. Branch on this value, never on `message`. - `UNAUTHORIZED` (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request. - `AUTHENTICATION_UNAVAILABLE` (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `ACCESS_DENIED` (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator. - `MODULE_DISABLED` (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules. - `INVALID_INPUT` (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema. - `USER_PAYMENT_REFUSED` (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment. - `INVALID_INVENTORY` (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema. - `ANALYTICS_QUERY_REJECTED` (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog. - `BODY_TOO_LARGE` (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests. - `NOT_FOUND` (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor. - `METHOD_NOT_ALLOWED` (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path. - `CONFLICT` (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again. - `IDEMPOTENCY_CONFLICT` (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action. - `TRANSACTION_ABORTED` (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request. - `INVENTORY_INTEGRITY_CONFLICT` (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator. - `TEAM_PRIOR_UNRESOLVED` (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change. - `COHORT_ACTIVE_REQUIRED` (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_CHANGED` (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page. - `COHORT_READ_REQUIRES_ACTIVE` (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_NEEDS_RECONCILIATION` (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again. - `PROGRAM_NEW_ASSESSMENT_REQUIRED` (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again. - `CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED` (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again. - `MINOR_UNIT_SCALE_MISMATCH` (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again. - `INVOICE_COMPONENT_AMBIGUOUS` (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned. - `SITE_SUBSTITUTION_REFUSED` (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization. - `RESOURCE_LIMIT_EXCEEDED` (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first. - `MODULE_NOT_CONTRACTED` (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it. - `MODULE_REQUIREMENT_MISSING` (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them). - `CAPABILITY_NOT_CONFIGURED` (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization. - `INSTALLATION_NOT_READY` (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again. - `EVIDENCE_NOT_READABLE` (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable. - `ANALYTICS_QUERY_LIMIT` (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry. - `COMMIT_UNCERTAIN` (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first. - `DATABASE_UNAVAILABLE` (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `PIPELINE_UNAVAILABLE` (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first. - `ASSISTANT_UNAVAILABLE` (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization. - `SERVICE_BUSY` (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey. - `INVALID_CONFIGURATION` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support. - `INTERNAL` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    - one of `"UNAUTHORIZED"`, `"AUTHENTICATION_UNAVAILABLE"`, `"ACCESS_DENIED"`, `"MODULE_DISABLED"`, `"INVALID_INPUT"`, `"USER_PAYMENT_REFUSED"`, `"INVALID_INVENTORY"`, `"ANALYTICS_QUERY_REJECTED"`, `"BODY_TOO_LARGE"`, `"NOT_FOUND"`, `"METHOD_NOT_ALLOWED"`, `"CONFLICT"`, `"IDEMPOTENCY_CONFLICT"`, `"TRANSACTION_ABORTED"`, `"INVENTORY_INTEGRITY_CONFLICT"`, `"TEAM_PRIOR_UNRESOLVED"`, `"COHORT_ACTIVE_REQUIRED"`, `"COHORT_CUT_CHANGED"`, `"COHORT_READ_REQUIRES_ACTIVE"`, `"COHORT_CUT_NEEDS_RECONCILIATION"`, `"PROGRAM_NEW_ASSESSMENT_REQUIRED"`, `"CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED"`, `"MINOR_UNIT_SCALE_MISMATCH"`, `"INVOICE_COMPONENT_AMBIGUOUS"`, `"SITE_SUBSTITUTION_REFUSED"`, `"RESOURCE_LIMIT_EXCEEDED"`, `"MODULE_NOT_CONTRACTED"`, `"MODULE_REQUIREMENT_MISSING"`, `"CAPABILITY_NOT_CONFIGURED"`, `"INSTALLATION_NOT_READY"`, `"EVIDENCE_NOT_READABLE"`, `"ANALYTICS_QUERY_LIMIT"`, `"COMMIT_UNCERTAIN"`, `"DATABASE_UNAVAILABLE"`, `"PIPELINE_UNAVAILABLE"`, `"ASSISTANT_UNAVAILABLE"`, `"SERVICE_BUSY"`, `"INVALID_CONFIGURATION"`, `"INTERNAL"`; example `"INVALID_INPUT"`
  - `message` (`proposeContractSettlement.response.500.error.message`; string, required) — Fixed English explanation for people; it may change without notice.
  - `details` (`proposeContractSettlement.response.500.error.details`; object, optional) — Extra data for the codes that need it; absent for every other code.
    - `commandId` (`proposeContractSettlement.response.500.error.details.commandId`; string, optional) — Identifier (`tcm_` prefix) of the earlier team command to reconcile before retrying.
    - `lineIds` (`proposeContractSettlement.response.500.error.details.lineIds`; array<string>, optional) — Unassigned invoice lines that prevent a unique component proposal; at most 100.
    - `module` (`proposeContractSettlement.response.500.error.details.module`; string, optional) — The module the failure is about, for example `agenda`.
      - one of `"pgp"`, `"capitation"`, `"fee_for_service"`, `"results_payment"`, `"service_record"`, `"cac"`, `"cohorts"`, `"studies"`, `"agenda"`, `"voice"`, `"whatsapp"`, `"sms"`, `"email"`, `"arbi"`, `"ai_documents"`, `"ai_care"`, `"analytics"`
    - `paymentProblem` (`proposeContractSettlement.response.500.error.details.paymentProblem`; string, optional) — Why the collection was refused.
      - one of `"rules_unavailable"`, `"not_collectable"`, `"not_for_this_person"`, `"basis_incomplete"`, `"moderator_fee_value"`, `"service_value_unavailable"`, `"above_share"`, `"above_event_cap"`, `"above_year_cap"`
    - `reason` (`proposeContractSettlement.response.500.error.details.reason`; string, optional) — Why the booking's site was refused: `not_contracted` (the contracted site is not one of the contract that day), `not_a_substitute` (no substitution in force that day lets the site serve for it), `patient_acceptance_missing` or `payer_authorization_missing` (the substitution asks for them).
      - one of `"not_contracted"`, `"not_a_substitute"`, `"patient_acceptance_missing"`, `"payer_authorization_missing"`
- `metadata` (`proposeContractSettlement.response.500.metadata`; object, required) — Request metadata, including the request identifier.
  - `requestId` (`proposeContractSettlement.response.500.metadata.requestId`; string, required) — Server-assigned request identifier (opaque). Quote it when reporting a problem.
- `success` (`proposeContractSettlement.response.500.success`; boolean, required) — Always `false` in a failure envelope.
  - one of `false`

### 503

Failure. The `error.code` is one of:
- `AUTHENTICATION_UNAVAILABLE`: Retry later with backoff; for a write, reuse the same requestKey.
- `COMMIT_UNCERTAIN`: The write may have happened. Repeat it with the same requestKey or read the record first.
- `DATABASE_UNAVAILABLE`: Retry later with backoff; for a write, reuse the same requestKey.
- `PIPELINE_UNAVAILABLE`: The write may have happened. Repeat it with the same requestKey or read the record first.
- `ASSISTANT_UNAVAILABLE`: Do not retry. The capability is not enabled for this organization.
- `SERVICE_BUSY`: Retry later with backoff; for a write, reuse the same requestKey.

#### Example

```json
{
  "error": {
    "code": "AUTHENTICATION_UNAVAILABLE",
    "message": "Identity verification is temporarily unavailable."
  },
  "metadata": {
    "requestId": "3f2b8c1e-5d4a-4b6f-9c2e-0a1b2c3d4e5f"
  },
  "success": false
}
```

- `error` (`proposeContractSettlement.response.503.error`; object, required) — The stable failure code, its message and optional details.
  - `code` (`proposeContractSettlement.response.503.error.code`; string, required) — Stable failure code. Branch on this value, never on `message`. - `UNAUTHORIZED` (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request. - `AUTHENTICATION_UNAVAILABLE` (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `ACCESS_DENIED` (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator. - `MODULE_DISABLED` (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules. - `INVALID_INPUT` (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema. - `USER_PAYMENT_REFUSED` (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment. - `INVALID_INVENTORY` (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema. - `ANALYTICS_QUERY_REJECTED` (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog. - `BODY_TOO_LARGE` (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests. - `NOT_FOUND` (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor. - `METHOD_NOT_ALLOWED` (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path. - `CONFLICT` (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again. - `IDEMPOTENCY_CONFLICT` (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action. - `TRANSACTION_ABORTED` (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request. - `INVENTORY_INTEGRITY_CONFLICT` (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator. - `TEAM_PRIOR_UNRESOLVED` (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change. - `COHORT_ACTIVE_REQUIRED` (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_CHANGED` (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page. - `COHORT_READ_REQUIRES_ACTIVE` (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_NEEDS_RECONCILIATION` (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again. - `PROGRAM_NEW_ASSESSMENT_REQUIRED` (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again. - `CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED` (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again. - `MINOR_UNIT_SCALE_MISMATCH` (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again. - `INVOICE_COMPONENT_AMBIGUOUS` (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned. - `SITE_SUBSTITUTION_REFUSED` (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization. - `RESOURCE_LIMIT_EXCEEDED` (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first. - `MODULE_NOT_CONTRACTED` (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it. - `MODULE_REQUIREMENT_MISSING` (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them). - `CAPABILITY_NOT_CONFIGURED` (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization. - `INSTALLATION_NOT_READY` (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again. - `EVIDENCE_NOT_READABLE` (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable. - `ANALYTICS_QUERY_LIMIT` (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry. - `COMMIT_UNCERTAIN` (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first. - `DATABASE_UNAVAILABLE` (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `PIPELINE_UNAVAILABLE` (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first. - `ASSISTANT_UNAVAILABLE` (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization. - `SERVICE_BUSY` (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey. - `INVALID_CONFIGURATION` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support. - `INTERNAL` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    - one of `"UNAUTHORIZED"`, `"AUTHENTICATION_UNAVAILABLE"`, `"ACCESS_DENIED"`, `"MODULE_DISABLED"`, `"INVALID_INPUT"`, `"USER_PAYMENT_REFUSED"`, `"INVALID_INVENTORY"`, `"ANALYTICS_QUERY_REJECTED"`, `"BODY_TOO_LARGE"`, `"NOT_FOUND"`, `"METHOD_NOT_ALLOWED"`, `"CONFLICT"`, `"IDEMPOTENCY_CONFLICT"`, `"TRANSACTION_ABORTED"`, `"INVENTORY_INTEGRITY_CONFLICT"`, `"TEAM_PRIOR_UNRESOLVED"`, `"COHORT_ACTIVE_REQUIRED"`, `"COHORT_CUT_CHANGED"`, `"COHORT_READ_REQUIRES_ACTIVE"`, `"COHORT_CUT_NEEDS_RECONCILIATION"`, `"PROGRAM_NEW_ASSESSMENT_REQUIRED"`, `"CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED"`, `"MINOR_UNIT_SCALE_MISMATCH"`, `"INVOICE_COMPONENT_AMBIGUOUS"`, `"SITE_SUBSTITUTION_REFUSED"`, `"RESOURCE_LIMIT_EXCEEDED"`, `"MODULE_NOT_CONTRACTED"`, `"MODULE_REQUIREMENT_MISSING"`, `"CAPABILITY_NOT_CONFIGURED"`, `"INSTALLATION_NOT_READY"`, `"EVIDENCE_NOT_READABLE"`, `"ANALYTICS_QUERY_LIMIT"`, `"COMMIT_UNCERTAIN"`, `"DATABASE_UNAVAILABLE"`, `"PIPELINE_UNAVAILABLE"`, `"ASSISTANT_UNAVAILABLE"`, `"SERVICE_BUSY"`, `"INVALID_CONFIGURATION"`, `"INTERNAL"`; example `"INVALID_INPUT"`
  - `message` (`proposeContractSettlement.response.503.error.message`; string, required) — Fixed English explanation for people; it may change without notice.
  - `details` (`proposeContractSettlement.response.503.error.details`; object, optional) — Extra data for the codes that need it; absent for every other code.
    - `commandId` (`proposeContractSettlement.response.503.error.details.commandId`; string, optional) — Identifier (`tcm_` prefix) of the earlier team command to reconcile before retrying.
    - `lineIds` (`proposeContractSettlement.response.503.error.details.lineIds`; array<string>, optional) — Unassigned invoice lines that prevent a unique component proposal; at most 100.
    - `module` (`proposeContractSettlement.response.503.error.details.module`; string, optional) — The module the failure is about, for example `agenda`.
      - one of `"pgp"`, `"capitation"`, `"fee_for_service"`, `"results_payment"`, `"service_record"`, `"cac"`, `"cohorts"`, `"studies"`, `"agenda"`, `"voice"`, `"whatsapp"`, `"sms"`, `"email"`, `"arbi"`, `"ai_documents"`, `"ai_care"`, `"analytics"`
    - `paymentProblem` (`proposeContractSettlement.response.503.error.details.paymentProblem`; string, optional) — Why the collection was refused.
      - one of `"rules_unavailable"`, `"not_collectable"`, `"not_for_this_person"`, `"basis_incomplete"`, `"moderator_fee_value"`, `"service_value_unavailable"`, `"above_share"`, `"above_event_cap"`, `"above_year_cap"`
    - `reason` (`proposeContractSettlement.response.503.error.details.reason`; string, optional) — Why the booking's site was refused: `not_contracted` (the contracted site is not one of the contract that day), `not_a_substitute` (no substitution in force that day lets the site serve for it), `patient_acceptance_missing` or `payer_authorization_missing` (the substitution asks for them).
      - one of `"not_contracted"`, `"not_a_substitute"`, `"patient_acceptance_missing"`, `"payer_authorization_missing"`
- `metadata` (`proposeContractSettlement.response.503.metadata`; object, required) — Request metadata, including the request identifier.
  - `requestId` (`proposeContractSettlement.response.503.metadata.requestId`; string, required) — Server-assigned request identifier (opaque). Quote it when reporting a problem.
- `success` (`proposeContractSettlement.response.503.success`; boolean, required) — Always `false` in a failure envelope.
  - one of `false`

### default

#### Example

```json
{
  "error": {
    "code": "INVALID_INPUT",
    "details": {
      "commandId": "string",
      "lineIds": [
        "string"
      ],
      "module": "pgp",
      "paymentProblem": "rules_unavailable",
      "reason": "not_contracted"
    },
    "message": "string"
  },
  "metadata": {
    "requestId": "string"
  },
  "success": false
}
```

- `error` (`proposeContractSettlement.response.default.error`; object, required) — The stable failure code, its message and optional details.
  - `code` (`proposeContractSettlement.response.default.error.code`; string, required) — Stable failure code. Branch on this value, never on `message`. - `UNAUTHORIZED` (HTTP 401): A valid access token is required. Obtain a fresh access token and repeat the request. - `AUTHENTICATION_UNAVAILABLE` (HTTP 503): Identity verification is temporarily unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `ACCESS_DENIED` (HTTP 403): Access denied. Do not retry. The signed-in actor lacks this purpose or grant; ask an administrator. - `MODULE_DISABLED` (HTTP 403): This operation belongs to a module the organization does not use. Do not retry. The organization does not use the module in details.module (getSession lists the ones it uses); an administrator turns it on with setOrganizationModules. - `INVALID_INPUT` (HTTP 400): The request does not match the documented contract. Do not retry unchanged. Fix the request against the operation's schema. - `USER_PAYMENT_REFUSED` (HTTP 400): The collection exceeds the applicable payment rules. Check the collection basis and caps in details.paymentProblem before recording the payment. - `INVALID_INVENTORY` (HTTP 400): The content does not match the selected inventory contract. Do not retry unchanged. Fix the request against the operation's schema. - `ANALYTICS_QUERY_REJECTED` (HTTP 400): Use one read-only query over the admitted catalog and its supported functions. Rewrite the query as one read-only statement over the published catalog. - `BODY_TOO_LARGE` (HTTP 413): The request body exceeds the supported limit. Send a smaller body, or split the content into several requests. - `NOT_FOUND` (HTTP 404): The resource does not exist. Check the identifier. The record may not exist or may not be visible to this actor. - `METHOD_NOT_ALLOWED` (HTTP 405): The method is not supported for this resource. Use the HTTP method documented for this path. - `CONFLICT` (HTTP 409): The resource conflicts with its current state. Read the current state with the matching get operation, then decide again. - `IDEMPOTENCY_CONFLICT` (HTTP 409): The command key already identifies a different request. The requestKey was already used for a different request. Use a new key for a new action. - `TRANSACTION_ABORTED` (HTTP 409): The transaction rolled back without committing changes. Nothing was written. Retry the same request. - `INVENTORY_INTEGRITY_CONFLICT` (HTTP 409): The current build failed integrity verification. Do not retry. Report the integrity failure to an operator. - `TEAM_PRIOR_UNRESOLVED` (HTTP 409): Reconcile the existing team command before preparing another change. Reconcile the earlier team command (see details.commandId) before a new change. - `COHORT_ACTIVE_REQUIRED` (HTTP 409): Only an active cohort can create a new candidate snapshot. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_CHANGED` (HTTP 409): The current cohort cut changed. Restart this read from the first page. Restart the paginated read from the first page. - `COHORT_READ_REQUIRES_ACTIVE` (HTTP 409): Only an active cohort has a current care-facts view. Read the current state with the matching get operation, then decide again. - `COHORT_CUT_NEEDS_RECONCILIATION` (HTTP 409): The cohort cut needs reconciliation before its care facts can be read. Read the current state with the matching get operation, then decide again. - `PROGRAM_NEW_ASSESSMENT_REQUIRED` (HTTP 409): Select a new eligible assessment recorded after the last participation change. Read the current state with the matching get operation, then decide again. - `CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED` (HTTP 409): The proposed terms change component identities already fixed by an accepted close. Read the current state with the matching get operation, then decide again. - `MINOR_UNIT_SCALE_MISMATCH` (HTTP 400): A component's money is not in the minor units of its currency (ISO 4217). Write each component's money in the minor units of its currency (minorUnitScale 2 for COP, PEN, MXN and BRL; 0 for CLP) and propose again. - `INVOICE_COMPONENT_AMBIGUOUS` (HTTP 409): Invoice lines have no unique fee-for-service component. Route the lines in details.lineIds to their paying component, then request the proposal again. At most 100 identifiers are returned. - `SITE_SUBSTITUTION_REFUSED` (HTTP 409): The contract does not let this site serve for the contracted site as booked. Book at the contracted site, or at a site its contract lets serve for it on the appointment's day (listContractSites), recording what details.reason says is missing: the patient's acceptance or the payer's authorization. - `RESOURCE_LIMIT_EXCEEDED` (HTTP 422): This resource has reached its supported capacity. Do not retry. Reduce the request or archive records first. - `MODULE_NOT_CONTRACTED` (HTTP 422): The organization did not contract this module. Leave the module in details.module off: the organization did not contract it. Árbol adds it to the contract when the organization buys it. - `MODULE_REQUIREMENT_MISSING` (HTTP 422): This module needs one of the modules it requires to be on. Turn on, in the same request, one of the modules the module in details.module requires (getOrganizationModules lists them). - `CAPABILITY_NOT_CONFIGURED` (HTTP 422): This operation requires its governed native implementation before it can be activated. Do not retry. The capability is not enabled for this organization. - `INSTALLATION_NOT_READY` (HTTP 422): The installation cannot be activated: its app version is not certified or a credential its app declares is missing. Do not retry unchanged. Wait for a certified app version, record examples that cover every operation and change of a custom-http installation, or add the missing credentials to the deployment, then activate again. - `EVIDENCE_NOT_READABLE` (HTTP 422): Accepting evidence requires readable content and independent reporter provenance. Leave it pending until its source is readable. Leave the evidence pending until its source content is readable. - `ANALYTICS_QUERY_LIMIT` (HTTP 422): The query exceeded its bounded work, memory or output budget. Narrow the query. Narrow the query (filters, columns or range) and retry. - `COMMIT_UNCERTAIN` (HTTP 503): The commit outcome is unknown. Reconcile before retrying. The write may have happened. Repeat it with the same requestKey or read the record first. - `DATABASE_UNAVAILABLE` (HTTP 503): The database is unavailable. Retry later with backoff; for a write, reuse the same requestKey. - `PIPELINE_UNAVAILABLE` (HTTP 503): The pipeline is unavailable. Reconcile using the same request key. The write may have happened. Repeat it with the same requestKey or read the record first. - `ASSISTANT_UNAVAILABLE` (HTTP 503): The assistant is not available for this workspace. Do not retry. The capability is not enabled for this organization. - `SERVICE_BUSY` (HTTP 503): The service is handling its current request limit. Retry later with backoff; for a write, reuse the same requestKey. - `INVALID_CONFIGURATION` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support. - `INTERNAL` (HTTP 500): The request could not be completed. Retry once later; if it persists, report the requestId to support.
    - one of `"UNAUTHORIZED"`, `"AUTHENTICATION_UNAVAILABLE"`, `"ACCESS_DENIED"`, `"MODULE_DISABLED"`, `"INVALID_INPUT"`, `"USER_PAYMENT_REFUSED"`, `"INVALID_INVENTORY"`, `"ANALYTICS_QUERY_REJECTED"`, `"BODY_TOO_LARGE"`, `"NOT_FOUND"`, `"METHOD_NOT_ALLOWED"`, `"CONFLICT"`, `"IDEMPOTENCY_CONFLICT"`, `"TRANSACTION_ABORTED"`, `"INVENTORY_INTEGRITY_CONFLICT"`, `"TEAM_PRIOR_UNRESOLVED"`, `"COHORT_ACTIVE_REQUIRED"`, `"COHORT_CUT_CHANGED"`, `"COHORT_READ_REQUIRES_ACTIVE"`, `"COHORT_CUT_NEEDS_RECONCILIATION"`, `"PROGRAM_NEW_ASSESSMENT_REQUIRED"`, `"CONTRACT_CLOSED_WINDOW_CHANGE_UNSUPPORTED"`, `"MINOR_UNIT_SCALE_MISMATCH"`, `"INVOICE_COMPONENT_AMBIGUOUS"`, `"SITE_SUBSTITUTION_REFUSED"`, `"RESOURCE_LIMIT_EXCEEDED"`, `"MODULE_NOT_CONTRACTED"`, `"MODULE_REQUIREMENT_MISSING"`, `"CAPABILITY_NOT_CONFIGURED"`, `"INSTALLATION_NOT_READY"`, `"EVIDENCE_NOT_READABLE"`, `"ANALYTICS_QUERY_LIMIT"`, `"COMMIT_UNCERTAIN"`, `"DATABASE_UNAVAILABLE"`, `"PIPELINE_UNAVAILABLE"`, `"ASSISTANT_UNAVAILABLE"`, `"SERVICE_BUSY"`, `"INVALID_CONFIGURATION"`, `"INTERNAL"`; example `"INVALID_INPUT"`
  - `message` (`proposeContractSettlement.response.default.error.message`; string, required) — Fixed English explanation for people; it may change without notice.
  - `details` (`proposeContractSettlement.response.default.error.details`; object, optional) — Extra data for the codes that need it; absent for every other code.
    - `commandId` (`proposeContractSettlement.response.default.error.details.commandId`; string, optional) — Identifier (`tcm_` prefix) of the earlier team command to reconcile before retrying.
    - `lineIds` (`proposeContractSettlement.response.default.error.details.lineIds`; array<string>, optional) — Unassigned invoice lines that prevent a unique component proposal; at most 100.
    - `module` (`proposeContractSettlement.response.default.error.details.module`; string, optional) — The module the failure is about, for example `agenda`.
      - one of `"pgp"`, `"capitation"`, `"fee_for_service"`, `"results_payment"`, `"service_record"`, `"cac"`, `"cohorts"`, `"studies"`, `"agenda"`, `"voice"`, `"whatsapp"`, `"sms"`, `"email"`, `"arbi"`, `"ai_documents"`, `"ai_care"`, `"analytics"`
    - `paymentProblem` (`proposeContractSettlement.response.default.error.details.paymentProblem`; string, optional) — Why the collection was refused.
      - one of `"rules_unavailable"`, `"not_collectable"`, `"not_for_this_person"`, `"basis_incomplete"`, `"moderator_fee_value"`, `"service_value_unavailable"`, `"above_share"`, `"above_event_cap"`, `"above_year_cap"`
    - `reason` (`proposeContractSettlement.response.default.error.details.reason`; string, optional) — Why the booking's site was refused: `not_contracted` (the contracted site is not one of the contract that day), `not_a_substitute` (no substitution in force that day lets the site serve for it), `patient_acceptance_missing` or `payer_authorization_missing` (the substitution asks for them).
      - one of `"not_contracted"`, `"not_a_substitute"`, `"patient_acceptance_missing"`, `"payer_authorization_missing"`
- `metadata` (`proposeContractSettlement.response.default.metadata`; object, required) — Request metadata, including the request identifier.
  - `requestId` (`proposeContractSettlement.response.default.metadata.requestId`; string, required) — Server-assigned request identifier (opaque). Quote it when reporting a problem.
- `success` (`proposeContractSettlement.response.default.success`; boolean, required) — Always `false` in a failure envelope.
  - one of `false`


Source: https://docs.getarbol.com/api/ambar/propose-contract-settlement/index.md
