Field Validation
Field validation rules and requirements for Pave Bank API
Proper field validation is essential for successful API integration. This guide documents field validation rules that apply to the Pave Bank API (apiv1), helping you avoid common integration errors.
SWIFT Character Set X (Char Set X)
Some fields use SWIFT Char Set X, a standardized set of characters permitted for international payment processing.
Allowed Characters
The following characters are permitted in Char Set X fields:
- Letters: a-z, A-Z
- Numbers: 0-9
- Special characters:
/,-,?,:,(,),.,,,',+, and spaces
Pattern: ^[a-zA-Z0-9/\-?:()\.,'\+\s]*$
Examples
Valid Beneficiary Name:
Invalid Beneficiary Name:
Valid API Request:
ISO Country Codes
All country-related fields use ISO 3166-1 alpha-2 format—a standardized two-letter country code.
Format
Country codes are exactly 2 uppercase letters, for example:
US- United StatesGB- United KingdomSG- SingaporeDE- GermanyJP- Japan
Common Pitfall: Using 3-Letter Codes
A frequent error is using ISO 3166-1 alpha-3 (3-letter) codes instead of alpha-2. These will be rejected:
| Incorrect (3-letter) | Correct (2-letter) |
|---|---|
| USA | US |
| GBR | GB |
| SGP | SG |
Examples
Valid Country Code in Address:
Invalid Country Code:
Error Response:
ISO Currency Codes
Currency amounts in the Pave Bank API use ISO 4217 three-letter codes. For detailed information about currency representations and minor units, see the Currencies guide.
Format
Currency codes are exactly 3 uppercase letters, for example:
USD- US DollarEUR- EuroGBP- British PoundJPY- Japanese YenHUF- Hungarian Forint
Examples
Valid Currency Transfer:
BIC/SWIFT Code Validation
BIC (Business Identifier Code), also known as SWIFT code, is required for international transfers. It must follow a specific format.
Format Requirements
BIC codes are either 8 or 11 characters long with the following structure:
| Component | Length | Format | Example |
|---|---|---|---|
| Institution Code | 4 | Uppercase letters only | PBNK |
| Country Code | 2 | ISO 3166-1 alpha-2 | US |
| Location Code | 2 | Uppercase alphanumeric | NY |
| Branch Code | 3 | Alphanumeric (optional) | XXX (defaults to XXX) |
Complete Structure
8-character BIC (no branch):
11-character BIC (with branch):
Examples
Valid 8-Character BIC:
Valid 11-Character BIC:
Invalid BIC Format:
Other Common Validation Rules
Account Names
Account names must contain only letters, numbers, spaces, and hyphens.
- Pattern:
^[a-zA-Z0-9\s\-]+$ - Length: 1-250 characters
Valid:
Invalid:
Email Addresses
When email notifications are enabled, a valid email address is required.
Valid:
Invalid:
Structured Address Fields (Nominal Accounts)
Addresses follow a specific structure with required and optional fields:
| Field | Required | Max Length | Notes |
|---|---|---|---|
| Country | Yes | 2 | ISO 3166-1 alpha-2 |
| Post Code | Yes | 16 | |
| Town Name | Yes | 35 | |
| Country Subdivision | No | 35 | State/Province |
| Street Name | No | 70 | |
| Building Number | No | 16 | |
| Building Name | No | 35 | |
| Floor | No | 70 |
Valid Complete Address: