Symptoms
- Your endpoint receives a
store/order/createdorstore/order/statusUpdatedcallback, but thedataobject holds only"type": "order"and anid, plus astatusobject on status events. There are no line items, totals, addresses or customer details. - Your integration tries to read products, prices or a shipping address straight from the webhook body and gets empty values or errors.
- Orders reach your ERP, warehouse or CRM missing lines, or with half the lines on a large order.
- Records appear downstream for checkouts the shopper never finished, often with a failed or unprocessed payment.
Cause
This is how BigCommerce webhooks are designed. The events reference describes the data field as "a lightweight description of the event", and its contents vary by event. An order event tells you which order changed, not what the order contains. You are expected to call the API for the details.
Two related causes often show up together:
- The event fires before the order is ready. BigCommerce documents that
store/order/createdalso fires for incomplete orders, including failed payment and payment not processed orders. An integration that imports on that event can pick up orders that never complete. - The follow-up call returns references, not content. The Get an Order response returns
products,shipping_addressesandcouponsas objects with aurlandresourceyou have to call next. The order products endpoint returns 50 lines by default, so large orders need paging.
Resolution
- Treat the webhook as a notification only. Return a 200 response quickly, then queue the order ID for processing. The webhooks overview says to respond before doing anything that would slow the response. No response, or any response outside the 200 range, counts as a failed delivery and starts retries.
- Fetch the order. Call
GET /stores/{store_hash}/v2/orders/{order_id}. You can addinclude=consignments.line_itemsto get consignments with their line items in the same response. BigCommerce marks the default array structure for consignments as legacy, so pair it withconsignment_structure=object. See Get an Order. - Fetch the sub-resources you need. If you do not use
include, call/v2/orders/{order_id}/productsand/v2/orders/{order_id}/shipping_addresses, plus shipments or/v3/orders/{order_id}/transactionsif your workflow uses them. On the products call, usepageandlimituntil every line is read. - Check the status before you act. Read
status_idfrom the order you fetched, not from the event. Status 0 is Incomplete, meaning the shopper reached the payment page but did not finish. Many integrations wait for a confirmed status such as 11 (Awaiting Fulfillment), which BigCommerce describes as checkout complete and payment confirmed. The right status depends on your payment methods and fulfillment flow. List the status IDs and names withGET /v2/order_statuses. - Subscribe to the event that matches your trigger. If you only care about orders that reach a certain state,
store/order/statusUpdatedis a better trigger thanstore/order/created. It fires only when the status changes and includesprevious_status_idandnew_status_id. - Make processing idempotent. BigCommerce notes that duplicate callbacks can occur. Keep a record of handled event
hashvalues or order IDs plus status, and skip work you have already done. - Verify the fix. Place a test order with several lines and a shipping address, and confirm it arrives downstream complete. Then start a checkout and abandon it at payment. Confirm the incomplete order is skipped or held, and that it imports correctly if it later reaches your chosen status.
How to prevent it
- Write your webhook handler to accept the ID, queue it and return a 2xx. Keep the API calls in a separate worker.
- Always rebuild the order from the API at processing time, since the order may have changed between the event and your call.
- Log the event
scope, order ID,status_idand number of lines fetched for each import. That makes partial imports easy to spot. - Watch your API call volume. Each event can turn into several calls, so busy periods can push a connector toward API rate limits.
B2B and ERP considerations
ERP connectors usually need the full order, including every line, the ship-to address and payment state, before they create a sales order. Importing on store/order/created without a status check is a common source of phantom sales orders and of orders that have to be voided in the ERP later. B2B orders also tend to have more lines, so the 50-line default on the products endpoint matters more.
If you run several storefronts, read channel_id on the fetched order so each order routes to the right company, warehouse or price book. If you carry PO numbers or delivery notes in customer_message or staff_notes, read them from the fetched order too. They are not in the webhook body.
Related problems to check
- A webhook creates duplicate orders or fulfillment actions
- Webhooks stop arriving
- Card payment fails and the order remains incomplete
Related articles
- A webhook creates duplicate orders or fulfillment actions
- An order update adds a second product line
- Webhooks stop arriving
- Card payment fails and the order remains incomplete
- A connector or import job hits API rate limits
More in the BigCommerce knowledge base, including every article on Integrations and account operations.