Added

Idempotency-Key support on the create transfer endpoint

Broker API

The create transfer endpoint now accepts an optional Idempotency-Key header. Retrying with the same key and an identical request returns the original transfer instead of creating a second one.

  • Keys are at most 36 characters, compared exactly as sent (case-sensitive), and must be sent without quotes. An empty key, a longer key, or one that is not valid UTF-8 returns 400.
  • Replays return 200 with the previously created transfer in its current status and the Idempotency-Replayed: true response header.
  • Reusing a key for the same account with a different request returns 422. Requests are compared on transfer_type, direction, amount, relationship_id / bank_id, fee_payment_method, additional_information, and ira; omitted fields do not match the same field sent with its default value, and amount and withholding percentages are compared by value.
  • Keys are scoped to the account in the path; the same key on another account creates a separate transfer.
  • Concurrent requests with the same key never create two transfers.
  • If a request fails and no transfer was created, a retry with the same key is processed as a new request.

The 400 and 422 response descriptions now list the idempotency error reasons and include named examples. The header is optional, so requests without it behave as before.

Affected Endpoints

  • POST /v1/accounts/{account_id}/transfers