Payments in Stack v4.0 (upcoming)
Stack v4.0 (upcoming) does not include Payments. Connectivity takes over bringing provider activity into the stack, and records it directly in Ledger. See what each Payments feature becomes
A payment initiation is your stack's instruction to a connector to
move funds — either between two internal accounts at the provider
(TRANSFER) or out to an external account such as a bank account
(PAYOUT). The initiation is a Payments-side record with its own
lifecycle that the platform resolves against the connector's
CreateTransfer / CreatePayout workflow, then against the provider's
asynchronous status updates, until it links to a settled
Payment.
This page documents the v3 surface (/api/payments/v3/payment-initiations).
The legacy v2 transfer-initiation endpoints are still served for backward
compatibility on stacks that pin Payments < 3.0 — they use the same
state machine and a near-identical shape.
Lifecycle#
A payment initiation moves through six states:
- WAITING_FOR_VALIDATION — initial state when the create request
passes
validated: false. The platform parks the initiation; nothing is sent to the connector yet. - PROCESSING — either the platform sent the create request straight
through (
validated: trueon create, orapproveon a parked one), or it's retrying a previously failed one. The connector'sCreateTransfer/CreatePayoutworkflow is in flight. - PROCESSED — the connector returned a settled payment. The
initiation is linked to a
Paymentviav3ListPaymentInitiationRelatedPayments. - FAILED — the connector returned a terminal error. The full error body is on the latest adjustment. Retryable per §Retrying.
- REJECTED — the initiation was rejected from
WAITING_FOR_VALIDATION. Terminal. - REVERSE_PROCESSING / REVERSED — a
v3ReversePaymentInitiationcall is in flight or has been confirmed by the connector.
Listing initiations carries the current status; the full transition log
is on v3ListPaymentInitiationAdjustments.
Listing payment initiations#
Reading a single initiation#
The id is the platform-assigned UUID returned by v3InitiatePayment.
The reference is the caller-supplied idempotency key — typically
echoed downstream on the resulting Payment so you can resolve one from
the other (see Correlation).
Creating a payment initiation#
Required fields:
| Field | Type | Purpose |
|---|---|---|
reference | string | Caller-supplied unique key. Sent to the connector as the upstream Idempotency-Key when the connector supports one; retries with the same reference return the original initiation. |
connectorID | string | The connector instance to route through. Find it in the response of v3ListConnectors or in the Console under Connectors. |
type | enum | TRANSFER (internal → internal) or PAYOUT (internal → external). |
amount | integer | Minor units at the asset's precision. 100 of USD/2 = $1.00. |
asset | string | Asset code with precision suffix (USD/2, EUR/2, BTC/8). Must match the source account's currency. |
sourceAccountID | string | Internal account ID at the connector. |
destinationAccountID | string | Internal account for TRANSFER, external for PAYOUT. |
Optional:
description— propagated to the upstream payment when the connector supports a memo / description field.metadata— opaque map. Connectors that accept upstream metadata forward it where they can; otherwise it stays Payments-side only.validated— whentrue, skip theWAITING_FOR_VALIDATIONstep and go straight toPROCESSING. Defaultfalse.scheduledAt— RFC3339 timestamp. Defers the connector call until that wall-clock time (used for cut-off-aware ACH or wire submission windows).
Connector-specific metadata#
Some connectors accept extra metadata keys to control rail selection,
delivery method, or operator context. These live under
com.<provider>.spec/<key> and are documented on the per-connector
reference pages. Routable, for example, uses:
| Metadata key | Purpose |
|---|---|
com.routable.spec/type | Routable payable rail (ach, wire, check, …). |
com.routable.spec/delivery_method | Specific delivery option compatible with type. |
com.routable.spec/acting_team_member | Routable team member initiating the payable (required by Routable's API). |
See the Routable reference for the full list.
Approving or rejecting#
When the initiation is created with validated: false, the platform
parks it in WAITING_FOR_VALIDATION until your reviewer decides:
Approve transitions the initiation to PROCESSING and dispatches it to
the connector. Reject moves it to REJECTED terminally — the connector
is never called.
The approval step is the platform's hook for a four-eyes / RBAC gate. Approval API access can be restricted independently of creation access via RBAC.
Retrying a failed initiation#
v3RetryPaymentInitiation is valid only when the initiation is in
FAILED. It re-dispatches to the connector with the same reference,
which means a connector that uses the reference as an upstream
idempotency key will either return the failed payment as-is (no retry
actually attempted) or accept a fresh attempt — connector-dependent. See
each connector's reference page for the per-provider retry semantics.
Reversing a settled initiation#
Available on connectors that declare ReverseTransfer / ReversePayout.
The reversal carries its own reference and goes through
REVERSE_PROCESSING → REVERSED (or FAILED). The list of reversal
attempts is accessible via the same adjustment endpoint.
Adjustments#
Every state transition lands on the initiation's adjustment list:
Adjustments carry the timestamp, the new status, and the connector's raw response when relevant — including the upstream error body on failed transitions. This is the audit trail you'd surface in a back-office UI.
Correlation#
Once the connector returns a settled payment, the initiation links to it in two directions:
Deleting#
Only valid in WAITING_FOR_VALIDATION. Once an initiation has been
dispatched to the connector, it stays in the platform indefinitely so
the linked payment(s) and adjustment log remain queryable.
Connector support matrix#
Initiation requires CAPABILITY_CREATE_TRANSFER or
CAPABILITY_CREATE_PAYOUT on the target connector. See
Capabilities for the live matrix
— the columns light up per connector and per Payments version. Reversal
is available on connectors that additionally implement ReverseTransfer
or ReversePayout; that subset is smaller.