# Creates a new bookkeeping rule for the specified client. The rule defines how transactions are processed and mapped to generate vouchers based on the client's requirements. Endpoint: POST /api/v1/clients/{clientId}/bookkeeping/matching-rules Version: 1 Security: , , , ## Path parameters: - `clientId` (string, required) ## Request fields (application/json): - `displayName` (string) Sets the display name for the bookkeeping rule. - `autoUpdate` (boolean) Sets if the voucher is automatically updated in the erp-system. - `applyTransactionFilterAfterMatching` (boolean) Indicates whether transaction filters should be applied after matching, specifically to transactions not matched during the initial matching process. - `filters` (array) Gets or sets the collection of filters applied to the bookkeeping rule. These filters are used to determine the matching criteria when finding open posts. - `filters.field` (string) Enum: "Amount", "Currency", "ReferenceNumber", "ArchiveReference", "Description", "InvoiceNumber", "StructuredReference", "AdditionalText", "DebtorAddress", "BookedAmount", "AccountCurrency", "ChargeCurrency", "ChargeAmount", "BankTransactionCode", "AccountNumber", "DebtorAccountNumber", "DebtorName", "BankInformation" - `filters.operation` (string) Enum: "ExactText", "ContainsText", "StartsWithText", "EndsWithText", "ExactAmount", "FromZeroToAmount", "BelowAmount", "AboveAmount" ## Response 200 fields (application/json): - `links` (object) - `clientId` (string) - `ruleId` (string) ## Response 403 fields (application/json): - `type` (string,null) - `title` (string,null) - `status` (integer,null) - `detail` (string,null) - `instance` (string,null) ## Response 404 fields (application/json): - `type` (string,null) - `title` (string,null) - `status` (integer,null) - `detail` (string,null) - `instance` (string,null)