Skip to main content

Admin sells credits to Super Agent using cash

Admin receives cash (or another offline payment method) from a Super Agent, then issues credits to that Super Agent's CDN wallet.

Basic flow:

Admin collects payment → record full details → issue credits to Super Agent → save reconciliation ledger

Who does what

RoleAction
AdminCreate credit sale transaction, enter payment details, confirm status
Super AgentPays per agreement; receives credits in wallet
SystemCalculates amount due, writes ledger, stores audit

Required information when selling

When Admin sells credits to a Super Agent, the form must include all items below before submit.

1. Counterparty & quantity

FieldRequiredDescription
Super AgentSuper Agent receiving credits (select from list or from current detail page)
Credits soldCredits issued to CDN wallet (positive number, > 0)
Cost rate✅ (display)Super Agent cost rate at time of sale — used to calculate amount due
Amount due✅ (auto-calculated)Credits sold × Cost rate — Admin confirms before saving

2. Payment & receipt method

FieldRequiredDescription
Actual amount receivedAmount Admin actually received (USD). Default = amount due
Receipt methodHow Super Agent paid — e.g. Cash, Bank transfer, Check, Other
Payment received atWhen Admin confirmed payment received (default = now; editable if entered late)
CurrencyDefault USD

3. Status

StatusMeaningWhen to use
Paid in full — credits issuedFull payment received, credits in walletStandard flow: collect payment before issuing credits
Pending payment — credits issuedCredits issued but payment not yet received / not fully receivedOnly with temporary credit policy — requires separate approval
Partially paidPartial payment receivedRecord Amount received + Remaining
CancelledTransaction cancelled, no credits issued (or credits reversed)Wrong entry, refund, etc.

Default recommendation: Safest flow is to allow submit only when status = Paid in full — credits issued. Other statuses are optional if receivables management is needed later.

4. Reference (optional)

FieldRequiredDescription
External referenceRecommendedInternal receipt number, transfer reference, payment voucher number
NoteRecommendedShort additional description (if needed)

FieldReason
Performed by (Admin)Audit — who created the transaction (from session)
Linked credit transactionReference to credit wallet ledger entry after issuance

Business rules

  1. Cost rate is snapshotted at time of sale — not updated if Super Agent changes rate later.
  2. Amount due = Credits sold × Cost rate of the Super Agent buyer.
  3. Issuing credits does not change the online USD wallet — this records cash / offline payment.
  4. Any status or amount change after creation must have an audit log (who, when, from value → to value).

Example

Super Agent SA-Alpha, cost rate 10% (0.10).

ItemValue
Credits sold10,000 credits
Amount due10,000 × 0.10 = $1,000
Receipt methodCash
Actual amount received$1,000
StatusPaid in full — credits issued
External referencePT-2026-0412
NoteJune 2026 transaction

After submit: Super Agent CDN wallet +10,000 credits; cash settlement ledger records Admin received $1,000 from SA-Alpha.


  • Super Agent sells credits to Agent → section 2
  • Agent sells credits to Shop → section 3