# Dynamic Token Lengths

365 business Banking sizes the search terms taken from the purpose text by your open customer ledger entries, so short document numbers are found too.

## Business Value

A fixed minimum length for search terms misses short references, such as web shop order numbers with five characters like `46006`. Such payments would have to be applied manually. With dynamic token lengths, automatic application finds these references without arbitrarily short character sequences producing false hits.

## Feature Description

Direct purpose matching splits the purpose text into words (tokens). The permitted minimum and maximum length comes from the shortest and longest value in the **Payment Application Fields** of the open customer ledger entries (invoices and credit memos). A token, however, always has at least 4 characters. If no length can be determined, 4 to 30 characters apply. No setup is required.

Details: [Direct matching for payment service providers](../../bank-reconciliation/direct-matching.mdx#dynamic-token-lengths)
