Usage Charges
Your app can charge a store for what it uses, such as SMS sent or orders synced, up to a monthly limit the store owner approves. Each charge is paid from their Storeep wallet at once, and the month's total can never pass the limit.
charges:write permission. A usage charge is paid to you like your subscription, see Pricing and Payouts. For a single purchase, use One-Time Charges instead.How It Works
- Your app asks for usage terms: a short price text, such as 0.05 USD per SMS, and a monthly cap in US dollars. Nothing can be charged yet: the terms are
pending. - Storeep notifies the store owner, who reads your terms and the cap in the dashboard window at
approval_url, and approves or declines them. Only the store owner can answer, never a staff member. - Once the terms are
approved, your app sends a usage record for each batch of usage. Storeep takes its amount from the wallet at once, as long as the month's total stays within the cap. - The month is the calendar month in UTC. On the 1st, every store starts again from zero.
- The owner can stop your terms at any time. Your app then hears
app-usage-terms-revokedand every later record is refused, until the owner approves new terms. - To change your price or your cap, ask for new terms. Until the owner approves them, the terms they approved before keep applying.
| Status | Meaning |
|---|---|
pending | Waiting for the store owner. Your app keeps at most one pending request per store. |
approved | The terms that apply. One set applies per store. |
declined | The owner said no. |
canceled | Your app canceled the request before the owner answered. |
replaced | The owner approved newer terms, which apply from then on. |
revoked | The owner stopped the terms. Records are refused until they approve new ones. |
Ask for Usage Terms
/v1/usage-terms| Field | Type | Description |
|---|---|---|
terms | string | Your price as the owner reads it, from 1 to 200 characters on one line, such as 0.05 USD per SMS sent. |
cap | number | The most your app may charge in one month, in US dollars, from 1.00 to 1000.00, with at most 2 decimals. |
idempotency_key | string | Your own key for this request: 1 to 64 letters, digits, dots, underscores, colons or hyphens. Sending the same key again answers the first request instead of asking twice. |
curl -X POST "https://api.storeep.com/v1/usage-terms" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"terms": "0.05 USD per SMS sent", "cap": 50, "idempotency_key": "terms-2026-12"}'{
"data": {
"id": "216402187420131328",
"status": "pending",
"terms": "0.05 USD per SMS sent",
"cap": 50,
"currency": "USD",
"idempotency_key": "terms-2026-12",
"is_test": false,
"approval_url": "https://app.storeep.com/apps/215498312769265664/charges",
"created_at": "2026-12-02 10:30:00",
"decided_at": null,
"ended_at": null
}
}- The same
idempotency_keyanswers200with the first request as it stands now. The same key with another cap or text answers409. - While a request is pending, a request with a new key answers
409. Cancel the pending one first. is_testistrueon your own stores: records under test terms take nothing from the wallet.ended_atis when approved terms stopped applying, replaced or revoked. Every date of this page is in UTC.
List and Cancel
/v1/usage-termsAnswers your app's last 20 terms on the store, newest first, in the same shape as the create. The one with the status approved is the one that applies.
/v1/usage-termsCancels the pending request and answers it with the status canceled, or 404 when none is pending. Approved terms are only ever stopped by the store owner.
Charge for Usage
/v1/usage-records| Field | Type | Description |
|---|---|---|
amount | number | In US dollars, from 0.01 to 1000.00, with at most 2 decimals. Add your usage up until it reaches whole cents. |
description | string | What the usage was, from 1 to 200 characters on one line, such as 247 SMS sent on December 2. |
idempotency_key | string | Your own key for this record, in the same shape as above. A record sent again with the same key is charged once. |
curl -X POST "https://api.storeep.com/v1/usage-records" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"amount": 12.35, "description": "247 SMS sent on December 2", "idempotency_key": "sms-2026-12-02"}'{
"data": {
"id": "216405533203849216",
"terms_id": "216402187420131328",
"amount": 12.35,
"currency": "USD",
"description": "247 SMS sent on December 2",
"idempotency_key": "sms-2026-12-02",
"is_test": false,
"period": "2026-12",
"created_at": "2026-12-02 18:00:00"
},
"meta": {
"period": "2026-12",
"total": 12.35,
"cap": 50,
"remaining": 37.65
}
}A record is paid the moment it is answered with 201. A record that cannot be charged answers 422 with a reason your app can act on, and nothing is taken:
| Reason | Meaning | What to do |
|---|---|---|
cap_reached | The record would take the month past the cap. meta.remaining says what is left. | Charge a smaller record, wait for the next month, or ask for terms with a higher cap. |
no_terms | No terms apply: never approved, declined, stopped by the owner, or the app was installed again. | Ask for usage terms and wait for app-usage-terms-approved. |
insufficient_balance | The store's wallet does not cover the record. | Tell the merchant to add funds, then send the record again with the same key. |
{
"status": "error",
"reason": "cap_reached",
"errors": ["this record would take the month past the cap the store owner approved"],
"meta": {
"period": "2026-12",
"total": 49.8,
"cap": 50,
"remaining": 0.2
}
}- Records sent at the same time are charged one after the other, so the month's total never passes the cap, however many your app sends at once.
- The month counts every record of your app on the store, whichever terms applied. New terms with a lower cap may sit under what the month already charged: then nothing more is charged until the next month.
- A record sent again with the same
idempotency_keyanswers200with the first record, even after the terms ended. The same key with another amount or description answers409. - Each record counts toward your app's daily write limit of 1,000 per store, see Rate Limits. Send one record per batch of usage, such as one an hour, rather than one per message.
List a Month
/v1/usage-records?period=2026-12| Parameter | Description |
|---|---|
period | The month, written YYYY-MM. The current month when left out. |
limit | Records per page, from 1 to 50, 20 by default. |
after | The next_after of the previous page, to read the next one. |
Answers the month's records in the order they were charged, with the month's total, and, for the current month only, the cap of the terms that apply now and what is remaining. Both are null for a past month, or when no terms are approved. next_after is null on the last page.
Events
These events are sent to the webhook URL of your version, signed like every app webhook. You receive them without subscribing, and they are retried for about a day and a half until your server answers with a 2xx status.
| Event | Sent when |
|---|---|
app-usage-terms-approved | The store owner approved your terms. Records can be charged from now on. |
app-usage-terms-declined | The store owner declined your terms. |
app-usage-terms-revoked | The store owner stopped your terms. Stop the service they paid for, or ask for new terms. |
app-usage-cap-reached | Your records reached the month's cap, or one was refused for it. Sent once a month per set of terms. |
{
"id": "216402510243692544",
"type": "app-usage-terms-approved",
"store_id": "215498118325370880",
"created_at": "2026-12-02T10:34:12Z",
"data": {
"id": "216402187420131328",
"status": "approved",
"terms": "0.05 USD per SMS sent",
"cap": 50,
"currency": "USD",
"idempotency_key": "terms-2026-12",
"is_test": false,
"decided_at": "2026-12-02 10:34:12",
"ended_at": null
}
}{
"id": "216419928105848832",
"type": "app-usage-cap-reached",
"store_id": "215498118325370880",
"created_at": "2026-12-28T09:12:40Z",
"data": {
"terms_id": "216402187420131328",
"period": "2026-12",
"total": 49.8,
"cap": 50,
"currency": "USD"
}
}The store owner is also told by email and in the Storeep app when your records reach 80% of the cap, once a month, so the last part of the month never comes as a surprise.
Rules
- Charge only for usage your terms describe, at the price they state. The description of each record names what was used.
- Your monthly price covers your app itself. Usage charges are for what the merchant uses up, so a fixed fee charged as usage breaks the review rules.
- Your share is the same 80% as for a subscription, paid with the statement on the 1st of the month for charges at least 30 days old. A refund is made by the Storeep team and comes off your next payout.
- An uninstall ends the terms. When the store installs your app again, ask for terms again.
- Your own stores are never charged: their terms and records come back with
is_testset totrue, so you can test the whole flow for free. - Questions about usage charges? Contact support.