Error Handling
Comprehensive guide to handling errors across the customer lifecycle flows.Error Response Format
All API errors follow a consistent format:HTTP Status Codes
| Code | Description | Common Causes |
|---|---|---|
400 | Bad Request | Validation errors, missing fields |
401 | Unauthorized | Invalid/expired token, wrong credentials |
403 | Forbidden | Insufficient permissions, role mismatch |
404 | Not Found | Resource doesn’t exist |
409 | Conflict | Duplicate resource, state conflict |
422 | Unprocessable Entity | Business rule violation |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Server-side error |
Registration Errors
Password Mismatch (400)
password and matchingPassword fields contain identical values.
Invalid Categorization (400)
- Call
GET /categorization/hierarchy/{tenantId}to get available options - Check
mandatoryKeysfor the feature - Ensure all mandatory keys are provided
- Validate values against
allowedValues
Tenant Access Denied (403)
X-Tenant-ID header matches your assigned tenant and that categorization is enabled for your tenant.
Organization Already Exists (409)
Authentication Errors
Invalid Credentials (401)
Account Locked (401)
Token Expired (401)
Verification Errors
Insufficient Permission (403)
COMPLIANCE_OFFICER or ADMIN_USER role.
Activation Errors
Missing Consents (400)
acceptUrl endpoints.
Not Verified (422)
Missing ADMIN_USER Role (400)
ADMIN_USER role.
Transaction Errors
Insufficient Balance (400)
Limit Exceeded (400)
Beneficiary Not Found (404)
Troubleshooting Checklist
Registration Issues
- Valid email format
- Password meets requirements (8+ chars, mixed case, numbers, special)
-
passwordmatchesmatchingPassword - Valid tenant ID in header
- Categorization values match allowed values
Authentication Issues
- Correct username (email)
- Correct password
- Valid tenant key and secret
- Account not locked
- Token not expired
Activation Issues
- Verification status is
APPROVED - All three consents accepted (Terms, Privacy, Data Processing)
- Customer not already active
- For B2B: At least one employee with
ADMIN_USERrole
Transaction Issues
- Wallet is
ACTIVE - Sufficient balance
- Within transaction limits
- Beneficiary exists and is active
- Valid payment consent in place
Error Handling Best Practices
- Parse error responses - Always check the
dataobject for detailed information - Handle retries carefully - Don’t retry on 400/403/422 errors
- Log error details - Store
code,message, anddatafor debugging - Show user-friendly messages - Map technical errors to user-friendly text
- Implement exponential backoff - For 429 and 500 errors