Pular para o conteúdo principal
- Tratamento de erros

Erros da API

Toda falha da API retorna um envelope de erro JSON com um código estável, status HTTP, mensagem e request id para o suporte.

Envelope de erro

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

Inclua o request id ao entrar em contato com o suporte.

Códigos de erro comuns

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.
409delivery_not_yet_releasedThe product has a download delivery delay configured and the buyer's files have not unlocked yet. error.details.release_at is the ISO 8601 instant they unlock; the merchant can release the order early with the grant-downloads endpoint.
422storage_quota_exceededThe upload or import would exceed storage quota.
422key_limit_reachedThe shop already holds the maximum of 25 active API keys; revoke one first.
422withdrawal_consent_requiredThe shop has EU withdrawal-right consent enabled and the order has no consent record yet; download URLs are issued once the customer consents.
429rate_limitedThe API key or order resend limit was reached.
500internal_errorUnexpected server error.

Documentação da API

Isto foi útil?

Ainda com dúvidas? Envie um e-mail para admin@alvaapps.com.

Última atualização 2026-06-05