Skip to content

feat(rsi): read the account's store credit - #176

Merged
mortik merged 1 commit into
mainfrom
feat/sync-store-credit
Nov 11, 2026
Merged

mortik merged 1 commit into
mainfrom
feat/sync-store-credit

Conversation

@mortik

@mortik mortik commented Nov 11, 2026

Copy link
Copy Markdown
Member

What changed

  • New syncStoreCredit action, listed in the health check's actions. It posts RSI's own credit GraphQL query to https://robertsspaceindustries.com/graphql, the query the account side panel uses for its store credit balance.
  • RSI keeps the balance in USD cents; the action answers { code: 200, payload: { credit: 849.56 } }, and a 502 when the answer has no USD amount, a 401 without an RSI session.
  • Tests for the answer, an unreadable answer and a missing session.

FleetYards asks for it during a hangar sync when the user turns on "Sync store credit" (fleetyards/fleetyards#6285), and only when this action is listed, so older versions keep syncing as before.

🤖

A syncStoreCredit action answers with the store credit RSI's account
panel shows, in USD, from the same GraphQL query, so FleetYards can count
it in hangar plans.
@mortik mortik self-assigned this Nov 11, 2026
@mortik
mortik added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit 3ab0e64 Nov 11, 2026
4 checks passed
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.

1 participant