---
title: "Save or check the AP configuration"
method: PUT
path: "/v1/ap/config"
tags: ["Accounts Payable"]
---

# Save or check the AP configuration

`PUT /v1/ap/config`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/ap/config`
- Auth: HTTP bearer

The whole configuration replaces the stored one. It is validated on every write: bill sources must name Money Found roles, entities and NetSuite references need `id` and `name`, and `default_terms_days` is 0 to 365. With `dry_run` the configuration is only checked. Requires scope `write`.

## Request body

- object
  - `config` ApConfig, required: Every key is optional; defaults read the Money Found bindings.
    - `risk` object: The risk matrix for this workspace, over the platform defaults (duplicate, already paid and bank changed: high; above contract, above PO, not received and payment rule: medium; the rest low; impact high from 10,000, medium from 1,000).
      - `likelihood` object: Per hold reason: high, medium or low.
      - `impact` object: Both thresholds or neither.
        - `high` number, required: Amount at stake (ledger currency) from which the impact is high.
        - `medium` number, required: From which it is medium; not above `high`.
    - `bill_sources` object[]: Where bills come from; default is the `ap_invoices` role without purchase orders.
      - `role` string, required: A Money Found role.
      - `kinds` string[]: Only these `doc_kind` values are bills; empty means every kind not excluded.
      - `exclude_kinds` string[]
      - `map` object: Bill field to the role's field, when the role names it differently.
    - `contract_register` object, nullable: A reference table giving entity and cost centre per contract.
      - `reference_data_id` string, uuid
      - `columns` object
        - `contract_id` string, required
        - `entity` string
        - `cost_centre` string
    - `entities` object: Legal entities by code.
    - `netsuite` object
      - `account` string: Sandbox account label.
      - `ap_account` ApNsRef
        - `id` string, required: NetSuite internal id.
        - `name` string, required
      - `currencies` object: ISO code to NetSuite currency internal id.
      - `terms` object: Payment terms by net days.
      - `accounts_by_kind` object: Expense account by bill kind.
      - `default_account` ApNsRef
        - `id` string, required: NetSuite internal id.
        - `name` string, required
      - `tax_account` ApNsRef
        - `id` string, required: NetSuite internal id.
        - `name` string, required
      - `departments` object: Department by cost centre.
      - `vendors` object: Vendor records by normalized vendor name. When set, a bill whose vendor is missing is held.
      - `item_lines` boolean: Lines carrying a SKU go to the item sublist.
    - `po_required_kinds` string[]: Kinds that must carry a PO number; a bill of one without it is held.
    - `default_terms_days` integer
  - `dry_run` boolean

## Response `200`

The configuration as saved, or as checked.

- object
  - `config` ApConfig: Every key is optional; defaults read the Money Found bindings.
    - `risk` object: The risk matrix for this workspace, over the platform defaults (duplicate, already paid and bank changed: high; above contract, above PO, not received and payment rule: medium; the rest low; impact high from 10,000, medium from 1,000).
      - `likelihood` object: Per hold reason: high, medium or low.
      - `impact` object: Both thresholds or neither.
        - `high` number, required: Amount at stake (ledger currency) from which the impact is high.
        - `medium` number, required: From which it is medium; not above `high`.
    - `bill_sources` object[]: Where bills come from; default is the `ap_invoices` role without purchase orders.
      - `role` string, required: A Money Found role.
      - `kinds` string[]: Only these `doc_kind` values are bills; empty means every kind not excluded.
      - `exclude_kinds` string[]
      - `map` object: Bill field to the role's field, when the role names it differently.
    - `contract_register` object, nullable: A reference table giving entity and cost centre per contract.
      - `reference_data_id` string, uuid
      - `columns` object
        - `contract_id` string, required
        - `entity` string
        - `cost_centre` string
    - `entities` object: Legal entities by code.
    - `netsuite` object
      - `account` string: Sandbox account label.
      - `ap_account` ApNsRef
        - `id` string, required: NetSuite internal id.
        - `name` string, required
      - `currencies` object: ISO code to NetSuite currency internal id.
      - `terms` object: Payment terms by net days.
      - `accounts_by_kind` object: Expense account by bill kind.
      - `default_account` ApNsRef
        - `id` string, required: NetSuite internal id.
        - `name` string, required
      - `tax_account` ApNsRef
        - `id` string, required: NetSuite internal id.
        - `name` string, required
      - `departments` object: Department by cost centre.
      - `vendors` object: Vendor records by normalized vendor name. When set, a bill whose vendor is missing is held.
      - `item_lines` boolean: Lines carrying a SKU go to the item sublist.
    - `po_required_kinds` string[]: Kinds that must carry a PO number; a bill of one without it is held.
    - `default_terms_days` integer
  - `saved` boolean: False for a dry run.

## Other responses

- `400`: The request is invalid.
- `403`: The API key does not have the required scope.

## Changes

- **2026-11-03** `c81bf2e33e3b`: 2 info
  - added the new optional request property `config/risk`
  - added the optional property `config/risk` to the response with the `200` status
- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/ap/config/put.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
