Create, retrieve, update and delete sorting patterns

Patterns allow your users to define explicit identifier-based routing rules that take effect independently of AzoraOne's self-learning mechanism, giving your users deterministic control over recurring document sorting.

The new patterns resource introduces deterministic document routing to AzoraOne, letting your users attach identifiers to a destination so that matching documents are sorted to the correct type automatically. Until now, sorting relied entirely on self-learning; patterns give your users a way to encode known rules and override that flow where needed. Identifiers are words AzoraOne looks for in uploaded documents to decide where to route them; the destination specifies the document type (i.e. CustomerInvoice, SupplierInvoice, Receipt or Other) and optionally verification series. Full CRUD operations are available at the company level.

The verification series in a destination is optional. If omitted, AzoraOne routes the document to the specified type without applying a series. Patterns are company-scoped and do not carry over between companies.

Affected Operations:

GET {api}/{version}/companies/{companyID}/patterns

Retrieve a filtered, pageable list of sorting patterns for a given company.

GET {api}/{version}/companies/{companyID}/patterns/{patternID}

Fetch the full details of a single sorting pattern by its ID.

POST {api}/{version}/companies/{companyID}/patterns

Create a new sorting pattern with one or more identifiers and a destination for a given company.

PUT {api}/{version}/companies/{companyID}/patterns/{patternID}

Update an existing sorting pattern's identifiers or destination.

DELETE {api}/{version}/companies/{companyID}/patterns/{patternID}

Remove a sorting pattern from a company so it no longer affects document routing.