Each bank has its own rules on what the maximum length can be for your references.
Fortunately, you can check this information by making a GET /banks request and checking the fieldsFormatInformation field.
For example:
"fieldsFormatInformation": [{
"name": "description",
"path": "description",
"constraint": "^[A-Za-z0-9?:()./,\u0027+\\-\\s]*$"
}, {
"name": "remittanceReference",
"path": "transfer_body.remittance_reference",
"constraint": "^[A-Za-z0-9?:()./,\u0027+\\-\\s]{0,35}$"
}]
As you can see from the example above, under the two 'constraint' fields, you can see that for the description, the constraint ends with '*$'.
Whereas, for the 'remittanceReference', the constraint ends with {0,35}$.
The constraints for each of these fields can vary from bank to bank, so, if the constraint ends with:
- Asterix (*) - this means that any number of characters is accepted.
- Numbers, such as {0,35} - this means that the minimum number of characters is 0 and the maximum is 35.