HelperStable

Fetch invoice

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

Invoice · ID
Fetch invoice
Chargement canonique
Invoice

Overview

fetch_invoice turns an ID reference into a invoice that can be used directly in typed bindings.

Example

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

Parameters 1

invoice_idRequiredref(invoice)
Identifier of the invoice to load. Use this node when an ID is available but later steps need the typed platform object.

Outputs 1

invoiceInvoice
Invoice returned as the current platform.invoice, with its ID and fields exposed by the platform contract.

Behavior

Resolve the identifier

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

Limits and responsibilities

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