HelperStable

Get payment allocations

Loads allocations of the payment or document from a platform object already available in the process.

payment or commercial document
Get payment allocations
Business relationship
payment allocations

Overview

get_payment_allocations follows a canonical Ormuz relationship instead of requiring the designer to carry or rebuild technical identifiers between objects.

Example

The process has a payment or commercial document and must work with its payment allocations. The node resolves the relationship from the source object and returns directly usable platform objects.

Parameters 3

resourceRequiredPayment
Source object payment or commercial document whose relationships the node must resolve. The type must be payment, psp_payment, supplier_payment, invoice, supplier_invoice, order, or purchase_order; credit notes are recognized automatically.
statusOptionalenum
Optional filter on the business status of returned resources.
limitOptionalinteger
Maximum number of resources returned by this read. Use has_more to determine whether additional results exist.

Outputs 3

payment_allocationsPayment allocation[]
Payment allocations currently linked to the source under the configured filters.
countinteger
Number of payment allocations present in this output.
has_moreboolean
Indicates whether more payment allocations exist beyond the returned page.

Behavior

Results are sorted newest first, with stable ordering for identical dates. Default limit is 20 and maximum is 100. An allocation covering several documents is returned in full, with all its lines, exactly once.

Validate the source

The node requires an addressable payment or commercial document with an ID. Supported source types are payment, psp_payment, supplier_payment, invoice, supplier_invoice, order, or purchase_order; credit notes are recognized automatically.

Resolve the relationship

Ormuz looks up the payment allocations linked by the business relationship and the configured filters.

Expose the results

The payment allocations become available to downstream bindings, with has_more when the read is intentionally bounded.

Limits and responsibilities

  • The node neither creates nor modifies linked resources; it reads an existing relationship.
  • An empty collection is a valid result when the relationship currently contains no object.
  • The read is bounded by limit; when has_more is true, this output does not represent exhaustive history.