stripe-credit-audit-trail
Installation
SKILL.md
Quick Reference
| Field | Purpose |
|---|---|
userId |
Who the transaction belongs to |
delta (signed int) |
+granted / -revoked |
balanceAfter (int snapshot) |
Reconciliation baseline |
reason (enum) |
Categorical — one of a fixed set |
referenceType + referenceId |
Pointer to the originating entity |
idempotencyKey (UNIQUE partial index) |
Dedup + G1 checkpoint |
metadata (jsonb) |
Free-form context (previousStatus, resolvedVia, etc.) |
Pick one domain prefix that matches your billable entity (order, job, item, etc.) and use it consistently. The table below uses order as the neutral example: