Monetization
Usage problems
The Usage Events page under Metrics in the Apiable dashboard lists usage logs and usage billing that need a person: log files not processed, usage Stripe refused, billing that is behind, double charges, and usage too old to bill. Learn what each item means and when to acknowledge it.
The Usage Events page lists problems with your portal's usage logs and usage billing that need a person. You find it in the dashboard under Metrics, Usage Events. Each open item says what happened and what it means for billing, and a history keeps every item that was reported and closed.
Where do you see usage problems?
Open Metrics, Usage Events in the dashboard. The page has two blocks: Needs attention with the open items, and History with every item reported, resolved, or acknowledged. When nothing is open, it reads "No usage item needs attention."
When items are open, the Billing & Subscriptions settings page also shows a banner, for example "2 usage items need attention. Open Usage Events." Selecting it opens the page.
Who can see Usage Events?
The Organisation Owner, Organisation Admins, Portal Admins, and Configuration Owners. Other roles do not see the menu item. The page also needs an Apiable plan that includes it and usage reporting enabled for your portal; otherwise it reads "Usage events are not available."
See Members and roles to change roles.
When does Apiable report a usage problem?
The usage run checks once an hour. It reports a problem when usage has waited for more than 24 hours, so a short delay that the next run fixes is never reported. Events that already happened, such as a double charge, are reported at once.
There are two kinds of item:
| Kind | How it closes | What the card shows |
|---|---|---|
| A condition, such as logs not processed | By itself, when a later run sees the cause gone. | "Contact Apiable support." |
| An incident, such as a double charge | When someone chooses Acknowledge. | An Acknowledge button. |
What does each item mean?
Each card shows a title and a sentence on what it means for billing. The table lists every title, its kind, and what to do.
| Title | What it means | What to do |
|---|---|---|
| A usage log file is not processed | A log file from your gateway has waited for more than 24 hours. Its API calls are not counted or billed. | Contact Apiable support. The card names the file and the reason. |
| Usage logs are not processed | Your gateway's usage logs have not been processed for more than 24 hours. Their calls are not counted or billed yet. | Contact Apiable support. |
| Usage logs have a format the portal cannot read | The latest logs contain no API call Apiable can read, so those calls are not counted or billed. | Check your gateway's log format, then contact Apiable support. For AWS, see Enable usage logs on AWS API Gateway. |
| Usage of a subscription is not billed | Stripe has refused a subscription's usage for more than 24 hours. Apiable keeps the usage and bills it once Stripe accepts it. | Read Stripe said on the card, and contact Apiable support. It clears once Stripe accepts the usage. |
| Billing is behind | Usage older than 24 hours is waiting to be billed. Each billing run bills part of it. | Contact Apiable support. It clears by itself once the backlog is billed. |
| A customer was charged twice | A subscription's customer was charged twice for the same usage. | Check the customer's invoice in your Stripe dashboard and correct the double charge, then choose Acknowledge. |
| Token usage was not billed | Stripe refused a subscription's token usage, or Apiable could not match it to a subscription. Those tokens are not billed. | Decide whether to bill it another way, then choose Acknowledge. |
| Old usage was not billed | Usage older than 35 days was found. Stripe does not accept usage that old, so it is not billed. | Decide whether to bill it another way, then choose Acknowledge. |
What details does a card show?
Each card lists the facts Apiable has for that item, and when it was reported. Only the facts that apply to the item appear.
| Label | What it shows |
|---|---|
| File | The log file that waits. |
| Reason | Why the file waits: "The file is not valid JSON.", "The file cannot be read.", or "The file cannot be archived." |
| Subscription | The subscription concerned. On old usage, one line per subscription with its count. |
| Stripe said | The message Stripe returned when it refused the usage. |
| Quantity | The units of usage concerned. |
| Rows waiting | The number of usage records waiting to be billed. |
| Tokens | The number of tokens concerned. |
| Data since | The time of the oldest usage the item concerns. |
| Reported | When Apiable reported the item. |
How do you acknowledge an incident?
Choose Acknowledge on the card once you have dealt with it, for example corrected a double charge in Stripe. The item leaves Needs attention, and History records it with your name. Conditions have no button, because they close by themselves.
If the acknowledge fails, the page shows "Could not acknowledge the item. Reload the page and try again." An item that someone else already closed cannot be acknowledged again.
What does the history show?
Every item that was reported, resolved, or acknowledged, newest first, 20 per page. Each row has a Time, an Event such as "Reported: Billing is behind", and a User.
| Event | Meaning |
|---|---|
| Reported | Apiable opened the item. |
| Resolved | A later run saw the cause gone and closed a condition. |
| Acknowledged | A dashboard user closed an incident. The User column names them. |
Troubleshooting
| What you see | What to do |
|---|---|
| No Usage Events item under Metrics | Your role is not one of the four above, your Apiable plan does not include it, or usage reporting is not enabled for your portal. Contact Apiable to enable it. |
| "Usage events are not available." | The same causes apply. You opened the page directly without access. |
| "The usage items could not be loaded. Reload the page to try again." | Reload the page. Contact Apiable support if it persists. |
| "The usage history could not be loaded. Reload the page to try again." | Reload the page. Contact Apiable support if it persists. |
| "Could not acknowledge the item. Reload the page and try again." | Reload. If the item is gone, someone else closed it. |
Where to next
Usage-based billing
How Apiable counts calls from your gateway logs and bills them through Stripe.
Enable usage logs on AWS
Deliver Amazon API Gateway access logs to Apiable.
Connect Stripe
The Stripe account where usage is billed and invoices are raised.
API monetization
Why metered pricing, and how Apiable bills without sitting in your request path.