HelperStable

Fetch checkout session

Loads the checkout session identified by its ID and exposes a hydrated `platform.checkout_session` for subsequent process steps.

Checkout session · ID
Fetch checkout session
Chargement canonique
Checkout session

Overview

fetch_checkout_session turns an ID reference into a checkout session that can be used directly in typed bindings.

Example

An event or API call only provides the identifier of a checkout session. Load the object before reading its properties or passing it to a node that expects platform.checkout_session.

Parameters 1

checkout_session_idRequiredref(checkout_session)
Identifier of the checkout session to load. Use this node when an ID is available but later steps need the typed platform object.

Outputs 1

checkout_sessionCheckout session
Checkout session returned as the current platform.checkout_session, with its ID and fields exposed by the platform contract.

Behavior

Resolve the identifier

The node uses the ID supplied in checkout_session_id within the instance merchant's scope.

Load the resource

Ormuz reads the corresponding canonical resource and verifies that it is accessible within this scope.

Expose the typed object

The output checkout_session becomes available to downstream node bindings.

Limits and responsibilities

  • This node does not create or modify the checkout session; it only loads it.
  • If you already have a sufficiently recent platform.checkout_session object, another fetch is usually unnecessary.
  • A missing, unknown, or out-of-scope ID causes the node to fail; there is no implicit not_found route.