Skip to Content
Core ConceptsCredits & Billing

Credits & Billing

Credits are deducted each time you perform a billable action — submitting an invoice, verifying a TIN, creating a buyer, and so on. Your plan allocates monthly credits, and you can purchase more as needed.

How credits work

Every API action that costs credits is listed in the public credit cost catalog. You can fetch it at any time:

bash
curl https://gateway.useyona.com/b/v1/plans/credit-costs

Here are the current costs:

ActionCreditsWhat it does
Create invoice1Draft an invoice in the system
Submit invoice5Submit to the tax authority
Validate invoice1Validate against jurisdiction rules without saving
Query invoice status1Poll the tax authority for latest status
Cancel invoice3Cancel by issuing a credit note
Download invoice PDF1Generate a signed PDF
Add a seller1Register a seller party
Add a buyer1Register a buyer party
Verify tax number2Verify a TIN with the tax authority
Taxpayer lookup1Look up a taxpayer in the tax authority directory
Send SMS1Send an SMS (2FA, OTP, alerts)
Webhook delivery1Deliver a webhook event to your endpoint
Bulk report export1Export a large CSV/spreadsheet report
💡 Costs may change

Credit costs are read from the server at request time and may be adjusted. Always fetch the catalog programmatically rather than hardcoding values.

Credit pools

PoolDescription
subscriptionCreditsAllocated monthly by your plan
paygCreditsPurchased as one-time packages
creditBalancesubscriptionCredits + paygCredits

Subscription credits are consumed first, then PAYG credits.

Plans

PlanMonthly credits
Free200
Starter5,000
Professional25,000
Business50,000

The Free plan is sandbox-only (liveApiAccess: false). You need a paid plan to submit real invoices.

Checking your balance

bash
curl https://gateway.useyona.com/b/v1/billing-accounts/me \
  -H "Authorization: Bearer sk_test_your_key_here"
{ "data": { "creditBalance": 4200, "subscriptionCredits": 4000, "paygCredits": 200 } }

Purchasing credits

bash
curl -X POST https://gateway.useyona.com/b/v1/payments/purchase \
  -H "Authorization: Bearer sk_test_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{ "packageId": "pkg_1000_credits", "currency": "NGN" }'

The response includes a checkoutUrl — redirect the user there to complete payment.

Credit transfers (B2B2B)

Parent organizations can transfer PAYG credits to child orgs:

bash
curl -X POST https://gateway.useyona.com/b/v1/payments/transfer \
  -H "Authorization: Bearer sk_live_partner_key" \
  -H "Content-Type: application/json" \
  -d '{
    "targetOrganizationId": "e5f6a7b8-c9d0-1234-5678-90abcdef1234",
    "amount": 1000,
    "description": "Monthly credit allocation"
  }'

Both organizations must be in payg or hybrid billing mode.

Low balance alerts

Set up a webhook for billing_account.low_balance to get notified when your balance drops below a threshold.

💡 SDK available

See SDK — Billing for the programmatic interface.

Last updated on