Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Webhooks in Shoporama: complete guide to events and setup

Complete guide to webhooks in Shoporama. Get notified automatically at a URL when something happens in your store, with a list of all events, setup, payload, and signature verification.

Reading time: about 43 minutes
Store owner Developer

Webhooks let Shoporama automatically send a message to an external service when something happens in your store, for example when a customer places an order, a product is updated, or a new customer is created. This guide explains what webhooks are, which events you can listen for, and how to create them.

The webhook overview under Integrations in the Shoporama admin with a webhook URL, an event badge, Active status, and the Create webhook button
The Webhooks page under Integrations shows each webhook with its URL, selected events, status, and success rate. From here you create new webhooks, open logs, and edit or delete existing ones.

What are webhooks?

A webhook is an automatic notification that Shoporama sends to a URL you specify when a specific event occurs. Think of it as a "reverse API". Instead of you asking Shoporama "are there any new orders?", Shoporama tells you automatically.

Without webhooks: Your service asks Shoporama every 5 minutes: "Are there any new orders?" This is inefficient and creates unnecessary load.

With webhooks: Shoporama notifies you when there is a new order. It happens automatically, and you no longer have to ask again and again.

Available webhook events

You can set up webhooks for the following events. Note that the event names use underscores (order_created), not periods. The only exception is the test event test.ping.

In the admin, the events are shown in five groups: order, product, checkout, customer, and other. You will find new_return and newsletter_subscribe under other, and customer_created under customer.

Order events

Event Description
order_createdA customer has bought something in the store (the order was created through checkout). Orders created in other ways are not sent by default. See orders created via the API and outside checkout
paidAn order has been marked as paid, regardless of how it was created. Also sent if the paid mark is removed again, so fetch the order to see its status
new_statusAn order has changed status (for example from "New" to "Shipped")
shipment_createdA parcel has been created on the order (partial delivery)
shipment_sentA parcel on the order has been shipped
new_returnA customer has created a return
order_withdrawnA customer has withdrawn from their purchase using the digital withdrawal function

Product and category events

Event Description
productA product has been created or updated
stockThe stock level of a product has changed
categoryA category has been created or updated

Customer and newsletter events

Event Description
customer_createdA new customer has been created in the store
newsletter_subscribeSomeone has signed up for the newsletter

Checkout events (the customer's path through checkout)

Event Description
add_to_basketA product has been added to the cart
update_basketThe cart has been updated (quantity or variant)
view_basketThe customer has viewed the cart
view_addressThe customer is on the address step of checkout
view_shippingThe customer is on the shipping step
view_approveThe customer is on the approval step
view_thanksThe customer is on the "thank you for your order" page

Note: Shoporama does not have a separate "order_sent" event. When you mark an order as shipped, the new_status event fires. The payload contains order_id but not the status itself, so fetch the order via the REST API to see what it has changed to. If you ship the order in several parcels using partial delivery, shipment_sent is also sent for each parcel, including when prepared parcels are closed because the order is marked as shipped.

Create a webhook

  1. Go to Integrations in the left menu
  2. Click Webhooks
  3. Click "Create webhook"
  4. Enter the URL that should receive the webhook data
  5. Select the events you want to listen for (you can select several)
  6. Optional: if the receiver should also get the orders you create via the API or with Claude, turn on Also send order_created for orders created via the API. See the section below
  7. Click Save and close (or Save and keep editing if you want to see the webhook's secret straight away)

A new webhook is active straight away. When you edit it, you can turn it off with the Active switch and see its secret key in the Secret field.

You can also send a test event with the test.ping event directly from the log page to check that your receiver works.

Orders created via the API and outside checkout

By default, order_created is only sent when a customer buys through checkout in the store. Orders created in other ways are not sent as order_created:

  • Orders you create in the admin with Create order, from the order list or the customer list
  • Copies of orders made with Copy in the order list
  • Credit notes and exchanges
  • Subscription renewals, both the automatic ones and those you create with Save and create order now on the subscription
  • Upsell orders placed on the thank-you page after a purchase
  • The order for the remaining amount on a partial payment
  • Imported historical orders, which do not send any webhooks at all
  • Orders created via the API or with Claude, unless you turn on the option below

paid and new_status are still sent for all of these orders, except imported ones, when they are marked as paid or change status. So if your 3PL warehouse listens for paid, it also gets an order you created in the admin once it is marked as paid. If a single order needs to go out right away, use Send on the order page.

Also send orders created via the API

If you create orders via the API or with Claude, such as phone orders and replacement items, the webhook can also receive them as order_created. This is usually what a 3PL warehouse needs, so the order is packed and shipped like any other.

  1. Go to Integrations → Webhooks
  2. Click the pencil (Edit) next to the webhook, or click Create webhook to make a new one
  3. Make sure order_created is selected under Events. The option only works together with that event
  4. Turn on Also send order_created for orders created via the API
  5. Click Save and close
The Edit Webhook page in Shoporama with the Webhook URL field and the event groups order, product, checkout, customer, and other, where order_created, new_status, paid, and order_withdrawn are selected, and a red frame around the Also send order_created for orders created via the API switch and its help text, just above the Active switch
The switch sits below Events on the Edit Webhook page. It only works when order_created is selected, and it stays off until you turn it on yourself.

The option is off by default, including on the webhooks you already have, and it only applies to the webhook you turn it on for. The order is sent in the background like other events and appears in the webhook's log. Other integrations, such as apps, Klaviyo, and tracking, do not receive the order this way.

The option does not cover credit notes, POS sales, or backdated orders, for example orders you move over from another system with their original date. A POS sale that is linked to a customer or an email address may, however, go through checkout and arrive as order_created in the usual way, regardless of the option.

For developers: data for an order from the API

With the option turned on, the order is sent when it is created with POST /order, which is also what Claude uses. The data has the field source with the value api, and basket_id is null, because the order has no basket:

{
  "event": "order_created",
  "action": null,
  "timestamp": "2026-12-01T09:15:00+01:00",
  "webshop_id": 1234,
  "data": {
    "event": "order_created",
    "time": 1796112900,
    "basket_id": null,
    "order_id": 56790,
    "source": "api"
  }
}

The order is only sent when it is created, not when it is later changed with PUT /order/{id}, and orders without order lines are not sent. An order created with POST /basket-order goes through checkout and is sent as a normal purchase without the source field, regardless of the option. If you create the order as paid, paid is sent too, but the order of delivery is not guaranteed, so paid can arrive before order_created. The option can only be turned on in the admin, not via the REST API.

Send the order again from the order page

If an order did not arrive, for example because it was created in the admin or as a copy, or because the receiver was down, you can send it directly from the order. The Webhooks card sits at the bottom of the right-hand column on the order page, with a line for each webhook that has something to send for the order, and a Send button next to it.

The order page for a paid order in Shoporama with order lines on the left and the Contact and Details cards on the right, and at the bottom of the right-hand column a red frame around the Webhooks card with a short explanation, the webhook's address, and the Send button
The Webhooks card shows the active webhooks that have something to send for the order. Click Send next to the webhook that should receive the order.

The card appears when the shop has at least one active webhook with something to send for that particular order: order_created, or paid when the order is paid. You need permission to edit orders, and the card is not shown on imported historical orders. It does not matter how the order was created, and the option for orders via the API does not need to be turned on. The card is not shown on credit notes and canceled orders, so they never reach the warehouse as a new order.

When you click Send:

  • The webhook receives order_created and, if the order is paid, paid as well. Only the events the webhook listens for are included. The data has "source": "manual", so the receiver can see that the order was sent from the admin.
  • The order is only sent to the webhook you click next to. Other webhooks, apps, and integrations receive nothing.
  • It is sent straight away, not queued. If the receiver is slow to respond, the page can take up to half a minute per event to load.
  • You land at the top of the order page, where a message tells you whether the receiver replied OK. If it replied with an error, the response is in the webhook's log.
  • The delivery appears in the webhook's log like any other. The action is recorded in the activity log as Order sent to webhook again, and the order gets a note under System Notes with the webhook's address, the events sent, and your name.

Use it for orders you created in the admin or as a copy, or for an order that did not arrive. It also works for orders older than 45 days, when the delivery is no longer in the log.

Be aware: Send sends the order even if the receiver already has it. Agree with your 3PL warehouse that they can handle receiving the same order twice, so you do not risk a double pick.

Webhook payload format

When an event is triggered, Shoporama sends an HTTP POST request to your URL with data in JSON format. All webhooks have the same structure:

{
  "event": "order_created",
  "action": null,
  "timestamp": "2026-05-01T10:30:00+02:00",
  "webshop_id": 1234,
  "data": {
    "event": "order_created",
    "time": 1777624200,
    "basket_id": 98765,
    "order_id": 56789
  }
}

The contents of the data field vary depending on the event. For product, stock, and category, the data object matches what the REST API returns for that object. For order and checkout events, the content is a smaller set of keys, typically order_id and basket_id, which you use to fetch the rest via the REST API. The action field is filled in on product, stock, and category events (create, update, delete, or status) and is null on all other events.

Worth knowing about the contents of data:

  • basket_id is null when the order does not come from a basket, for example when it was created in the admin or via the API. This also applies to paid.
  • The source field only appears on order events that do not come from checkout: api on order_created for an order created via the API, and manual when the order was sent with Send on the order page, however it was created. Checkout's own events do not have the field.
  • shipment_created and shipment_sent have order_shipment_id and order_id, and new_return has order_return_id.
  • customer_created contains the customer's details directly: customer_id, email, name, address, zipcode, city, phone, country_id, and created.

HTTP headers

Every webhook request includes these headers, which you can use for verification and routing:

  • Content-Type: application/json
  • X-Webhook-Event, the name of the event, for example order_created
  • X-Webhook-Signature, an HMAC SHA-256 signature in the format sha256=..., calculated from the request body and the webhook's secret key

Verify the signature

If you want to be sure that the request actually comes from Shoporama, verify the X-Webhook-Signature header with the webhook's secret key, which you will find in the Secret field when you edit the webhook in the Shoporama admin. Example in PHP:

$payload = file_get_contents('php://input');
$expected = 'sha256=' . hash_hmac('sha256', $payload, $secret);
if (!hash_equals($expected, $_SERVER['HTTP_X_WEBHOOK_SIGNATURE'])) {
    http_response_code(401);
    exit;
}

Response from your receiver

Your receiving service must respond with HTTP status 2xx (typically 200) to confirm receipt. Other status codes are logged as errors, and you can resend failed deliveries from the log page.

Using webhooks

Typical uses for webhooks:

  • 3PL warehouse integration: automatically send new orders to your third-party logistics (3PL) warehouse, for example on paid. Also listen for new_status and order_withdrawn, so the warehouse is notified when an order is canceled or the customer withdraws from the purchase. paid is sent for all orders when they are marked as paid, including those you create in the admin, while order_created only covers checkout purchases and, with the option for orders via the API, orders created via the API or with Claude. You can also send a single order with Send on the order page
  • Slack/Teams notification: get notified about new orders in your channel on order_created
  • Stock sync: update an external system when stock fires
  • CRM sync: create the customer in Klaviyo, ActiveCampaign, or your own CRM on customer_created
  • Automation: trigger workflows in Zapier, Make, or similar tools

Tip: Use webhook.site to test your webhooks before you implement your final receiver. You get a unique URL where all incoming requests are shown live.

Logs and resending

For each webhook you can see a log of all deliveries (response codes, duration, payload, and errors). You can filter by event type, status, and date. Failed deliveries can be resent manually with one click. An order that was never sent to the webhook is sent with Send on the order page instead. Logs are cleaned up automatically on an ongoing basis.

Troubleshoot failed webhooks in the log

When an integration suddenly stops receiving its data, the webhook log is the first place to look. The log stores every single outgoing call, both those that succeeded and those that failed, together with the exact response Shoporama received. You open it by going to Integrations and Webhooks in the left menu and clicking Logs next to the webhook you want to investigate.

Start with the four key figures

As soon as at least one call has been recorded, four figures appear at the top of the log page, all for the last 30 days:

  • Calls (30 days), how many times Shoporama has tried to call your URL
  • Success rate, the share of calls that received a 2xx response
  • Avg. response time, the average response time in milliseconds
  • Error, the number of calls that did not succeed

The success rate is also shown in the webhook list itself, in the Success rate (30 days) column, so you can see right away if something is wrong without opening each webhook. The badge is green from 90 percent and up, yellow between 50 and 90 percent, and red below 50 percent. A success rate that has dropped from 100 to 0 almost always means that the receiver has moved, been shut down, or tightened its security.

Filter down to the failed calls

Below the key figures is the log itself, with one line per delivery attempt and the columns Time, Event, Status, Duration, and Error. The status badge is color-coded, so you can skim the page:

  • Green, the response code is in the 2xx range, and the delivery succeeded
  • Orange, the response code is in the 400 range, so your receiver responded but rejected the call
  • Red, everything else, meaning server errors in the 500 range or status 0

Set the Status filter to Error and click Filter. The table then shows only the calls that did not go through. You can also narrow it down by event and by a period using the From and To fields, which is useful if you want to see whether the problem started at a specific time. The log shows 50 lines at a time, and you page through them at the bottom of the page.

Open Log details for a single call

Click the eye icon on the right side of the line to open the Log details window with the full story of that particular call:

  • Event, Status, Duration, and Time at the top
  • Error Message, which is only shown if Shoporama could not connect to your server at all
  • Request payload, the exact JSON that was sent
  • Request headers, the headers that were included, including the calculated signature
  • Response body, what your server sent back

The response body is usually the most valuable field when the status is a 400 or 500 code. Most systems write the actual cause in the response, for example that a field is missing, that a key has expired, or that the order already exists. The field is only shown if your server actually sent content back, and very long responses are truncated.

If you suspect that the call is being blocked along the way by a firewall or a WAF, ask whoever runs the server to look for calls with a User-Agent header that starts with Shoporama Webhook. If they can see the call in the server log, the problem is on the receiving end. If they cannot, the call is being stopped before it arrives.

Status 0 means the call never arrived

If the Status column shows 0, Shoporama never received an HTTP response. That means there is no response code to show, and the Error Message field is filled in instead. The four typical causes are:

Error message What is wrong How to fix it
Could not resolve hostThe domain in the webhook URL cannot be looked up in DNSCheck the URL for typos, and check that the domain still exists and points somewhere
SSL certificateThe certificate on your receiver cannot be verified because it has expired, is self-signed, or is missing intermediate certificatesRenew the certificate, and make sure the server provides the full certificate chain
Connection refused or Failed to connectNo server is listening on the address and port, or a firewall is blocking the callCheck that the service is running and that the call is not being blocked by a firewall or WAF
Operation timed outYour receiver did not respond in timeRespond with 200 immediately, and move the heavy work to a background process on your end

Use Send test once you have fixed something

The Send test button at the top of the log page sends a call with the test.ping event to the URL the webhook points to. The result appears in the log right away, exactly like a real delivery, so you can open Log details and see what happened. Use it every time you have changed something on your end, instead of waiting for a real order to come in.

Resend a failed delivery

Once the error is fixed, you can resend the deliveries that failed in the meantime. Click the resend icon, the circular arrow at the far right of the log line, and Shoporama sends the original data to the same URL again. Three things are worth knowing:

  • Resending creates a new line in the log. The original line stays with its error, so you can always see the whole sequence of events.
  • The signature and timestamp are recalculated. X-Webhook-Signature therefore still matches, but timestamp in the payload shows the time of the resend, not the time of the original event.
  • The content itself is a snapshot from the time the event occurred. If the order has changed since then, the resend sends the old version. If you need the current data, fetch it via the REST API instead.

Resend can only send a delivery that was actually sent and appears in the log. If the order was never sent to the webhook, for example because it was created in the admin, use Send on the order page instead.

Be aware: If the webhook is set to Inactive, nothing happens when you click Resend or Send test. No new line appears in the log either, even though the confirmation at the top says the webhook was sent. Set it to Active under Edit first.

Does Shoporama retry automatically?

No. Each event results in exactly one delivery attempt. If your receiver does not respond, or responds with an error code, the attempt is written to the log, and nothing more happens. There is no automatic retry after a minute, an hour, or a day. If you want the delivery sent again, you have to click Resend in the log or Send on the order page yourself.

Shoporama waits at most 10 seconds to connect to your server, and at most 30 seconds in total for a response. If your receiver is slow, the delivery can therefore count as failed, even though your system managed to process it.

This places three requirements on whoever builds the receiver:

  1. Respond quickly. Send 200 back immediately and store the content on your end. Process it afterward, so heavy lookups or a slow third party do not cause the delivery to fail.
  2. Handle duplicates. Both a resend and an event that is triggered several times can result in the same call arriving twice. Your receiver must be able to recognize that the order has already been processed, instead of creating it again.
  3. Build a safety net. A couple of times a day, fetch anything you may have missed via the REST API, so a single outage does not cost you orders. You can find or create the key using the guide find or create an API key.

How long are log entries kept?

The webhook log keeps each delivery for 45 days, after which the entry is deleted automatically. This is also stated at the bottom of the log page. The cleanup happens automatically, and you do not need to do anything.

In practice, this means two things. First, you can only resend deliveries that are less than 45 days old. If you only discover next quarter that an integration has been dead, the old entries are gone, and you will have to fetch the data via the REST API instead. You can, however, send a single order again with Send on the order page. Second, the key figures at the top of the page only cover the last 30 days, so an error that stopped two months ago no longer affects your success rate.

If you need to be able to document deliveries further back, for example to an auditor or a business partner, store them in your own system when you receive them. Shoporama's log is meant as a troubleshooting tool, not an archive.

Frequently asked questions

Where do I find the webhook list?

Go to Integrations in the left menu of your Shoporama admin and click Webhooks. You can also read our guide on how to view the webhooks set up in your store.

How quickly does the webhook arrive?

Webhooks are queued and sent automatically in the background, typically within a minute. During peak load it can take a few minutes, so do not count on a webhook arriving in the same second the event occurs. Send on the order page, Send test, and Resend in the log, on the other hand, are sent straight away.

Is there an "order_sent" event?

No. There is no separate event for "shipped". When you mark an order as shipped, new_status is triggered. The payload only contains order_id and not the status itself, so listen for the event and fetch the order via the REST API to see what it has changed to. If you ship the order in several parcels, shipment_sent is also sent for each parcel.

Should events be written with periods or underscores?

Underscores. Correct: order_created. Incorrect: order.created. The only event with a period is test.ping, which is used for test deliveries.

Can I listen for several events in the same webhook?

Yes. Simply select several events when you create or edit the webhook. Use the X-Webhook-Event header or the event field in the payload to tell them apart in your receiver.

What happens if my server is down?

The delivery is logged as failed. You can resend it manually from the log page, or send the order with Send on the order page, once your server is back up. We do not retry automatically, so design your receiver to tolerate a delivery occasionally not arriving, and fetch missing orders via the REST API as a backup.

How do I know it is really Shoporama calling?

Verify the X-Webhook-Signature header with your webhook's secret key. You will find it in the Secret field when you edit the webhook. Compare the header with an HMAC SHA-256 of the received body. If the two do not match, reject the request.

Can I use webhooks together with the REST API?

Yes, and it is often a good idea. Use webhooks to get notified, and use the REST API to fetch full data or perform actions based on the event.

How many webhooks can I create?

There is no hard limit in Shoporama. Create as many as you need, but clean up the webhooks you no longer use, so you avoid unnecessary traffic to URLs that have been shut down.

The success rate on my webhook has dropped to 0. What should I do first?

Open Logs on the webhook, set the Status filter to Error, and open the newest line with the eye icon. If the Status shows 0, the connection is the problem, and the Error Message field tells you why. If it shows 401, 403, or 404, the receiver responded but rejected the call, and the explanation is usually in the Response body. Once you have fixed the error, click Send test to check that it works, and then Resend on the deliveries that failed in the meantime. If you do not understand the error message, take a screenshot of Log details and send it to whoever built the integration, or write to support@shoporama.dk.

My URL works fine in the browser, but the log shows an SSL error. What is wrong?

Shoporama validates the certificate on your receiver and accepts neither self-signed certificates nor an incomplete certificate chain. Browsers are more forgiving, because they can fetch missing intermediate certificates from elsewhere on their own, which is why the same URL can look perfectly fine in a browser. Ask whoever runs the server to check that the full chain is provided and that the certificate has not expired.

My 3PL warehouse did not receive the order. Can I send it again?

Yes. Open the order, find the Webhooks card at the bottom of the right-hand column, and click Send next to the warehouse's webhook. This also works for orders that were never sent, for example because you created them in the admin, and for orders older than 45 days. Resend in the webhook's log is still an option for deliveries less than 45 days old. Agree with the warehouse that they can handle receiving the same order twice, so you do not risk a double pick.

Why did my 3PL warehouse not receive the order I created with Claude?

Because Claude creates the order via the API, and by default order_created is only sent for checkout purchases. Make sure the warehouse's webhook listens for order_created, and turn on Also send order_created for orders created via the API, so future orders are included. Send the order that has already been created with Send on the order page.

I created an order in the admin. Will my 3PL warehouse receive it?

Not as order_created, not even with the option, which only covers orders created via the API or with Claude. If the warehouse's webhook listens for paid, it receives the order when it is marked as paid. Otherwise, send it yourself with Send in the Webhooks card on the order.

Why can I not see the Webhooks card on my order?

The card only appears when the shop has an active webhook that listens for order_created, or one that listens for paid when the order is paid. You also need permission to edit orders, and the card is not shown on imported historical orders. Credit notes and canceled orders do not have the card. The card is on the order itself, not on the page where you edit it.

How do I prevent my 3PL warehouse from shipping an order the customer has withdrawn from?

Check order_withdrawn and new_status on the webhook that sends orders to the warehouse, and turn on automatic cancellation of withdrawn orders. A withdrawn order that has not been shipped is then canceled immediately, and the warehouse is notified. Ask the warehouse whether they stop the order when the notification arrives.

Will I be notified if a webhook stops working?

No, Shoporama does not send a warning on its own. However, the success rate for the last 30 days is shown directly in the webhook list, and the badge turns red as soon as fewer than half of the calls succeed. If you run several stores, it is a good habit to look through the list once a week, or to have your own receiver raise an alarm if it has not heard from a store in 24 hours.

Need help? Contact us at support@shoporama.dk.