1. Sign Up
Organization
(acting as a Merchant
) and a User
account linked to it.2. Find Your API Key
sk_live_...
).3. Create a Product
Product
.name
, description
, and your merchantId
.4. Define a Billable Metric
API Requests
, Tokens Processed
, Compute Hours
.name
, description
, unit
(e.g., “requests”, “tokens”), the productId
from the previous step, and set aggregation
to SUM
.5. Create a Plan and Price
Billable Metrics
to their Prices
. A Plan
acts like a rate card.Billable Metric
. Choose a pricing model
(e.g., standard
for a fixed price) and set its properties (e.g., unitPrice
for standard).name
, set the billingInterval
(e.g., monthly
), currency
(e.g., USD
), link it to your Product
, and associate the Price
you just created.6. Generate a Subscription Link
Plan
.planId
and your merchantId
.7. Customer Subscribes
Consumer
Organization) is created.Customer
resource (linking your Merchant
to their Consumer
) and a Subscription
resource (linking the Customer
to your Plan
).8. Report a Usage Event
Customer
is subscribed, you can report their usage.Usage Event
to Paygentic.idempotencyKey
(unique for each event to prevent duplicates), the customerId
, the timestamp
of the event, and the properties
detailing which billableMetricId
was consumed and the quantity
.Subscription
and deducts the cost from their Wallet
in real-time.