Configure B2B Checkout Time to Live with Developer Console

You can put a time limit on an active checkout to prevent users from checking out with outdated information.

Required Editions
Available in: Enterprise, Unlimited, and Developer Editions
Required Editions
Available in: B2B Commerce
  1. Locate your commerce store ID.

    1. Navigate to the Commerce app and select your store.

    2. In the URL, find your store ID.

      In this example, the store ID is the string of numbers and letters before /view.

    3. From Developer Console, select Query Editor.

    4. Copy the following SOQL query to the Query Editor panel, and replace storeID with the 15- or 18-digit Salesforce ID of the store.

    5. Click Execute.

    6. Double-click the value in the CheckoutTimeToLive column, and enter the number of minutes that the checkout stays active. The default number of minutes is 2880 (48 hours). The maximum value for CheckoutTimeToLive is 525600 minutes (365 days).

    7. Double-click the value in the CheckoutValidAfterDate column, and enter a date. If a checkout starts before this date, it’s considered expired. Example format: 2020-07-14T14:27:00.000Z

    8. Click Save Rows.