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

Pay suppliers abroad from a balance, with a wallet fallback and a rate-drift hold (UC-A-06)

Status: current as of 2026-11-16.

Who this is for

A platform whose merchants pay suppliers in other currencies from a USDC balance. When you finish, each payout reaches the supplier's bank, or the supplier's own wallet if the bank side is refused or returned, and a payout is held rather than sent if the exchange rate moved too far.

Before you start

  • Account: a SET API platform account, on the SET API plan.
  • Keys: a SET API key with write (every POST below) and read (every GET); a second key with approve for payouts held for approval.
  • Switches: none. Enabled features in SET Console, or GET /v1/capabilities, shows whether recipients and the payout fallback are on for your deployment.
  • What must exist: a funded wallet for the merchant (A merchant balance with a floor, steps 1 to 3), and the supplier's own bank details and own wallet.

By API

  1. Check the wallet holds enough; its balances are read from SET's provider. GET /v1/wallets/{id} The next step uses: id, the USDC balance.
  1. Add the supplier, with its own wallet as the fallback. POST /v1/recipients · Idempotency-Key ``json { "customer": "cus_…", "party": { "type": "business", "name": "…", "address": { "city": "…", "country": "…" } }, "destination": { "kind": "bank", "currency": "eur", "iban": "…", "fallbackWallet": { "chain": "base", "address": "0x…" } } } ` country is ISO 3166-1 alpha-3. Add "externalId": "…" so that a repeat returns the same recipient. The next step uses: id`.
  1. Pay it. fallback: "wallet" pays the same amount in USDC to the fallback wallet, once, if the bank side is refused or returned. maxRateDriftBps holds the payout for review if the rate has moved further than that when it is sent. Add "approval": "required" to hold it for a second key. POST /v1/payouts · Idempotency-Key ``json { "wallet": "wal_…", "recipient": "rcp_…", "amount": "1200.00", "fallback": "wallet", "maxRateDriftBps": 50, "approval": "required" } ` The next step uses: id, state (pending_approval with a 202), review, reviewReasons`.
  1. Approve the held payout with the other key. POST /v1/payouts/{id}/approve · Idempotency-Key; no body. The answer to check: state.
  1. Pay many suppliers at once: up to 100 items, with the wallet holding the batch total. POST /v1/payout_batches · Idempotency-Key ``json { "wallet": "wal_…", "items": [{ "recipient": "rcp_…", "amount": "250.00", "maxRateDriftBps": 50 }] } ` The answer to check: id`, and each item's payout.

An estimate of the conversion, before you pay: GET /v1/exchange_rates?from=usd&to=eur&amount=1200.00. No rate is locked.

In SET Console

  1. In Platform View, Balances and conversion, the Wallets panel lists the wallets.
  2. Add the supplier. Console: not available. Use the API call.
  3. Pay it. Console: not available. Use the API call. In the demo console, Platform View, Workflows, Pay a supplier abroad shows a form with Merchant, Pay from wallet, Supplier's name, Supplier's country (ISO, 3 letters), Supplier's network, Supplier's address, Amount (USDC) and Reference; it pays the supplier's wallet and does not set a bank destination, a fallback or a rate-drift limit.
  4. In Platform View, open Approvals. Under Payouts waiting for approval, choose Approve or Reject. Only an admin or finance member can decide, and the person who asked for the payout cannot approve it.
  5. Pay a batch. Console: not available. Use the API call.

Check it worked

  • GET /v1/payouts/{id}: state, approval, review and reviewReasons (rate_drift when the rate moved). GET /v1/payout_batches/{id} for a batch.
  • In Platform View, Money out shows Payouts and Recipients; Overview, Needs attention, lists payouts waiting for approval or held.
  • Webhooks: recipient.created, payout.created, payout.pending_approval, payout.approved, payout.pending_review when held, then payout.released or payout.refused; payout.payment_processed (and payout.<state> for every state); payout.rerouted when the fallback was used; payout_batch.created and payout_batch.completed.

If it fails

  • 400 fallback_unavailable: fallback: "wallet" on a recipient created without destination.fallbackWallet.
  • 400 fallback_wallet_invalid: the fallback wallet's chain or address.
  • 400 max_rate_drift_invalid: maxRateDriftBps is not a whole number from 1 to 5000.
  • 400 max_rate_drift_not_applicable: the limit applies to bank payouts in EUR, GBP, MXN, BRL or COP.
  • 502 rate_unavailable: SET could not read a rate; try again, or leave out maxRateDriftBps.
  • 400 amount_too_small: after SET's fee, at least 1.00 must reach the recipient.
  • 409 balance_too_low: the wallet does not hold the amount, or the batch total.
  • 400 items_invalid: a batch with no items or more than 100.
  • 400 party_invalid, 400 destination_invalid, 400 bank_details_refused: the supplier or its bank details.
  • 409 approver_is_requester, 409 payout_not_pending_approval: approving with the requesting key, or a payout that is not waiting.
  • 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.