Version

copilot_credits.* events

Copilot Credits as they move: a pack bought and credited, free credit granted, the balance running low, and a refund taking credit back.

Copilot Credits as they move: a pack bought and credited, free credit granted, the balance running low, and a refund taking credit back. Copilot Credits are the prepaid pool Subscriby Copilot is metered through, kept in Subscriby's own ledger in US cents: paid packs and free grants side by side, the free part spent first. They never touch the Stripe customer balance, so a pack can never pay a plan invoice and a plan invoice can never consume them.

Every event in this family is about the creator's own account, never a project: project_id is null and the event is delivered to the endpoints of the creator's current team. Two describe money in (copilot_credits.purchased and copilot_credits.granted), one the balance (copilot_credits.low) and one money out (copilot_credits.refunded). Usage itself is not announced: a turn is too frequent for a webhook, and the balance it leaves is on every other event.

Background

Amounts are integers in cents

Every amount is an integer number of US cents (2500 is $25.00), never a decimal string, because the pool is kept in cents. balance_cents is the whole balance after the event, free and paid together; it can be negative after a refund of credit already spent, which is the state in which the Copilot stops until a later grant covers it.

Required ability

Every event in this family requires account:read at token mint time.

Events

How is this guide?

Last updated on

Version

On this page

Subscriby is a product
designed by you — for you.
No boardroom full of executives deciding what we ships next. Our roadmap always shaped by you with your feedback.

Share feedback or a request

For AI agents: llms.txt · llms-full.txt