This endpoint is used only for requesting an outgoing (withdrawal) wire transfer at this moment. For the wire transfer, you need to create a bank resource first using the Bank API. To fund an account in sandbox, simulate an incoming wire with Simulate an Incoming Wire Transfer (POST /v1/testing/incoming_wires).
Idempotency: When the Idempotency-Key header is supplied, this endpoint is
idempotent. Multiple requests for the same account with the same key and an identical
request create only one transfer. A subsequent request returns 200 with the
previously created transfer, showing its current status, and the
Idempotency-Replayed: true response header (no duplicate is created). If the same
key is used for the same account with a different request, the API returns
422 Unprocessable Entity.
- Key: at most 36 characters; an empty key, a longer one or one that is not
valid UTF-8 returns400 Bad Request. Send the bare value, without quotes: the
key is compared exactly as sent and is case-sensitive. - Identical request: requests are compared on
transfer_type,direction,
amount,relationship_id/bank_id,fee_payment_method,
additional_informationandira. Fields are compared as sent: an
omitted field does not match the same field sent with its default value (for
examplefee_payment_methodorira.tax_year).amountand the withholding
percentages are compared by value, so100matches100.00. - Scope: keys are scoped to the account in the path. The same key used for another
account is independent and creates a separate transfer. - Concurrent requests: two requests for the same account with the same key never
create two transfers. If they run at the same time, one creates the transfer and the
other returns it, or returns422if its request differs. Rarely, it can fail a
check while the first is still in progress; retry it with the same key. - Failed requests: a key is stored only when a transfer is created. If a request
fails (for example with a4xxor5xxresponse) and no transfer was created, a
retry with the same key, including one with a corrected request, is processed as a
new request.
Recommended for production: Always supply Idempotency-Key when creating
transfers. This allows safe retries on timeouts, network errors, or 5xx responses
without risking duplicate transfers. Use a unique client-generated UUIDv7 or UUIDv4
value for each transfer.