BigCommerce Troubleshooting

A webhook creates duplicate orders or fulfillment actions

Webhook retries or overlapping subscriptions repeat order and shipment writes; return HTTP 200 fast, queue the work and make writes idempotent.

Last updated · Integrations and account operations · Applies to: BigCommerce webhooks (store/order/*, store/shipment/*) and apps or ERP connectors that consume them

Symptoms

  • The same BigCommerce order appears twice in your ERP, OMS or warehouse system.
  • A shipment, fulfillment request or label is created more than once for one order.
  • A customer receives two shipping or confirmation emails sent by your own system, not by BigCommerce.
  • Your webhook logs show the same event (same scope and data.id) arriving several times, sometimes minutes or hours apart.
  • Duplicates cluster around busy periods, deployments or slow downstream calls.

Cause

BigCommerce counts a webhook as delivered only when your endpoint returns an HTTP 200. If it does not get that response, it retries on a schedule. Its webhooks overview lists retries at 60, 180, 300, 600, 900, 1800, 3600, 7200, 21600, 50400 and 86400 seconds, and deactivates the webhook after the final retry, about 48 hours after the first attempt. BigCommerce does not publish a response timeout, but developers have reported retries even when a 200 was eventually sent after lengthy processing. If your handler does the real work (creating the order downstream, calling a carrier) before it responds, the work can finish, a retry can arrive anyway, and the work runs again.

BigCommerce also says duplicate callbacks can occasionally happen for various reasons, even when your endpoint responds correctly. A receiver that is not idempotent will eventually create duplicates.

Two other common causes:

  • Overlapping subscriptions. According to the webhook events reference, store/order/updated fires for any change to an order, including a status change, while store/order/statusUpdated fires when the status changes. If you subscribe to both, or to store/order/* plus a specific scope, one status change can reach your handler twice.
  • Early order events. store/order/created also fires for incomplete orders. If your code creates the downstream order on created and again when the status moves to a paid or awaiting-fulfillment status, you get two records.

Resolution

  1. List your webhook subscriptions. Call GET /stores/{store_hash}/v3/hooks with each app's credentials and look for duplicate or overlapping scopes pointing at the same destination. Delete the extras, or set is_active to false, so each business event has one subscription. The list only covers hooks owned by the app whose credentials you use, so also check whether a second app or an old connector is subscribed to the same events.
  2. Respond first, process later. Change the handler so it validates the request, writes the payload to a durable queue or table, returns HTTP 200 with no body, and stops. BigCommerce recommends sending the 200 immediately and not returning bodies or headers. A separate worker then does the downstream work.
  3. Drop exact redeliveries. Each callback carries a hash. BigCommerce suggests keeping a list of hashes you have handled and ignoring events whose hash you have already seen. Store the hash with a unique constraint so two workers cannot both claim it.
  4. Make the business write idempotent. A hash check alone does not catch overlapping scopes or a created event followed by a status change, because those are different events. Key every downstream write on a stable business identifier, such as the BigCommerce order ID for an order, or order ID plus shipment ID for a fulfillment. Before creating, check whether a record with that key already exists, and update it instead of inserting a new one. Use a unique index in the target system where possible.
  5. Act on one status. Decide which order status triggers export or fulfillment, and read it from data.status.new_status_id on statusUpdated or by fetching the order. Skip incomplete orders. Webhook payloads are minimal, so fetch the full order from the Orders API before writing it downstream.
  6. Clean up existing duplicates. Reconcile your downstream records against BigCommerce order IDs and cancel or merge the extra ones before they ship. Do this by hand or with a reviewed script, since removing the wrong copy can lose payment or shipment data.
  7. Verify the fix. In a sandbox or test store, send the same captured payload to your endpoint several times, then trigger one status change. Confirm your endpoint returns 200 quickly, each delivery is logged, and only one order or shipment exists downstream.

If duplicates continue after these steps, collect the endpoint logs (timestamps, status codes, response times, hashes) and the subscription list before contacting BigCommerce support or your connector vendor.

How to prevent it

  • Treat every webhook as "at least once" and design for repeats from the start.
  • Keep the handler's response path short, and monitor its response time and error rate. If the success ratio for an app drops below 90% in a two-minute window, BigCommerce blocklists that app's destination for three minutes, which delays deliveries. See webhooks stop arriving.
  • Run a periodic reconciliation job that compares recent BigCommerce orders with your ERP, so a missed or duplicated event is caught within hours.

B2B and ERP considerations

ERP connectors often post orders into systems that do not reject duplicates on their own, and a duplicated sales order can reserve stock twice or produce two invoices. Store the BigCommerce order ID on the ERP document, in a reference or external ID field, and check it before posting. If several storefronts or stores feed one ERP, include the store hash in the key so order IDs from different stores never collide. Connectors that also poll the API should use the same key, so a polled order and a webhook-triggered order resolve to one record.

More in the BigCommerce knowledge base, including every article on Integrations and account operations.