Skip to main content

Error Handling

Comprehensive guide to Finxtract API errors and how to handle them.

Error Response Format

All errors follow this structure:

Authentication Errors (401)

Invalid API Key

Solution: Verify your API key is correct and hasn’t been revoked.

Validation Errors (400)

Company Names Mismatch

Solution: Ensure you submit the same number of company names as files.

Invalid Content Type

Solution: Set Content-Type header to multipart/form-data for file uploads.

No Files Provided

Solution: Include at least one file in your request.

Too Many Files

Solution: Upload max 20 files per request. Submit additional batches separately.

Payload Too Large

Solution: Reduce total file size or split into multiple requests.

Billing Errors (402)

Monthly Limit Exceeded

Solution: Upgrade your plan or wait until next billing cycle.

Server Errors (5xx)

Internal Server Error

Solution: Retry after 5 minutes. Contact support with request_id if persists.

Error Handling Best Practices

Implement Retry Logic

Log Error Details

User-Friendly Messages

Contact Support

For persistent errors: