FurlPay Docs
Open App
  • Platform Overviewupdated
  • API Referencenew
  • 5-Minute Sandbox Quickstartupdated
  • Sandbox & Test Assetsnew
  • Create a Developer Account
  • Identity & KYC Verification
  • Passkeys & Biometrics
  • Transaction Statuses & Retries
  • Frequently Asked Questions
  • Core Primitives & Money Modelnew
  • Merchant Payments & Invoices
  • Contractor Payroll & Batch Payouts
  • EIP-3009 Gasless & Recurring
  • Circle CCTP Cross-Chain
  • LI.FI Cross-Chain Swaps
  • Solana Actions & Blinks
  • Wallet Infrastructure & Handles
  • Market Data Streams
  • Gasless Transfers Availability
  • Deposits & Withdrawals Support
  • Agentic Finance Overviewupdated
  • x402 & MPP Settlement Gatewayupdated
  • Agent Identity, Trust & TAP Mandatesupdated
  • Autonomous Finance & Policies
  • Claude Connector (MCP + OAuth 2.1)
  • AI Assistants & HITL Approvals
  • x402 Monetization Basics
  • Settlement Workspace & Maker-Checker
  • Transaction Truth & Double-Entry Ledgerupdated
  • Par 1:1 Routing Simulator Overview
  • Par Quote Engine & Swap Lifecycle
  • Par Networks & Settlement Assets
  • Par Operator Console
  • Par API Reference
  • Par Webhooks
  • Par AML & Travel Rule
  • Screening, Monitoring & Travel Rule
  • Circle Integration
  • Stripe Crypto Integration
  • Persona KYC Integration
  • API Conventions & Idempotencyupdated
  • Authentication, Keys & Versioning
  • Webhooks (PUSH HMAC-SHA512 & PULL)
  • Errors & Exception Playbooks
  • Rate Limits & Retry-After
  • Official SDKs (TS, Python, Go, Rust)updated
  • FurlPay CLI (@furlpay/cli) & MCP
  • Monorepo & Package Reference
  • SDK & API Integration Support
  • Cryptographic Architecture & KMS
  • Security Posture & Isolation
  • Signing Boundaries & WebAuthn
  • Production Configuration & Workers
  • Colocation Directory
  • Security & Compliance Frameworks
  • Regulatory & Launch Posture
  • Privacy, Redaction & GDPR

CLI full reference

  • CLI overview & install
  • Command index
  • MCP tool reference
  • Honesty matrix

Resources

  • Interactive Developer Workbench
  • Operational Status (/status)
  • Release Changelog
  • OpenAPI 3.1 Spec
  • Postman Collection
  • llms.txt (AI Index)
  • llms-full.txt (Full Docs)
  • Network & Assets
  • Proof of Reserves
  • Terms of Service
  • Privacy & DPA
  • Regulatory Disclosures
  • Security Disclosures
  • Contact Support
  • GitHub
Docs/05. API, SDK and CLI Reference/Errors & Exception Playbooks

Core Concepts & API Contract

Errors & Exception Playbooks

Predictable JSON error envelopes with support-ready correlation IDs (traceId), field-level diagnostics, and deterministic recovery rules for blockchain and settlement edge cases.

Response envelopes & correlation headers

Versioned REST routes return a structured envelope echoing X-Request-Id and X-Trace-Id on HTTP headers alongside both requestId and traceId in the body:

jsonStandard API Error Envelope
{
  "error": {
    "type": "conflict_error",
    "code": "ERR_IDEMPOTENCY_CONFLICT",
    "message": "Idempotency-Key was already used with a different request payload.",
    "param": "Idempotency-Key",
    "details": [{ "field": "quoteId", "reason": "mismatched_payload_fingerprint" }],
    "docUrl": "https://furlpay.com/docs/architecture/errors#ERR_IDEMPOTENCY_CONFLICT"
  },
  "requestId": "req_01936c7a-...",
  "traceId": "req_01936c7a-..."
}

HTTP status conventions

  • 400 — validation failed (Zod / malformed decimal string / unsupported version).
  • 401 — missing/invalid API key or session; 402 — payment required or challenge quote issued.
  • 403 — forbidden (insufficient scope, policy mandate limit exceeded, wrong environment).
  • 409 — state conflict (consumed quote, entity pending KYB, maker-checker hold); 422 — idempotency key payload mismatch.
  • 423 — account locked or cooling period; 429 — rate limited (honor Retry-After).
  • 451 — compliance/sanctions jurisdiction restriction.
  • 502 — upstream RPC/provider failure; 503 — rail paused or unconfigured (live outage details appear on /status).

Standard error codes

ParameterTypeDescription
ERR_IDEMPOTENCY_CONFLICTrequired422Idempotency-Key reused with a different request payload. Generate a fresh UUID for distinct mutations.
ERR_POLICY_LIMIT_EXCEEDEDrequired403Requested amount exceeds delegated mandate cap or daily velocity ceiling.
ERR_QUOTE_EXPIREDrequired409 / 402Quote TTL elapsed before order creation. Request a fresh quote.
ERR_ENTITY_NOT_APPROVEDrequired409Counterparty entity has not completed KYB/sanctions clearance.
ERR_COMPLIANCE_RESTRICTED_COUNTRYrequired451Sanctions screening blocked the onboarding or payout jurisdiction.
amount_over_limitrequired403Amount exceeds the server-side per-transaction rail cap.
replay_rejectedrequired409 / 402EIP-3009 nonce or quote already consumed. Never re-sign a spent nonce.
invalid_signaturerequired400 / 402ECDSA / ERC-1271 / Ed25519 signature recovery failed verification.
rail_pausedrequired503Rail administratively paused; verify recovery on /status or /api/rails.
controls_unavailablerequired503Fail-closed guard refused value movement while operational controls were unreachable.
settlement_disarmedrequired503Production settlement prerequisites (signer, vault, RPC) are disarmed.
self_approval_forbiddenrequired403Maker-checker controls prohibit creators from approving their own settlement.
reconciliation_requiredrequired409Broadcast outcome requires on-chain verification before retry or recovery.

Payment Exceptions & Reconciliation Playbook

ParameterTypeDescription
UnderpaymentrequiredOn-chain < QuotedOrder pauses in AWAITING_DEPOSIT / UNDERPAID rather than confirming settlement. Integrator can either accept partial tolerance per merchant config or trigger refund orchestration back to sender.
OverpaymentrequiredOn-chain > QuotedExpected settlement amount posts at the locked order face value; excess funds are held in unallocated suspense for operator sweep or automated excess-return ticket.
Expired Quote Paid LaterequiredPast expiresAtLate blockchain transfers arriving after quote expiry fail automatic conversion and route to operator repricing or return-to-origin queue (never silently settled at stale FX rates).
Chain ReorganizationrequiredPre-finality reorgOrders confirm strictly after corridor confirmation thresholds. Any shallow reorg moves transaction state to RECONCILIATION_REQUIRED rather than finalizing prematurely.

Safe Retry Rule

Retry 429 after Retry-After and 502 with exponential backoff. Never blind-retry 422 ERR_IDEMPOTENCY_CONFLICT, 402 replays, or 202 pending transactions—inspect the settlement status by ID first.
Did this page help?
Edit this page on GitHub

Previous

Webhooks (PUSH HMAC-SHA512 & PULL)

Next

Rate Limits & Retry-After