Dollars in, euros out (UC-A-11)
Status: current as of 2026-11-16.
Who this is for
A European merchant that sells to US buyers. When you finish, US payers pay a US account in dollars, and the merchant receives euros at its own bank by SEPA.
Before you start
- Account: a SET API platform account on the SET API plan. A SET API business-account key runs the same calls.
- Key: a SET API key sent as
Authorization: Bearer …, with the scopeswrite(every POST below) andread(every GET). - Switches: none.
- What must exist: a merchant verified by the provider (Give each merchant its own US account details, steps 1 and 2) and approved for both USD and EUR: the
baseandsepaendorsements (POST /v1/customers/{id}/endorsements). Also the merchant's euro account details, and an address the merchant controls forreturnAddress(or"wallet"), as in UC-A-01.
By API
- Link the merchant's euro account. A person's account also needs
firstNameandlastName;bicandaddress(with an ISO 3166-1 alpha-3country) are optional.POST /v1/bank_accounts·Idempotency-Key``json { "customer": "cus_…", "currency": "eur", "ownerName": "…", "iban": "…" }`The next step uses:id`.
- Open the account: dollars in, paid on to the euro account. You can also send the euro account's details as a
bankAccountobject here instead of step 1.POST /v1/payment_setups·Idempotency-Key``json { "customer": "cus_…", "way": "bank", "currency": "usd", "bankAccount": "…", "returnAddress": "0x…" }`The next step uses:payTo.depositInstructions,payTo.virtualAccount,payTo.paysTo(currencyeur,railsepa`).
- Give US payers
payTo.depositInstructions. When you need a figure, estimate the conversion. No rate is locked; the answer is an estimate only.GET /v1/exchange_rates?from=usd&to=eur&amount=1000.00The fields to read:buyRate,estimate,locked,updatedAt.
- Name the payer of each deposit (Travel Rule).
POST /v1/deposits/{id}/sender·Idempotency-Key``json { "type": "business", "name": "…", "address": { "country": "…" } }`The answer to check:senderState` on the deposit.
In SET Console
- Link the euro account. Console: not available. Use the API call.
- Open the account. Console: not available. Use the API call. In the demo console, Platform View, Workflows, Dollars in, euros out shows the form: Merchant and Name on the euro account, then Review and Confirm.
- Estimate the conversion. Console: not available. Use the API call.
- Name a deposit's payer. Console: not available. Use the API call.
In Platform View, the Merchants section shows the merchant's Bank accounts and Virtual accounts, and Money in shows Bank deposits and Cash-Out payments.
Check it worked
GET /v1/deposits?virtualAccount=…: each deposit'sstateandreceived.- Webhooks:
bank_account.created,virtual_account.created,deposit.payment_processed, thencash_out_payment.payment_processedwhen the euro account was paid.
If it fails
400 currency_invalid,400 bank_details_refused: the euro account's details; the provider names the fields it refused.404 bank_account_unknown:bankAccountis not one of this merchant's linked accounts.409 endorsement_required: the merchant is not approved for USD or for EUR yet.409 verification_incomplete: the provider has not verified the merchant yet.409 settle_route_not_supported,400 route_not_supported,400 rail_invalid: the route from dollars to that account.400 return_address_required,403 platform_funds_not_allowed: the return address.400 pair_unsupported,400 amount_invalid,502 rate_unavailable: the rate estimate.404 deposit_unknown,409 deposit_not_ready,400 sender_invalid: naming a payer.401 api_key_invalid,403 scope_missing,429 rate_limited: the key, its scopes, or the rate limit.
All codes: Errors. Retrying a POST safely: Idempotency.
Related
Changes
- 2026-11-16: Every use case step by step, by API and in the console.
- 2026-11-16: The modernized API Reference, the sandbox-key form, Direct Deposit without a revenue share.