Skip to main content
API: Session ID Passing
Tyson Caly avatar
Written by Tyson Caly
Updated this week

Overview

If you’ve built a website and integrated the Offset Commerce Cart API, you can use the Session ID Passing feature that allows customers to build a cart on your marketing site and seamlessly transfer it to the Offset Commerce subdomain to complete checkout. This feature enhances the open cart purchasing experience by enabling customers to continue their shopping journey without interruption.

Key Points

  • Session Transfer:

    • When a customer builds a cart on your marketing site, the session ID can be passed to the Offset Commerce subdomain.

    • The session ID will generate a final cart on the Offset Commerce site with the preloaded items, allowing the customer to proceed to checkout seamlessly.

  • Session URL:

    • Use the following URL format to load a session:

    • https://subdomain.yourdomain.com/cart/load-session/<session_id>/

  • Session Continuity:

    • A built-in check ensures that if a session is already in use, it will simply do nothing, allowing users to move back and forth between the marketing site and the Offset Commerce site.

    • Customers can continue to add items or adjust quantities, maintaining the same session.

  • Cart Expiration:

    • The session will be cleared after the predefined timeout period of inactivity, as specified by the Cart Expiration settings, or if you pass over a Delete Session command.

  • Users:

    • This feature does not support active logged in sessions. When you initiate the session ID passing process, a user will be automatically logged out if they are logged in. The important detail is that the session you load can't be logged in.

    • Users can log in to gain access to any saved addresses and billing information during the checkout process.

    • If the user does not have an account, they will have the ability to create one during the checkout process.

    • Note: A user is automatically logged out after 60 minutes of inactivity.

Did this answer your question?