Skip to content

fix(SDK): temporarily remove credits consumed - #139

Merged
bmaydan merged 1 commit into
mainfrom
ben/remove-credits-consumed
Aug 27, 2026
Merged

fix(SDK): temporarily remove credits consumed#139
bmaydan merged 1 commit into
mainfrom
ben/remove-credits-consumed

Conversation

@bmaydan

@bmaydan bmaydan commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Why we are doing this

Credits consumed only showed amortized credits consumed for reservations, not for every resource type, which would confuse the user.

This column will be brought back once the API endpoint correctly surfaces all credits consumed, not just reservation credits.

Example output

from lightning_sdk import Organization

org = Organization("my-org")
summary = org.get_monthly_summary(pivot=..., pivot_direction="BEFORE")
print(summary) ->
[
    {
      "periodStart": "2025-01-01T00:00:00Z",
      "periodEnd": "2025-02-01T00:00:00Z",
      "totalCreditsRemaining": (...),
      "totalCreditsPurchased": (...)
    },
    {
      "periodStart": "2025-02-01T00:00:00Z",
      "periodEnd": "2025-03-01T00:00:00Z",
      "totalCreditsRemaining": (...),
      "totalCreditsPurchased": (...)
    },
    ...
],

…aces all credits consumed, not just reservations
@bmaydan bmaydan added the bug Something isn't working label Aug 26, 2026
@bmaydan bmaydan changed the title fix(BE): temporarily remove credits consumed fix(SDK): temporarily remove credits consumed Aug 26, 2026
@bmaydan
bmaydan enabled auto-merge (squash) August 26, 2026 23:06
@bmaydan
bmaydan merged commit 09245c3 into main Aug 27, 2026
25 checks passed
@bmaydan
bmaydan deleted the ben/remove-credits-consumed branch August 27, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants