LayerHopdocs

Error codes

QUOTE_EXPIRED

Quote expired: The quote is past its expiresAt and can no longer be built.

Open in ClaudeOpen in ChatGPT
HTTP status Retry
410 after a new quote

Where it comes from: POST /v1/orders.

Causes#

  • More time passed between GET /v1/quote and POST /v1/orders than the quote's lifetime (typically 30–60 s, set by the provider).

How to fix#

  • Request a new quote. Build the transaction as soon as the user confirms, and refresh quotes on a timer while the user decides.
  • Compare expiresAt (unix seconds) with the clock before building.

Example response#

JSON
{
  "error": {
    "code": "QUOTE_EXPIRED",
    "message": "Quote expired, request a new one",
    "requestId": "0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21",
    "docsUrl": "https://docs.layerhop.com/errors/QUOTE_EXPIRED"
  }
}

See Error handling & retries for a retry strategy, and the error catalog for every code.