Merchant Onboarding & Product Setup
1
Create a Paygentic account
Go to platform.paygentic.io and sign up. Choose Merchant during registration.
2
Create a Product
Open your merchant dashboard and create a new product:



3
Define Billable Metrics
This is what you’ll charge for — e.g., number of code submissions or execution time
For different API tiers, you can create separate metrics:

- Basic Submissions: Simple languages like Python, JavaScript
- Premium Submissions: Complex languages like Rust, Haskell
- Execution Time: Actual processing time in seconds
4
Create Plan and Price
- Create a usage plan
- Set a price for your metric (e.g.,
$0.001
per submission)


5
Generate Authorization Links
Next you need to create checkout/authorization links using which a user can subscribe to your plan and become a customer.Go to Product -> Choose the plan -> Generate authorization link
How to use authorization links:

- Send the link directly to your user via email
- Use the API to generate links dynamically and embed them in button actions within your app
- Add subscribe buttons on your landing page that redirect to these links
Always generate a unique authorization link for each individual user.
Create authorization links via API
Create authorization links via API
Tracking Usage
Now that your product is set up and customers can subscribe, it’s time to track the usage. This involves creating entitlements to pre-authorize payments(optional) and reporting usage events in real-time.1
Create an Entitlement (Optional)
Before processing expensive operations like code execution, create an entitlement to reserve funds and guarantee payment. For high-volume APIs, use Paygentic’s edge endpoints to reduce latency by 30-70%.Regional Edge Optimization: If you know your user’s location, use regional edge endpoints for even better performance:
Find Your IDs: You’ll need your API Key from Settings → API Keys, Merchant ID from Settings → Organization, and Billable Metric ID from your product’s billable metrics section.
Important: Store the
entitlementId
from the response! You’ll need this ID when reporting usage to consume from the pre-authorized amount.2
Report Usage Events
When a customer uses your API, report the usage immediately to trigger real-time billing:
While the
entitlementId
is optional when reporting usage, it is considered best practice to include it. Creating and consuming from a pre-authorized entitlement helps guarantee that you will be paid for the reported usage in full.Integration Example
Integration Example
3
Check Merchant Dashboard
Head over to your merchant dashboard and enjoy being paid in real time.

Conclusion
🎉 You’ve successfully monetized your API service with real-time payments! You now benefit from:- Instant Revenue: Get paid immediately when customers use your API
- Zero Risk: No unpaid usage or bad debt from customers
- Transparent Pricing: Customers see exactly what they pay for each request
- Scalable Architecture: Handles high-volume APIs with edge infrastructure