---
title: "Payment-rule batches and their rules"
method: GET
path: "/v1/ap/rules"
tags: ["Accounts Payable"]
---

# Payment-rule batches and their rules

`GET /v1/ap/rules`

## Request

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

Every batch of payment-rule files (policies, validation rules), newest first: each file's reading state (`status` pending, processing, waiting, completed, error; `rules_status` none, generating, waiting, ready, error) and the rules found in it, each with the words of the file it comes from. Every invoice is checked against all of them, together with the documents it links to (purchase orders, delivery notes, contract); a failed rule holds it (`policy_rule`), an unclear one is a note, and a check still running makes it `evaluating` (gap `rules_pending`). Requires scope `read`.

## Response `200`

The batches.

- object[]
  - `id` string, uuid
  - `name` string
  - `created_at` string, date-time
  - `files` object[]
    - `document_id` string, uuid
    - `filename` string
    - `status` string
    - `rules_status` string
    - `error` string, nullable
    - `rule_count` integer
  - `rules` object[]
    - `id` string, uuid
    - `document_id` string, uuid
    - `code` string, nullable
    - `text` string
    - `obligation` string
    - `source_quote` string, nullable
    - `origin` string

## Changes

- **2026-11-03** `c81bf2e33e3b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/ap/rules/get.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)
