Skip to content

Credit

A Credit is the platform's internal currency used by makers to pay for services like game creation, game code generation, and feature unlocks.

Properties

PropertyTypeDescription
IdintPrimary key
UserIdintFK → AppUser
InvoiceIdint?FK → Invoice that granted this credit
ExpiresAtUtcDateTimeWhen the credit expires
ExhaustedAtUtcDateTime?When the credit was consumed
ExhaustionTypestring?What consumed it (see below)
ExhaustionReferencestring?ID of the consuming entity

Exhaustion Types

TypeCostDescription
GameCreation100Creating a new game
OrderFulfilledEarned when an order is fulfilled
InvoiceFeaturePurchased via invoice
VatExemptionGranted for VAT-exempt purchases
AnonymousSaleCost for enabling anonymous sales
GameCodeGeneration1 eachGenerating game codes
LightningPaymentLightning payment processing
LightningWebhookSetupSetting up Lightning webhook

Credit Balance

The user's CreditBalance field on AppUser is the running total of unexpired, unexhausted credits. When a service is used, credits are consumed (exhausted) in FIFO order.

Sell indie games for Bitcoin.