Skip to main content

HTTP Status Codes

TribeMade API uses standard HTTP status codes to indicate success or failure of requests.

Error Response Format

All errors follow a consistent JSON format:
Some errors include additional context:

Common Errors by Category

Authentication Errors (401)

Error:
Cause: The X-API-Key header was not included in the request.Fix:
Error:
Causes:
  • API key is incorrect
  • API key has been regenerated
  • API key format is invalid
Fix: Generate a new API key from your dashboard.

Validation Errors (400)

Error:
Cause: Required fields are missing from the request body.Fix:
Error:
Cause: Field value doesn’t meet length requirements.Fix: Adjust the field value to meet the constraints:
  • name: 3-30 characters
  • description: 0-500 characters
  • short_description: 0-50 characters
  • internal_note: 0-500 characters
Error:
Causes:
  • Negative or zero price
  • Negative stock
  • Negative shipping cost
Fix:
Error:
Cause: Array exceeds maximum allowed items.Limits:
  • images: Maximum 10
  • variations: Maximum 20
  • size: Maximum 20
  • colors: Maximum 20
  • categories: Maximum 20
  • custom_questions: Maximum 5
Fix: Reduce array size to within limits.
Error:
Cause: Specified categories don’t exist in your store.Fix:
  1. Create categories in your dashboard first
  2. Use exact category names (case-sensitive)
  3. Only use categories that exist in your store
Error:
Cause: Image file size exceeds 5MB limit.Fix:
  • Compress images before uploading
  • Use image URLs instead of base64
  • Each image must be ≤ 5MB
Error:
Cause: Custom question type is invalid.Fix:

Resource Errors (404, 403)

Error:
Causes:
  • Product ID doesn’t exist
  • Product belongs to different store
  • Product was already deleted
Fix: Verify the product ID and ensure it belongs to your store.
Error:
Cause: Order ID doesn’t exist.Fix: Verify the order ID is correct.
Error:
Cause: Order exists but belongs to a different store.Fix: Ensure you’re using the correct API key for the store that owns this order.

Business Logic Errors (400)

Error:
Cause: Product has active orders (processing or dispatched status).Why: Deleting products with active orders would break order fulfillment.Fix:
  • Wait for orders to complete (delivered)
  • Or cancel the orders first
  • You can delete products with only completed/cancelled orders
Error:
Cause: Trying to update status of a completed order.Why: Orders in final states (delivered/cancelled) cannot be changed.Fix: Order status is final once delivered or cancelled.
Error:
Cause: Invalid status value provided.Fix: Use only these statuses:
  • processing
  • dispatched
  • cancelled
  • delivered
Error:
Cause: Edit product request has no fields to update.Fix: Include at least one field to update:

Rate Limit Errors (429)

Error:
Cause: You’ve exceeded the rate limit for this endpoint.Fix: Wait for retry_after seconds before making another request.Prevention: See Rate Limits for best practices.

Error Handling Best Practices

1. Always Check Status Codes

2. Implement Retry Logic

3. Log Errors for Debugging

4. Provide User-Friendly Messages

Need Help?

If you encounter errors not covered here or need assistance:
  1. Check the error message for specific guidance
  2. Verify your API key is correct and active
  3. Review the API Reference for parameter requirements
  4. Contact support through your TribeMade Dashboard
When contacting support, include:
  • Error message and status code
  • Endpoint you’re calling
  • Request parameters (without sensitive data)
  • Timestamp of the error