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
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.