Improved

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 one that is not valid UTF-8 returns 400. Keys are compared exactly as sent and are case-sensitive.
  • 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, while 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, and a key is stored only when a transfer is created, so a retry after a failed request is processed as a new request.

The 400 and 422 response descriptions list the new idempotency error messages with examples. Requests without the header behave exactly as before.

Affected Endpoints

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