App Webhooks
Subscribe your app to a store's events, and Storeep sends each one to the Webhook URL of your version, signed so you can check it came from Storeep.
https://example.com/storeep/webhooks, so a request can never send a store's events anywhere else. On a development store, events go to the Webhook URL of your newest version instead, so you can test a draft. Managing the webhooks of your own store? See Store Webhooks.Events
| Event | Permission | Sent when |
|---|---|---|
order-created | orders:read | A buyer places an order, or the merchant adds one in the dashboard. |
order-updated | orders:read | An order changes: its status, its items or its address. |
checkout-abandoned | orders:read | About 15 minutes after a buyer starts typing in the checkout and leaves without ordering. |
session-created | analytics:read | A visitor starts a new session on the storefront. |
newsletter-subscribed | customers:read | A visitor subscribes to the newsletter. |
customer-redact | orders:read or customers:read | A customer is removed from the store. Sent without a subscription. |
app-uninstalled | None | Your app loses the store. Sent without a subscription. |
app-charge-approvedapp-charge-declinedapp-charge-expired | None | The store owner answers a one-time charge your app asked for, or nobody did within 7 days. Sent without a subscription. |
app-usage-terms-approvedapp-usage-terms-declinedapp-usage-terms-revokedapp-usage-cap-reached | None | The store owner answers or stops your usage terms, or your records reach the month's cap. Sent without a subscription. |
app-plan-changed | None | The store moves to another of your plans, schedules or cancels a move, or its renewal applies one. Sent without a subscription. |
Your app subscribes to the first five, one store at a time. Its token needs the permission of the event, since the payload carries that data. The others are always sent.
What Does Not Send an Event
- Moving an order to the trash, or restoring it, sends nothing.
- An order event is not sent for an order that no longer exists when the event is delivered.
checkout-abandonedis not sent when the buyer finished the order in the meantime, for a test checkout, or for a checkout the merchant deleted.- A visitor who comes back to a session they already had sends no second
session-created. - A test order sends the same events as a real one, with
order_is_testset totrue.
The Payload
Every delivery is a POST with a JSON body. Every event has the same five keys, and its own data:
{
"id": "215623985117974528",
"type": "checkout-abandoned",
"store_id": "234567890123456789",
"created_at": "2026-11-28T10:15:30Z",
"data": {
"order_id": "215623984949153792",
"recovery_url": "https://example.com/products/linen-shirt?recover=215623984949153792.3f9a1c7e5b2d4086a1e9c3b7d5f20e84"
}
}| Field | Description |
|---|---|
id | The event id, the same value as the Storeep-Event-Id header. It stays the same on every retry. |
type | The event, from the table above. |
store_id | The store the event happened in. |
created_at | When Storeep first sent the event, in UTC. It stays the same on every retry. |
data | The event's own fields, described below. It holds only what your permissions cover. |
Every id is a string. A Storeep id has up to 19 digits, more than a JavaScript number can hold.
order-created and order-updated
Both carry the whole order: its totals, its items and its delivery address. order-updated holds the order after the change.
{
"order_id": "215623984949153792",
"order_number": 1042,
"order_subtotal": 598,
"order_discount": 50,
"order_weight": 0.5,
"order_shipping": 30,
"order_vat": 0,
"order_total": 578,
"order_paid_amount": 0,
"order_cod_amount": 578,
"order_currency": "MAD",
"order_market": "MA",
"order_shipping_method": "Standard delivery",
"order_payment_method": null,
"order_status": "pending",
"order_status_name": null,
"order_url": "https://example.com/products/linen-shirt",
"order_is_abandoned": false,
"order_is_duplicated": false,
"order_is_returning": false,
"order_is_test": false,
"order_created_at": "2026-11-28 11:15:28",
"order_items": [
{
"product_id": "201145671134920704",
"product_name": "Linen shirt",
"product_price": 299,
"product_quantity": 2,
"product_sku": "SHIRT-M-BLUE",
"product_barcode": null,
"product_weight": 0.25,
"product_variants": [
{ "name": "Size", "type": "text", "value": "M" },
{ "name": "Color", "type": "color", "value": "Blue", "color": "#1a73e8" }
],
"product_link": "https://example.com/products/linen-shirt"
}
],
"customer_id": "215623984886239232",
"customer_fullname": "Sara Alami",
"customer_email": "sara@example.com",
"customer_birthday": null,
"customer_gender": null,
"customer_company": null,
"customer_address1": "12 Rue des Orangers",
"customer_address2": null,
"customer_national_id": null,
"customer_neighborhood": null,
"customer_district": null,
"customer_apartment": null,
"customer_floor": null,
"customer_state_or_region": "Casablanca-Settat",
"customer_city": "Casablanca",
"customer_commune": null,
"customer_province": null,
"customer_postal_code": "20000",
"customer_phone": "+212612345678",
"customer_whatsapp": null,
"customer_link": null,
"customer_color": null,
"customer_note": "Call before delivery",
"customer_gift": null,
"utm_source": "facebook",
"utm_medium": "cpc",
"utm_campaign": "summer_sale",
"utm_term": null,
"utm_content": null
}| Field | Description |
|---|---|
order_id, order_number | The order's id, and the number the merchant and the buyer see. |
order_subtotal, order_discount, order_shipping, order_vat, order_total | The amounts of the order, in order_currency. |
order_paid_amount, order_cod_amount | What was paid online, and what is still to collect on delivery. |
order_weight | The weight of every item together, null when no item has one. |
order_market | The country code of the market the order was placed in. |
order_shipping_method, order_payment_method | The names of the shipping and payment methods, null when the order has none. |
order_status, order_status_name | The status, see Orders. For one of the store's own statuses, order_status is custom-1 to custom-6 and order_status_name is the name the merchant gave it. |
order_url | The storefront page of the first product of the order, null when none of its products exists any more. |
order_is_abandoned, order_is_duplicated, order_is_returning, order_is_test | The same flags as on the order object. |
order_created_at | When the order was placed, in the store's time zone, with no offset. See the note below. |
order_items | One entry for each item: the product's id, name, unit price, quantity, SKU, barcode, unit weight, picked variants and storefront page. product_link is null once the product was deleted. The src of an image variant is a file name of the store's media library. |
customer_id | The customer the order belongs to. |
customer_fullname to customer_gift | The delivery address and what the buyer typed in the checkout. A field the store does not ask for is null. |
customer_email, customer_birthday, customer_gender | Present only when your app holds customers:read. |
utm_source to utm_content | The campaign the buyer came from, null when their link carried none. |
order_created_at and session_created_at are written in the store's time zone, with no offset, for example 2026-11-28 11:15:28. The created_at of the event itself is in UTC. Read the store's time_zone from GET /v1/store to convert them.checkout-abandoned
A checkout is an order with the status abandoned. The event names it, and your app reads it with GET /v1/orders/{id}.
{
"order_id": "215623984949153792",
"recovery_url": "https://example.com/products/linen-shirt?recover=215623984949153792.3f9a1c7e5b2d4086a1e9c3b7d5f20e84"
}| Field | Description |
|---|---|
order_id | The abandoned order. |
recovery_url | A link to the abandoned product on the store's own domain, or to the store's home page when the order's products have since been deleted. It takes the buyer back to the store's checkout with their cart and details already filled in. Send it by email, SMS or chat to bring them back. It fills the checkout in only while the order is still abandoned. Once the buyer orders or the merchant deletes the checkout, it opens that page like any other link. Sent only to apps granted customers:read, since the form it opens shows the buyer's email. |
session-created
A new visit: when and in which market it started, and the products the visitor had already seen on an earlier visit. It carries no personal data.
{
"session_id": "385578097598009556",
"session_market": "MA",
"session_created_at": "2026-11-28 11:15:28",
"products": [
{
"id": "201145671134920704",
"link": "https://example.com/products/linen-shirt"
}
]
}newsletter-subscribed
{
"email": "sara@example.com"
}customer-redact
A customer is gone from the store: the merchant deleted them, their last order was deleted, or their orders moved to another customer. order_ids lists the orders removed with them. It is empty when their orders now belong to someone else.
{
"customer_id": "215623984886239232",
"order_ids": ["215623984949153792"]
}app-plan-changed
{
"change": "downgrade_scheduled",
"plan": {
"id": "216402187420131329",
"name": "Basic"
},
"previous_plan": {
"id": "216402187420131328",
"name": "Pro"
},
"amount": 0,
"currency": "USD",
"effective_at": "2027-01-14 09:30:00",
"period_end": "2027-01-14 09:30:00"
}Every value of change is described in Plans.
app-uninstalled
{
"app_id": "123456789012345678"
}Delivery
Each delivery carries three headers, and is signed with your signing key. Verifying Requests shows how to check it.
| Header | Description |
|---|---|
Storeep-Event-Id | The event id, the same on every retry of one event. |
Storeep-Timestamp | The Unix time in seconds when this attempt was signed. |
Storeep-Signature | The time and the signature: t=1764331200,v1=5257a8... |
- Answer with a
2xxstatus within 10 seconds. Only a2xxcounts as delivered. Redirects are not followed. - A
5xx, a429, a timeout or a refused connection is retried 5 times: after 30 seconds, then 1, 2, 4 and 8 minutes. - Any other status is a final failure and is not retried.
- Every retry carries the same
Storeep-Event-Id. Store the id and skip one you already handled, since an event can arrive twice. - Events can arrive out of order. When the order matters, read the current state through the API.
- An event is sent only while the subscription is on, your app holds a token for the store that has not run out, and your version still declares the permission.
- While Storeep has paused your app, it receives no event except
customer-redact,app-uninstalled, the answer to a charge or to usage terms it asked for, the cap its usage reached, and a change of the store's plan. - Events of a store that is behind on its Storeep fees wait until it pays. They are sent then.
When a Subscription Is Switched Off
- A subscription is switched off after 10 failed deliveries in a row.
- A failure is counted at most once every 5 minutes, so a short outage costs one failure, not ten.
- One success sets the count back to zero.
- We email your confirmed support email when it happens, or your account email until you confirm one. You receive at most one such email a day for each app.
- The subscription then lists
is_enabledasfalse. - To switch it back on, fix your endpoint and subscribe again with
POST /v1/app-webhooks. - Events that happened while a subscription was off are not sent later.
Erasing Customer Data
When you receive customer-redact, delete every copy you keep of that customer and of the listed orders within 30 days.
- If your app asks for Read orders or Read customers, it must have a Webhook URL: a version without one is refused at review.
- The event is sent even after your tokens lapsed, and while your app is paused. You still hold the copies you made before.
- It needs no subscription.
- Any answer other than a
2xxis retried, for about a day and a half. Answer2xxonce the data is deleted, or once you have safely recorded that it must be.
When Your App Is Uninstalled
When you receive app-uninstalled, delete what you keep for that store. Its tokens no longer work, and its app settings and subscriptions are gone. The event is sent when:
- The merchant uninstalls your app.
- A paid subscription to your app ends unpaid.
- The store is deleted.
- The store changes owner, for an approved app its previous owner built.
It is retried like customer-redact, for about a day and a half. A store that changes owner also drops the tokens of every other app: the new owner connects each app again.
List Subscriptions
/v1/app-webhookscurl "https://api.storeep.com/v1/app-webhooks" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"data": [
{
"id": "385064997585164584",
"event": "order-created",
"is_enabled": true,
"consecutive_failures": 0,
"created_at": "2026-11-28 10:30:00",
"updated_at": "2026-11-28 10:30:00"
}
]
}consecutive_failures counts the failed deliveries in a row, and is_enabled turns false once the subscription is switched off. Both dates are in UTC.
Subscribe
/v1/app-webhookscurl -X POST "https://api.storeep.com/v1/app-webhooks" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"event": "order-created"}'{
"data": {
"id": "385064997585164584",
"event": "order-created",
"is_enabled": true
}
}- Subscribing to an event you already follow answers
200with the same subscription, so you can call it after every install. - Subscribing again switches a subscription back on and sets its failure count to zero.
- An app holds at most 10 subscriptions for each store.
- A token without the permission of the event answers
403. - A version with no Webhook URL cannot subscribe. The answer is
422.
Unsubscribe
/v1/app-webhooks?event={event}curl -X DELETE "https://api.storeep.com/v1/app-webhooks?event=order-created" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"data": {
"id": "385064997585164584",
"event": "order-created",
"is_deleted": true
}
}The event goes in the address, since a DELETE carries no body. The answer is 404 when your app was not subscribed to that event.