Configure B2B Checkout Time to Live with APIs

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.

      https://examplestore.lightning.force.com/lightning/r/WebStore/0TERR00000004XG4AY/view

  2. After you have your store ID, use the WebStore object to configure TTL.

  3. Update the WebStore object.

    • CheckoutTimeToLive is the number of minutes that the checkout stays active. If you enter Null, the checkout never expires. If you enter 0, checkout is disabled. The default number of minutes is 2880 (48 hours).
    • CheckoutValidAfterDate is a timestamp in the default server timezone (GMT). Example format: 2020-07-14T14:27:00.000Z. If a checkout starts before this date, it’s considered expired. A Null value means all checkouts are valid.