BigCommerce Troubleshooting

An order webhook does not contain all order data

Order webhooks send only the order ID and event details; fetch the full order and its lines from the Orders API and act only once the order reaches the right status.

Last updated · Integrations and account operations · Applies to: All BigCommerce plans; apps and integrations subscribed to store/order/* webhooks

Symptoms

  • Your endpoint receives a store/order/created or store/order/statusUpdated callback, but the data object holds only "type": "order" and an id, plus a status object 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/created also 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_addresses and coupons as objects with a url and resource you have to call next. The order products endpoint returns 50 lines by default, so large orders need paging.

Resolution

  1. 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.
  2. Fetch the order. Call GET /stores/{store_hash}/v2/orders/{order_id}. You can add include=consignments.line_items to get consignments with their line items in the same response. BigCommerce marks the default array structure for consignments as legacy, so pair it with consignment_structure=object. See Get an Order.
  3. Fetch the sub-resources you need. If you do not use include, call /v2/orders/{order_id}/products and /v2/orders/{order_id}/shipping_addresses, plus shipments or /v3/orders/{order_id}/transactions if your workflow uses them. On the products call, use page and limit until every line is read.
  4. Check the status before you act. Read status_id from 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 with GET /v2/order_statuses.
  5. Subscribe to the event that matches your trigger. If you only care about orders that reach a certain state, store/order/statusUpdated is a better trigger than store/order/created. It fires only when the status changes and includes previous_status_id and new_status_id.
  6. Make processing idempotent. BigCommerce notes that duplicate callbacks can occur. Keep a record of handled event hash values or order IDs plus status, and skip work you have already done.
  7. 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_id and 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.

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