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.
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-approvedorapp-charge-declined, sent without a subscription. A charge left unanswered for 7 days expires, and you receiveapp-charge-expired. - Deliver what the merchant paid for once you receive
app-charge-approved, or once a read shows the charge asapproved.
| Status | Meaning |
|---|---|
pending | Waiting for the store owner. |
approved | Paid from the wallet. This status never changes again. |
declined | The owner said no. Nothing was taken. |
expired | Nobody answered within 7 days. Nothing was taken. |
canceled | Your app canceled it before the owner answered. Nothing was taken. |
Create a Charge
/v1/app-charges| Field | Type | Description |
|---|---|---|
amount | number | In US dollars, from 0.50 to 500.00, with at most 2 decimals. |
description | string | What 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_key | string | Your 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 -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"}'{
"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"
}
}| Field | Type | Description |
|---|---|---|
id | string | The charge id. Keep it to read or cancel the charge. |
is_test | boolean | true on your own stores, which are never charged: approving a test charge takes nothing from the wallet. |
approval_url | string | The dashboard window where the store owner answers. It needs the owner to be signed in to Storeep. |
decided_at | string | null | When the charge left pending, in UTC. Every date of this page is in UTC. |
expires_at | string | When a pending charge expires. |
Retries and Limits
- A request sent again with the same
idempotency_keyanswers200with 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
422until the owner answers one or you cancel one. - A field that breaks a rule answers
422with 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
/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 "https://api.storeep.com/v1/app-charges/216318245690916864" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Cancel a Charge
/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 -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.
| Event | Sent when |
|---|---|
app-charge-approved | The store owner approved the charge and the wallet paid it. |
app-charge-declined | The store owner declined the charge. |
app-charge-expired | Nobody answered the charge within 7 days. |
{
"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.idor by your ownidempotency_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_testset totrue, so you can test the whole flow for free. - Questions about a charge? Contact support.