Cart API and Session Lifecycle

Punchout runtime depends on context tokens and a deterministic session lifecycle.

Tokenized cart API

The module provides token-bound operations to:

  • add cart items
  • update quantities
  • remove items
  • read current cart state

This supports external procurement-driven cart orchestration.

Session context lifecycle

Each Punchout process tracks context state, including token, correlation, buyer reference, and lifecycle status.

Why this matters

A dedicated context lifecycle prevents session mix-ups between Punchout and standard storefront behavior and improves process reproducibility.

Found an issue with this documentation? Let us know