Skip to main content
Creates a payment order in the given wallet. The direction field determines the workflow: See Payments overview for the end-to-end flow and Payment lifecycle for the full state machine.

The idempotencyKey field

Always supply idempotencyKey for payment-order creates. It makes the request safe to retry on network failures — the (wallet, idempotencyKey) tuple is globally unique. Without it, every retry creates a duplicate payment.
See Idempotency for the persistence pattern.

The instrument field

instrument is a discriminated union by type — five PIX variants today. The five variants and when to use each are documented in Instrument types.