Skip to content

api for fetching credit balance#9417

Merged
pjain1 merged 1 commit into
mainfrom
fetch_credit_balance_api
May 11, 2026
Merged

api for fetching credit balance#9417
pjain1 merged 1 commit into
mainfrom
fetch_credit_balance_api

Conversation

@pjain1
Copy link
Copy Markdown
Member

@pjain1 pjain1 commented May 8, 2026

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@pjain1 pjain1 requested review from a team as code owners May 8, 2026 13:03
@pjain1 pjain1 requested a review from begelundmuller May 8, 2026 13:11
Copy link
Copy Markdown
Collaborator

@AdityaHegde AdityaHegde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth looking into using events for this if present. But for the 1st cut on-demand API call to orb should be fine.

@pjain1
Copy link
Copy Markdown
Member Author

pjain1 commented May 8, 2026

Worth looking into using events for this if present. But for the 1st cut on-demand API call to orb should be fine.

Webhooks are only triggered on a single fixed threshold and depletion.

@AdityaHegde This is just for when billing page is opened and we want to show the credit balance at that time. This should not be used for continuously fetching balance on every page load. For showing banners on approx balance we can look into this PR as per the requirement.

@AdityaHegde
Copy link
Copy Markdown
Collaborator

Ah got it. Then we will have to hit the query each time then.

Ya the plan is to use it in the billing page only. For banners that fetch on each page load, the billing issue will be sufficient.

@pjain1 pjain1 merged commit d5fa834 into main May 11, 2026
27 of 29 checks passed
@pjain1 pjain1 deleted the fetch_credit_balance_api branch May 11, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants