Skip to main content

Error Handling

All Debitura APIs return structured error responses with consistent formats.

Quick Reference

StatusMeaningRetryable
400Validation failedNo — fix request
401Invalid or missing API keyNo — check credentials
404Resource not foundNo — verify ID
422Business rule violationNo — see solutionUrl
500Server errorYes — exponential backoff

API-specific: 409 (Referral Partner conflict), 413/415 (Customer API file uploads).

Business Errors (422)

Returned when a request violates business rules. This format is consistent across all Debitura APIs (Customer, Collection Partner, and Referral Partner).

{
"businessErrors": [
{
"type": "NoPartnerAvailable",
"message": "No collection partner available for this jurisdiction",
"solutionUrl": "https://support.debitura.com/..."
}
]
}
FieldDescription
typeError code (see table below)
messageHuman-readable description
solutionUrlLink to resolution guidance (when available)

Error Types

TypeDescriptionResolutionsolutionUrl
NoPartnerAvailableNo collection partner covers the debtor's jurisdictionCheck supported countries or contact support
CreditorBlockedCreditor account is blockedContact support
MissingDebtCollectionContractDebt collection contract not signedComplete contract signing via URL
MissingPowerOfAttorneyPower of attorney not in placeComplete PoA process via URL

When solutionUrl is provided, it links directly to the portal page where the user can resolve the issue.

Validation Errors (400)

Returned for field-level validation failures. Keys are field names; values are arrays of error messages.

{
"amount": ["Amount must be greater than zero"],
"debtor.email": ["Invalid email format", "Email is required"]
}

Problem Details (401/404/500)

RFC 7807 Problem Details for authentication errors, not-found responses, and server errors.

{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
"title": "Not Found",
"status": 404,
"detail": "Case with ID 'abc123' not found",
"instance": "/v1/cases/abc123"
}

Response includes Content-Type: application/problem+json.

Retry Strategy

For 500 errors, use exponential backoff with max 3 retries. See Idempotency for safe retry patterns.