Skip to main content

Error Response Format

All Upwell API errors follow a consistent format to help you quickly identify and resolve issues:

HTTP Status Codes

Common Error Codes

Authentication Errors

HTTP Status: 401 Description: The provided API key is invalid or expired Solution: Verify your API key and regenerate if necessary
HTTP Status: 401 Description: Authorization header is missing from the request Solution: Include your API key in the Authorization header

Validation Errors

HTTP Status: 400 Description: Request contains invalid or missing required parameters Solution: Check the details field for specific validation issues
HTTP Status: 400 Description: Date parameter is not in the expected format Solution: Use ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ)

Resource Errors

HTTP Status: 404 Description: The requested resource does not exist Solution: Verify the resource ID and ensure it exists
HTTP Status: 409 Description: Attempting to create a resource that already exists Solution: Use PUT to update existing resource or check for duplicates

Business Logic Errors

HTTP Status: 422 Description: Attempting to modify an invoice that has already been approved Solution: Only draft invoices can be modified
HTTP Status: 422 Description: Customer’s credit limit would be exceeded Solution: Increase credit limit or collect payment before proceeding

Rate Limiting Errors

HTTP Status: 429 Description: Too many requests in a short time period Solution: Implement exponential backoff and respect rate limits

Rate Limiting

The Upwell API implements rate limiting to ensure fair usage and system stability:
  • Standard Rate Limit: 100 requests per hour per API key
  • Burst Limit: 10 requests per minute
  • Rate Limit Headers: Check response headers for current limits

Error Handling Best Practices

1. Implement Retry Logic

2. Validate Input Data

3. Handle Specific Error Codes

Getting Help

If you encounter persistent errors or need assistance:
  1. Check this documentation for common solutions
  2. Review API logs for detailed error information
  3. Contact support at support@upwell.com
  4. Include error details and request IDs when reporting issues
For urgent issues, please include:
  • API endpoint being called
  • Complete error response
  • Request timestamp
  • Your API key (last 4 characters only)