Docs

One-Time Charges

Your app can ask a store for a single payment, such as a pack of credits or an extra service, on top of its price. The store owner approves or declines it in their dashboard, and an approved charge is paid from their Storeep wallet.

These endpoints accept only an app access token with the charges:write permission. A charge is paid to you like your subscription, see Pricing and Payouts.

How It Works

  • Your app creates a charge with an amount, a description and its own idempotency key. Nothing is taken yet: the charge is pending.
  • Storeep notifies the store owner. The answer is approval_url, the dashboard window where the owner sees your app's pending charges and the wallet balance. Send the merchant there from your app.
  • The owner approves or declines. Only the store owner can answer, never a staff member.
  • An approval takes the amount from the wallet at once. When the wallet does not cover it, nothing is taken and the charge stays pending, so the owner can add funds and approve it again.
  • Your app hears the answer through app-charge-approved or app-charge-declined, sent without a subscription. A charge left unanswered for 7 days expires, and you receive app-charge-expired.
  • Deliver what the merchant paid for once you receive app-charge-approved, or once a read shows the charge as approved.
StatusMeaning
pendingWaiting for the store owner.
approvedPaid from the wallet. This status never changes again.
declinedThe owner said no. Nothing was taken.
expiredNobody answered within 7 days. Nothing was taken.
canceledYour app canceled it before the owner answered. Nothing was taken.

Create a Charge

POST/v1/app-charges
FieldTypeDescription
amountnumberIn US dollars, from 0.50 to 500.00, with at most 2 decimals.
descriptionstringWhat the merchant pays for, from 1 to 200 characters on one line. The owner reads it beside the amount, so name the product plainly.
idempotency_keystringYour own key for this charge: 1 to 64 letters, digits, dots, underscores, colons or hyphens. Sending the same key again answers the first charge instead of asking twice.
cURL
curl -X POST "https://api.storeep.com/v1/app-charges" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"amount": 12.50, "description": "500 SMS credits", "idempotency_key": "credits-7f3a2c"}'
201 Created
{
    "data": {
        "id": "216318245690916864",
        "status": "pending",
        "amount": 12.5,
        "currency": "USD",
        "description": "500 SMS credits",
        "idempotency_key": "credits-7f3a2c",
        "is_test": false,
        "approval_url": "https://app.storeep.com/apps/215498312769265664/charges",
        "created_at": "2026-12-02 10:30:00",
        "decided_at": null,
        "expires_at": "2026-12-09 10:30:00"
    }
}
FieldTypeDescription
idstringThe charge id. Keep it to read or cancel the charge.
is_testbooleantrue on your own stores, which are never charged: approving a test charge takes nothing from the wallet.
approval_urlstringThe dashboard window where the store owner answers. It needs the owner to be signed in to Storeep.
decided_atstring | nullWhen the charge left pending, in UTC. Every date of this page is in UTC.
expires_atstringWhen a pending charge expires.

Retries and Limits

  • A request sent again with the same idempotency_key answers 200 with the first charge as it stands now, whatever its status.
  • The same key with another amount or description answers 409. Use a new key for a new charge.
  • Your app can keep at most 5 pending charges on one store. A sixth answers 422 until the owner answers one or you cancel one.
  • A field that breaks a rule answers 422 with one message per field, see Error Handling.
  • Every create and cancel counts toward your app's daily write limit, see Rate Limits.

Read a Charge

GET/v1/app-charges/{id}

Answers the charge in the same shape as the create. Use it when a webhook did not reach you, or to check a charge before you deliver. An id of another app or another store answers 404.

cURL
curl "https://api.storeep.com/v1/app-charges/216318245690916864" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Cancel a Charge

DELETE/v1/app-charges/{id}

Takes back a charge the owner has not answered yet, for example when the merchant changed their mind inside your app. It answers the charge with the status canceled. A charge that is no longer pending answers 409, and an approved charge can only be refunded by the Storeep team.

cURL
curl -X DELETE "https://api.storeep.com/v1/app-charges/216318245690916864" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Hearing the Answer

The answer is sent to the webhook URL of your version, signed like every app webhook. You receive it without subscribing. It is retried for about a day and a half until your server answers with a 2xx status.

EventSent when
app-charge-approvedThe store owner approved the charge and the wallet paid it.
app-charge-declinedThe store owner declined the charge.
app-charge-expiredNobody answered the charge within 7 days.
app-charge-approved
{
    "id": "216318502017417216",
    "type": "app-charge-approved",
    "store_id": "215498118325370880",
    "created_at": "2026-12-02T10:34:12Z",
    "data": {
        "id": "216318245690916864",
        "status": "approved",
        "amount": 12.5,
        "currency": "USD",
        "idempotency_key": "credits-7f3a2c",
        "is_test": false,
        "decided_at": "2026-12-02 10:34:12"
    }
}
  • Match the event to your charge by data.id or by your own idempotency_key.
  • Events of a store that is behind on its Storeep fees wait until it pays. When you need the answer sooner, read the charge.
  • Deliver once per charge: an event can arrive twice, with the same Storeep-Event-Id.

Rules

  • Charge only for something your app delivers once: credits, a report, a setup, an extra service. A recurring fee belongs in your monthly price, which the review checks, and a cost that grows with use belongs in Usage Charges.
  • The description names exactly what the merchant gets, such as 500 SMS credits. Never ask for a charge the merchant did not start in your app.
  • 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.
  • Your own stores are never charged: their charges come back with is_test set to true, so you can test the whole flow for free.
  • Questions about a charge? Contact support.