Skip to main content
- Error handling

API errors

Every API failure returns a JSON error envelope with a stable code, HTTP status, message, and request id for support.

Error envelope

{
  "error": {
    "code": "asset_not_found",
    "message": "No asset with id 42 for this shop",
    "status": 404,
    "request_id": "req_..."
  }
}

Include the request id when contacting support.

Common error codes

HTTPCodeMeaning
400invalid_requestMalformed JSON or missing field.
400idempotency_key_requiredWrite request missing Idempotency-Key.
401unauthorizedMissing, invalid, unknown, or revoked token.
402plan_requiredAPI access has not been activated for the shop.
404asset_not_found, mapping_not_found, order_not_found, category_not_found, job_not_foundThe resource is missing or belongs to another shop.
409idempotency_conflictThe same key was reused with a different request.
409stamping_in_progressResend is blocked while PDF stamping is pending.
422storage_quota_exceededThe upload or import would exceed storage quota.
429rate_limitedThe API key or order resend limit was reached.
500internal_errorUnexpected server error.

API docs

Was this helpful?

Still stuck? Email admin@alvaapps.com.

Last updated 2026-06-05