Documentation Index
Fetch the complete documentation index at: https://ansdevcloud.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Credits & Ledger
Ansdev tracks every wallet movement in an append-only Transaction Ledger. Your visible balance is alwaysSUM(amount) of your ledger entries — there is no separate balance column to fall out of sync.
Ledger entries
| Field | Notes |
|---|---|
transactionType | DEPOSIT, ALLOCATE, CONSUME, REFUND |
bucketType | MASTER, CLOUD, AI, CREATIVE |
amount | Positive = credit, negative = debit. Float (smallest unit: 0.01). |
status | PENDING (escrow), COMPLETED, FAILED |
referenceId | Razorpay/Stripe payment ref, or internal task ID |
lockedUntil | Escrow expiry (null for non-pending entries) |
Escrow model
When you start a video upload, the billing engine locks the quoted credits as aPENDING ledger entry against your CREATIVE bucket. The job lifecycle then:
Reading your ledger
From the dashboard: Transaction Ledger (/dashboard/ledger). The same data is available via the internal GET /billing/ledger?limit=&offset= endpoint, which the dashboard uses.
A public read endpoint for the ledger is on the roadmap (scope: billing:read).
Refunds
Triggered from the dashboard’s Trust & Refund Portal. Eligibility:- Registered less than 48 hours ago, and
- Used less than 10 % of your wallet credits.
- Your files are deleted, your sessions revoked.
- A SHA-256 of your email is added to the
RestrictedIdentitytable so re-registration is detectable. - Razorpay / Stripe is asked to refund the gateway side.
canRejoin: true), but you forfeit refund eligibility on future spend (refundEligible: false, permanent).