Skip to main content

Error Reference

This page documents every error response the valueverde Partner API can return, organized by HTTP status code.

Standard Error Response Format

All error responses follow a consistent JSON structure:

{
"error": "Human-readable error message",
"code": "MACHINE_READABLE_CODE"
}
FieldTypeDescription
errorstringA human-readable description of what went wrong
codestringA machine-readable error code for programmatic handling

Always check for the error field to detect failures. Use code for branching logic in your application.

HTTP Status Codes

400 Bad Request

The request is malformed or contains invalid data.

CodeError MessageEndpoint(s)Resolution
VALIDATION_ERROR"Missing required fields"/api-applicationsInclude all required fields in the request body
CONSENT_REQUIRED"All consent fields must be explicitly accepted (true)"/api-applicationsSet terms_and_statute_consent and data_sharing_consent to true
INVALID_IBAN"Invalid IBAN format"/api-applicationsProvide a valid IBAN
INVALID_COOPERATIVE"Cooperative not found"/api-applicationsProvide a valid cooperative_id
INVALID_SHARES"Minimum 1 shares required" / "Maximum N shares allowed"/api-applicationsRequest between 1 and the cooperative's maximum allowed shares

401 Unauthorized

Authentication credentials are missing or invalid.

CodeError MessageEndpoint(s)Resolution
MISSING_API_KEY"API key required"All endpointsInclude the X-API-Key header in your request
INVALID_API_KEY"Invalid API key"All endpointsVerify your API key is correct

403 Forbidden

The API key is recognized but not authorized for this operation.

CodeError MessageEndpoint(s)Resolution
CLIENT_INACTIVE"API client inactive"All endpointsContact partners@valueverde.de to reactivate your account
UNAUTHORIZED"Partner not authorized to manage applications"/api-applicationsYour partner account requires the can_manage_applications permission

404 Not Found

The requested resource does not exist.

CodeError MessageEndpoint(s)Resolution
NOT_FOUND"Cooperative not found"/api-projectsVerify the cooperative ID or name is correct
NOT_FOUND"Application not found"/api-applicationsVerify the application ID belongs to your partner account

405 Method Not Allowed

The HTTP method is not supported for this endpoint.

EndpointAllowed Methods
/api-cooperativesGET
/api-projectsGET
/api-applicationsGET, POST
/api-portfolioGET

500 Internal Server Error

An unexpected error occurred on the server.

CodeError MessageResolution
SERVER_ERROR"Internal server error"Retry after a short delay. If the error persists, contact partners@valueverde.de with the request details.

Error Handling Best Practices

  1. Always check the error field -- Do not rely solely on HTTP status codes. The code field provides the specific failure reason for programmatic handling.

  2. Implement retry logic for 5xx errors -- Server errors are typically transient. Use exponential backoff (e.g., 1s, 2s, 4s) with a maximum of 3 retries.

  3. Do not retry 4xx errors -- Client errors (400, 401, 403, 404) indicate a problem with your request. Fix the request before retrying.

  4. Log error responses -- Store the full error response (including code and error message) for debugging. This information is essential when contacting support.