Error Handling

Handle errors and HTTP status codes

Error Response Format

All errors return a JSON object with a single error key containing a human-readable message:

{
  "error": "Product not found"
}

Status Codes

The API uses standard HTTP status codes:

Code Meaning
200Success (read/update)
201Created
204No content (successful delete)
400Bad request (malformed JSON)
401Authentication missing or invalid
402Preview-tier cap exceeded (see Tenant Tier)
403Permission denied
404Resource not found
409Conflict (idempotency key reuse)
413Payload too large (>10 MB)
422Validation error
429Rate limited
500Server error

Handling Errors

Check the status code first, then read the error message for details:

# Use -w to see the status code
curl -w "\nHTTP %{http_code}\n" \
  https://yourshop.zeroshop.io/admin/api/products/99999 \
  -H "Authorization: Bearer zspat_..."

We value your privacy

We use cookies for essential site functionality and, with your consent, analytics to understand how our platform is used. No personal data is shared with third parties. See our Privacy Policy for details.