Added

Idempotency-Key support on the create transfer endpoint

Broker API

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

  • Replays return 200 with the existing transfer in its current status and the Idempotency-Replayed: true response header.
  • Keys are at most 36 characters; an empty key, a longer key, or a key that is not valid UTF-8 returns 400.
  • 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. Fields are compared as sent, and amount and withholding percentages are compared by value (100 matches 100.00).
  • Keys are scoped to the account in the path, are case-sensitive, and do not expire.
  • Concurrent requests with the same key never create two transfers, and a request that created no transfer leaves the key free for a new attempt.

The header is optional, so requests that omit it behave as before. The 400 and 422 response descriptions and examples now cover the new idempotency errors.

Affected Endpoints

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