Skip to content

Return Insufficient balance message on payment failure #93

Description

@brh28

In the case of a payment failure due to a lack of funds, we should display an insufficient balance message, rather than a generic error message.

This Honeycomb trace shows a sample Ibex response and Graphql response.

As shown in the trace, Ibex responds with a 400 and error message

{"error":"insufficient balance. Current Balance: 5.000000. Estimated Fee: 0.001109. invoice amount: 5.042164. account: 39c6e986-979b-40ab-9e7b-df18a9277a84"}

We want to detect these errors and map to a more user friendly message

Activity

  1. added
    question
    and removed
    question
    on Jun 9, 2025
  2. islandbitcoin commented on Jun 9, 2025

    @islandbitcoin
    Contributor

    UI is checking the balance before calling the API, so this would only apply when calling the API directly from an external source.

  3. added
    ibex / reliability
    and removed on Apr 17, 2026
  4. added a commit that references this issue on Aug 12, 2026
    7c6a96a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ibex / reliability

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions