{"protocol_version":"phantom-pay/1","note":"catalog of every error.code served by this API; branch on `type`, never on `message`","errors":[{"code":"quote_expired","type":"state","http_status":410,"retryable":false,"protocol":true,"description":"La cotización expiró; cree una quote nueva.","docs":"https://pay.idphantom.com/docs/errors#quote_expired"},{"code":"unauthorized","type":"authentication","http_status":401,"retryable":false,"protocol":true,"description":"API key ausente, inválida o revocada (o firma del pagador requerida).","docs":"https://pay.idphantom.com/docs/errors#unauthorized"},{"code":"forbidden","type":"authorization","http_status":403,"retryable":false,"protocol":true,"description":"Autenticado pero sin permiso para la operación o el objeto.","docs":"https://pay.idphantom.com/docs/errors#forbidden"},{"code":"signature_invalid","type":"validation","http_status":400,"retryable":false,"protocol":true,"description":"La firma EIP-712 presentada es malformada o no verificable.","docs":"https://pay.idphantom.com/docs/errors#signature_invalid"},{"code":"nonce_reused","type":"state","http_status":409,"retryable":true,"protocol":true,"description":"Nonce de autorización ya usado (replay); use un nonce nuevo.","docs":"https://pay.idphantom.com/docs/errors#nonce_reused"},{"code":"chain_mismatch","type":"validation","http_status":400,"retryable":false,"protocol":true,"description":"chain_id distinto al soportado por este despliegue.","docs":"https://pay.idphantom.com/docs/errors#chain_mismatch"},{"code":"token_not_allowed","type":"validation","http_status":400,"retryable":false,"protocol":true,"description":"El asset no está soportado por esta red.","docs":"https://pay.idphantom.com/docs/errors#token_not_allowed"},{"code":"idempotency_conflict","type":"state","http_status":409,"retryable":true,"protocol":true,"description":"idempotency_key reutilizada con parámetros distintos a la operación original.","docs":"https://pay.idphantom.com/docs/errors#idempotency_conflict"},{"code":"fee_exceeds_cap","type":"payment","http_status":400,"retryable":false,"protocol":true,"description":"La comisión calculada supera el tope configurado; vuelva a cotizar.","docs":"https://pay.idphantom.com/docs/errors#fee_exceeds_cap"},{"code":"fee_below_gas","type":"payment","http_status":402,"retryable":false,"protocol":true,"description":"La comisión no cubre el gas estimado del settle; el monto es demasiado pequeño.","docs":"https://pay.idphantom.com/docs/errors#fee_below_gas"},{"code":"operator_unavailable","type":"availability","http_status":503,"retryable":true,"protocol":true,"description":"Reservas de gas del operador bajo el piso; reintente más tarde.","docs":"https://pay.idphantom.com/docs/errors#operator_unavailable"},{"code":"registration_unavailable","type":"availability","http_status":503,"retryable":false,"protocol":true,"description":"El alta self-serve no está habilitada en este despliegue.","docs":"https://pay.idphantom.com/docs/errors#registration_unavailable"},{"code":"insufficient_funds","type":"payment","http_status":402,"retryable":false,"protocol":true,"description":"El pagador no tiene saldo suficiente del asset.","docs":"https://pay.idphantom.com/docs/errors#insufficient_funds"},{"code":"insufficient_allocation","type":"payment","http_status":402,"retryable":false,"protocol":true,"description":"La Agent Wallet no tiene asignación remanente para monto+fee.","docs":"https://pay.idphantom.com/docs/errors#insufficient_allocation"},{"code":"daily_cap","type":"payment","http_status":403,"retryable":false,"protocol":true,"description":"Tope diario de gasto (Agent Wallet o política) alcanzado; reintente mañana.","docs":"https://pay.idphantom.com/docs/errors#daily_cap"},{"code":"invalid_transition","type":"state","http_status":409,"retryable":false,"protocol":true,"description":"La transición solicitada no es válida desde el estado actual del intent.","docs":"https://pay.idphantom.com/docs/errors#invalid_transition"},{"code":"policy_violation","type":"authorization","http_status":403,"retryable":false,"protocol":true,"description":"El pago viola la política de la cuenta (límites o allowlist).","docs":"https://pay.idphantom.com/docs/errors#policy_violation"},{"code":"payer_execution_revert","type":"payment","http_status":409,"retryable":false,"protocol":true,"description":"El pago revertiría on-chain (p. ej. allowance faltante); el pagador corrige y reintenta.","docs":"https://pay.idphantom.com/docs/errors#payer_execution_revert"},{"code":"identity_unavailable","type":"availability","http_status":503,"retryable":true,"protocol":true,"description":"La atestación de identidad no está configurada en este despliegue.","docs":"https://pay.idphantom.com/docs/errors#identity_unavailable"},{"code":"identity_conflict","type":"state","http_status":409,"retryable":false,"protocol":true,"description":"agent_id ya ligado a otra clave, o receipt ya atribuido con otro proof.","docs":"https://pay.idphantom.com/docs/errors#identity_conflict"},{"code":"rate_limited","type":"rate_limit","http_status":429,"retryable":true,"protocol":true,"description":"Límite de tasa excedido; reintente con backoff exponencial.","docs":"https://pay.idphantom.com/docs/errors#rate_limited"},{"code":"validation_error","type":"validation","http_status":400,"retryable":false,"protocol":true,"description":"Parámetro ausente o con formato inválido (ver message y el esquema OpenAPI).","docs":"https://pay.idphantom.com/docs/errors#validation_error"},{"code":"not_found","type":"not_found","http_status":404,"retryable":false,"protocol":true,"description":"El recurso no existe o no es visible para esta cuenta.","docs":"https://pay.idphantom.com/docs/errors#not_found"},{"code":"take_cap_exceeded","type":"payment","http_status":400,"retryable":false,"protocol":true,"description":"takeRateBps o take+fee supera el tope de 250 bps.","docs":"https://pay.idphantom.com/docs/errors#take_cap_exceeded"},{"code":"internal","type":"availability","http_status":500,"retryable":true,"protocol":true,"description":"Error interno; reintente con la misma idempotency_key. Si persiste, soporte con correlation_id.","docs":"https://pay.idphantom.com/docs/errors#internal"},{"code":"spend_limit","type":"authorization","http_status":403,"retryable":false,"protocol":false,"description":"El pago excede el tope por pago de la política de la cuenta.","docs":"https://pay.idphantom.com/docs/errors#spend_limit"},{"code":"not_allowlisted","type":"authorization","http_status":403,"retryable":false,"protocol":false,"description":"El par pagador/receptor no está en la allowlist de la política.","docs":"https://pay.idphantom.com/docs/errors#not_allowlisted"},{"code":"monthly_cap","type":"authorization","http_status":403,"retryable":false,"protocol":false,"description":"El pago excede el tope mensual de la política de la cuenta.","docs":"https://pay.idphantom.com/docs/errors#monthly_cap"},{"code":"x402_policy_violation","type":"authorization","http_status":403,"retryable":false,"protocol":false,"description":"La URL solicitada vía x402 viola la política del payer (allowlist / hosts privados).","docs":"https://pay.idphantom.com/docs/errors#x402_policy_violation"},{"code":"x402_malformed_challenge","type":"validation","http_status":502,"retryable":false,"protocol":false,"description":"El recurso x402 devolvió un reto malformado.","docs":"https://pay.idphantom.com/docs/errors#x402_malformed_challenge"},{"code":"x402_spoofed_resource","type":"state","http_status":409,"retryable":false,"protocol":false,"description":"El reto x402 no corresponde a la URL solicitada (posible suplantación).","docs":"https://pay.idphantom.com/docs/errors#x402_spoofed_resource"},{"code":"x402_no_challenge","type":"validation","http_status":400,"retryable":false,"protocol":false,"description":"El recurso no respondió 402 con un payment challenge.","docs":"https://pay.idphantom.com/docs/errors#x402_no_challenge"},{"code":"x402_resource_error","type":"availability","http_status":502,"retryable":true,"protocol":false,"description":"El recurso x402 remoto falló; reintente más tarde.","docs":"https://pay.idphantom.com/docs/errors#x402_resource_error"},{"code":"x402_payment_in_progress","type":"state","http_status":409,"retryable":true,"protocol":false,"description":"Ya hay un pago x402 con esa idempotency_key en curso; reintente enseguida.","docs":"https://pay.idphantom.com/docs/errors#x402_payment_in_progress"},{"code":"mpp_not_configured","type":"availability","http_status":501,"retryable":false,"protocol":false,"description":"La verificación de credenciales MPP es un stub: sin credenciales del programa en este despliegue.","docs":"https://pay.idphantom.com/docs/errors#mpp_not_configured"},{"code":"cors_forbidden","type":"authorization","http_status":403,"retryable":false,"protocol":false,"description":"Origen no permitido para los endpoints demo con CORS.","docs":"https://pay.idphantom.com/docs/errors#cors_forbidden"}]}