HelperStable

Fetch purchase order

Loads the purchase order identified by its ID and exposes a hydrated `platform.purchase_order` for subsequent process steps.

Purchase order · ID
Fetch purchase order
Chargement canonique
Purchase order

Overview

fetch_purchase_order turns an ID reference into a purchase order that can be used directly in typed bindings.

Example

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

Parameters 1

purchase_order_idRequiredref(purchase_order)
Identifier of the purchase order to load. Use this node when an ID is available but later steps need the typed platform object.

Outputs 1

purchase_orderPurchase order
Purchase order returned as the current platform.purchase_order, with its ID and fields exposed by the platform contract.

Behavior

Resolve the identifier

The node uses the ID supplied in purchase_order_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 purchase_order becomes available to downstream node bindings.

Limits and responsibilities

  • This node does not create or modify the purchase order; it only loads it.
  • If you already have a sufficiently recent platform.purchase_order 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.