LostChurn Docs
Integrations

BigCommerce Integration

Connect BigCommerce to LostChurn for automatic failed payment recovery.

The BigCommerce integration is live. Install the LostChurn app from the BigCommerce App Marketplace or connect via Settings > Integrations in your LostChurn dashboard.

BigCommerce is a leading SaaS ecommerce platform that supports recurring orders and subscription billing through its native tools and third-party apps. LostChurn connects to BigCommerce via OAuth and processes webhook events to add Smart Retry Engine and dunning capabilities for failed payments.

Prerequisites

  • An active BigCommerce store (any plan)
  • Store Owner or Admin access to your BigCommerce Control Panel
  • A LostChurn account with at least one workspace created

App Installation

BigCommerce App Marketplace

  1. In your BigCommerce Control Panel, navigate to Apps > Marketplace.
  2. Search for LostChurn in the App Marketplace.
  3. Click Get This App, then Install.
  4. BigCommerce redirects you to LostChurn to complete the OAuth authorization flow.
  5. Review the requested permissions and click Authorize.
  6. You are redirected back to your LostChurn dashboard with the BigCommerce connection confirmed.

Manual Installation

If you prefer to connect manually:

  1. In your LostChurn dashboard, go to Settings > Integrations and click Connect BigCommerce.
  2. Enter your BigCommerce Store Hash (found in your store URL: store-{hash}.mybigcommerce.com).
  3. Click Authorize. You are redirected to BigCommerce to grant LostChurn access.
  4. Review the requested permissions and click Confirm.

OAuth Setup

LostChurn requests the following OAuth scopes during installation:

ScopePermissionPurpose
store_v2_ordersRead and WriteRead order data, update order status after recovery
store_v2_customersReadAccess customer details for dunning communications
store_v2_transactionsReadRead payment transaction details and decline codes
store_v2_productsReadRead product and subscription metadata
store_v2_informationReadRead store settings for timezone and currency

OAuth tokens are securely stored and automatically refreshed. LostChurn never stores your BigCommerce password.

Webhook Configuration

During installation, LostChurn automatically registers the following webhooks with BigCommerce:

Webhook ScopeEndpoint
store/order/paymentStatusChangedhttps://webhooks.lostchurn.com/v1/bigcommerce
store/order/statusUpdatedhttps://webhooks.lostchurn.com/v1/bigcommerce
store/order/createdhttps://webhooks.lostchurn.com/v1/bigcommerce
store/customer/updatedhttps://webhooks.lostchurn.com/v1/bigcommerce

All webhook payloads include the X-BC-Webhook-Signature header. LostChurn verifies the HMAC-SHA256 signature on every incoming request using your store's webhook secret.

Supported Events

BigCommerce EventLostChurn Action
Order payment failedCreates a failed payment record, triggers retry evaluation
Order payment capturedMarks recovery as successful, stops active dunning
Order refundedRecords refund for revenue reporting
Order status changed to CancelledRecords churn event, triggers reactivation campaign if configured
Customer payment method updatedTriggers immediate retry of pending failures on updated payment method

API Integration

LostChurn uses the BigCommerce REST API (V2 and V3) to:

  • Read order details: Fetch order metadata, line items, and payment information when a failure event is received.
  • Initiate retries: Trigger payment re-attempts through the BigCommerce Payments API.
  • Update order status: Mark orders as recovered or write internal notes after successful retries.
  • Fetch customer data: Retrieve customer email, name, and locale for personalized dunning messages.

Payment Retry Flow

  1. LostChurn receives a payment failure webhook from BigCommerce.
  2. The decline code is extracted from the transaction record via the Transactions API.
  3. LostChurn determines the optimal retry strategy based on the decline code and historical data.
  4. At the scheduled retry time, LostChurn calls the BigCommerce Payments API to re-attempt the charge.
  5. On success, the order status is updated and dunning stops. On failure, the next retry is scheduled.

Verify Connection

  1. In your LostChurn dashboard, navigate to Settings > Integrations.
  2. The BigCommerce card should show a green Connected badge.
  3. To send a test event, create a test order in your BigCommerce store using a test payment method that simulates a decline.
  4. Navigate to Events in your LostChurn dashboard and confirm the failure event appears.

Provider-Specific Notes

Multi-Storefront

BigCommerce supports multiple storefronts under a single store. LostChurn processes events from all storefronts through the unified webhook system. Events are tagged with the originating storefront channel ID for filtering in analytics.

Subscription Apps

If you use a third-party subscription app on BigCommerce (such as Recharge or PayWhirl), LostChurn receives payment failure events through BigCommerce's unified order system. For deeper subscription lifecycle tracking, consider also connecting the subscription app directly if LostChurn supports it.

API Rate Limits

BigCommerce enforces API rate limits based on your plan:

  • Standard: 150 requests per window
  • Plus: 200 requests per window
  • Pro/Enterprise: 400+ requests per window

LostChurn monitors the X-Rate-Limit-Requests-Left header and throttles requests accordingly. If you consistently approach your rate limit, contact LostChurn support to optimize request batching.

Sandbox Stores

BigCommerce sandbox stores are fully supported. LostChurn detects sandbox connections and labels events accordingly, keeping test data separate from production analytics.

On this page