Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-16
Browse: SET API

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 scopes write (every POST below) and read (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 base and sepa endorsements (POST /v1/customers/{id}/endorsements). Also the merchant's euro account details, and an address the merchant controls for returnAddress (or "wallet"), as in UC-A-01.

By API

  1. Link the merchant's euro account. A person's account also needs firstName and lastName; bic and address (with an ISO 3166-1 alpha-3 country) are optional. POST /v1/bank_accounts · Idempotency-Key ``json { "customer": "cus_…", "currency": "eur", "ownerName": "…", "iban": "…" } ` The next step uses: id`.
  1. Open the account: dollars in, paid on to the euro account. You can also send the euro account's details as a bankAccount object 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 (currency eur, rail sepa`).
  1. 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.00 The fields to read: buyRate, estimate, locked, updatedAt.
  1. 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

  1. Link the euro account. Console: not available. Use the API call.
  2. 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.
  3. Estimate the conversion. Console: not available. Use the API call.
  4. 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's state and received.
  • Webhooks: bank_account.created, virtual_account.created, deposit.payment_processed, then cash_out_payment.payment_processed when 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: bankAccount is 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.

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.