Saltar al contenido principal
- Gestión de errores

Errores de la API

Cada fallo de la API devuelve un sobre de error en JSON con un código estable, estado HTTP, mensaje y request id para el soporte.

Envoltorio de errores

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

Incluye el request id al ponerte en contacto con el soporte.

Códigos de error habituales

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.

Documentación de la API

¿Te ha resultado útil?

¿Sigues con dudas? Escribe a admin@alvaapps.com.

Última actualización 2026-06-05