Photos
Why you will not find a refund line in your Usage history
The list is built from balance movement, then grouped. Every creation of a day is folded into one line, a failed one is counted on that line as not charged, and its refund never gets a row of its own.
What the list is actually a list of
Usage history is not a log of everything that happened to your account. It is built from the records that moved your balance: the query behind the screen restricts itself to rows whose amount is not zero, and the app then groups creations into one line per day. A record with no net effect on the balance never reaches the list, however real it is in the ledger.
That explains both of the questions sellers bring to this screen. Where is my refund, and why is there only one line for a day's work, have related answers: a refund is shown as a "failed, not charged" count rather than a row, and creations are added up per day.
One sentence about timing, inherited rather than re-derived here: the movement behind each line is fixed at the moment a photo is set aside for a run, and when exactly a photo is used is the subject of a separate page. Everything below is about what reaches the screen afterwards.
Why a written row can fail to appear
Each of these is a property of the read surface, not of your account. They hold for every account on the same screen.
- The filter is a single comparison.
- The history query selects rows on your balance where the amount is not zero. Nothing else is excluded by the server, and nothing that satisfies it is hidden by the server. A short list means few movements or a grouped day, not a partial record.
- The settling row of a generation carries zero.
- A photo is set aside, and later the run settles against what was set aside. The settling row is written with a zero amount, so it is removed by the filter before the list is drawn. The code's own comment records the visible consequence: no double charge is shown to the user.
- A refund absorbed by a debt has no net effect.
- When the whole of a refund goes to closing an open debt, the balance ends where it started. The refund happened; the row it produced does not qualify for the list.
- A refund of a photo from an ended weekly allotment has no net effect either.
- If the photo that had been set aside came from a weekly allotment that has since ended, returning it does not raise a usable balance, so that row is filtered out on the same rule.
- The normal failed-run refund is folded into the day's line.
- A refund that returns a photo to a usable balance moves the balance. The app then counts that run as "failed, not charged" on the day's line and draws no refund row.
What is written, and what reaches the screen
Read the middle column as the ledger and the right column as the screen. The distance between them is the whole subject of this page.
| Event | Written in the ledger | Shown in the history |
|---|---|---|
| A photo set aside for a generation | A row that moves the balance | Counted on that day's line |
| That generation settling | A row whose amount is zero | No |
| Refund after a failed run, returning a photo to a usable balance | A row that moves the balance | As "failed, not charged" on that day's line |
| Refund absorbed entirely by an open debt | A row with no net effect | No |
| Weekly photos refilled, or unused weekly photos expired | A row that moves the balance | One line each |
| A photo pack, a gift or a support adjustment | A row that moves the balance | One line each |
| Refund of a photo from a weekly allotment that has ended | A row with no net effect | No |
Reading a history that looks short
Each row below is a situation sellers actually arrive with, and the reading that matches how the screen is built.
| Situation | Choose | Why |
|---|---|---|
| A run failed, the photo is back, and there is no refund line. | Trust the balance and stop looking for the row. | A refund has no row of its own. Look for "failed, not charged" on that day's line; if the refund had no net effect, it will not be counted there either. |
| There is one line for a whole day of generations you know completed. | Read the number on that line as the day's count, not as one piece of work. | Creations are added up per day, and the settling row of each run carries a zero amount and never reaches the screen. |
| You want to know when a generation finished. | Use the screen that follows a run in progress, not the ledger. | Completion writes nothing that moves the balance, so the history has no record of it to show. |
| The balance looks higher than what the app will let you use. | Take the smaller figure as the real one and re-check later. | The balance is read as stored and the read performs no expiry check; the correcting work happens on the server, on a schedule this page cannot promise. |
| Photos arrived and the balance rose by less than what was granted. | Read the balance as the answer and expect no line explaining the difference. | The part of an incoming grant that goes to an open debt does not become usable, and no separate row in the history accounts for it. |
| You want to know whether reporting a poor result returns the photo. | Treat that as a separate question this page does not answer. | The history records balance movement. What the report flow does is documented on its own page. |
Where this costs you during a catalogue run
The failure mode is not lost photos. It is a wrong conclusion drawn from a correct screen.
Counting rows to reconcile a batch of pieces.
Count what each day's line says, because that is what the list contains. A missing refund line is the designed result, not evidence that the refund did not happen.
Concluding you were charged twice, or not at all, from the number of lines.
One line per day is the designed shape: the number on it is the count, and each run's settling row is written with a zero amount and filtered out. The count of lines is not a count of charges in the ledger.
Starting a long batch against the last balance you saw.
The displayed number can briefly include photos that can no longer be used. Keep a margin instead of planning a run that depends on the balance being exact at that instant.
Using the ledger as a timeline for a shoot.
The list has no completion time, only the day a photo was set aside. For anything about the wait, use the screen that owns it.
Escalating a support question that the screen has already answered correctly.
Before reporting a missing entry, check whether the entry would have moved the balance at all. If it would not have, the list is complete as defined.
What the history screen returns
Two things come back, and they answer different questions.
The list: rows on your balance whose amount is not zero, grouped into weekly sections by the app, with creations folded into one line per day. It is a record of balance movement. It does not carry completion times, quality outcomes, or policy.
The balance: a single stored number, read from the balance record as it stands at that moment, with no expiry check performed by the read itself. If no balance record exists, the reply is an empty balance rather than an error — a silent fallback rather than a failure.
Neither answer carries an amount you can compare with a price, a package or a plan. That is outside this surface, and outside this page.
What this page does not cover
Each of these is a real question. None of them is answerable from the surface described above.
- When exactly a photo is used during a run. That timing is owned by a separate page and is inherited here in a single sentence.
- Whether reporting a poor result returns the photo. That is a product flow with its own page.
- How a debt forms and what it blocks. Only its visible consequence — a smaller increase, with no line explaining it — is stated here.
- The order in which photos are chosen, split or returned inside the ledger. That algorithm lives in a different part of the code and is not documented by the source behind this page.
- Whether the periodic expiry job is enabled in a production deployment, how often it runs, or how many copies of the service are running. These depend on deployment settings that cannot be read from the code.
- When the app's screens re-read your balance or debt state. The client side is not authoritatively described by this source.
- Any photo amount, price, package or plan name, and any refund policy, entitlement or legal statement.
Where these statements come from
The behaviour on this page was read from the platform source rather than from documentation, as of 2026-11-10.
The balance read and the history filter: apps/api/src/wallet/wallet.service.ts. The balance is returned as the stored number, or zero when no wallet record exists, and the history query restricts rows to those whose amount is not zero. The comment beside that query states the visible consequence directly — a double charge is not shown to the user, because the settling rows carry a zero amount. The grouping into weekly sections and daily lines is in apps/jewelry-mobile/src/features/purchases/usage-history.ts.
The zero net effect of a refund absorbed by a debt or drawn from an ended allotment: the ledger package in the same source tree, which also records that the portion of an incoming grant going to a debt does not become usable.
The relationship between the burn at the moment a photo is set aside and the periodic sweep: the expiry sweeper in apps/api/src/wallet, whose comment names the first as the authoritative check and the second as the job that exists for the honesty of the displayed balance.
Frequently asked questions
Why is there only one line for a day of generations?
Because the app adds up each day's creations into one line with a count and that day's thumbnails. Underneath, each run moves the balance once; the row that settles it is written with a zero amount and filtered out. Both are written — one reaches the list, and the list is then grouped.
A refund is missing from my history. Is the ledger wrong?
No. An ordinary refund has no row of its own: it appears as "failed, not charged" on that day's line. A refund can also be real and have no net effect on the balance, when the whole amount closes an open debt or when the photo came from a weekly allotment that has ended; that one is not shown at all.
My balance shows photos the app will not let me use. When does it correct itself?
The balance is read as stored, and that read performs no expiry check of its own. The correcting work happens on the server — at the point where a photo is next set aside, and, where it is enabled, through a periodic job. No moment is promised here, because whether that job runs in a given deployment is an environment setting that cannot be read from the code.
Can the history tell me when my generation finished?
No. Finishing does not move the balance, so nothing about it is written into a list built from balance movement. The list only shows the day a photo was set aside for a run.