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

# Versioned API paths & AP matching controls

> Every endpoint now lives under a /v1 path prefix, and you can tune the accounts-payable matching engine and upsert purchase orders by number.

<Update label="2026-07-13" tags={["Feature","Release"]} description="Versioned /v1 paths">
  ### Tune the AP matching engine

  [Patch your AP settings](/api-reference/endpoint/clients/patch-ap-settings) to control how bills are matched against purchase orders and delivery notes. You can set the rounding tolerance, the fuzzy line and supplier thresholds, the supplier name and address weighting, the date-proximity window, and the header- and line-affinity weights. Only the fields you send change, and the settings apply to every Organisation under the Client — so you can dial matching in once for your whole book. Read the current values with [get AP settings](/api-reference/endpoint/clients/get-ap-settings).

  ### Upsert purchase orders by number

  [Replace a purchase order by its PO number](/api-reference/endpoint/purchase-orders/replace-purchase-order-by-po-number) instead of its internal id — the idempotent path for re-uploading a PO from an upstream system. Lines with a known id are updated, new lines are added, and omitted lines are removed. Closed and cancelled orders stay immutable, and a line already matched to a bill can't be removed or reduced below the matched quantity, so re-ingesting a PO never disturbs work already reconciled against it.
</Update>
