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

Pay an exact dollar amount to a payee's bank, once per reference (UC-D-04)

Status: current as of 2026-11-17.

Who this is for

A platform that promises a payee an exact amount in their bank and must never pay the same job twice, even after a retry or a double click. You ask what to send for the amount promised, reserve the payout under your own reference, pay once, and put the reference on the payment.

Before you start

  • Account: a platform account (a business account is refused with 403 merchant_no_direct_deposit).
  • Plan: SET Direct Deposit, or the SET API on a platform account.
  • Key: your partner key (set_partner_…) with read and write, or a SET API key with the direct_deposit and write scopes.
  • Must already exist: a sending wallet you registered (POST /api/partner/senders), and the payee's Cash-Out Address or Threshold Address, or a Payable Email payeeId.

By API

Send Authorization: Bearer <your key> on every call, and an Idempotency-Key on every POST.

  1. Ask what to send so the payee's bank receives the amount promised.

GET /api/partner/quote?netUsd=100.00&chain=base&address=0x…

Response fields the next step uses: amountUsdc (the least whole-cent amount that reaches at least netUsd after any fee on that address), netToBankUsd, belowMinimum, kind.

  1. Reserve the payout under your own reference, for that amount.

POST /api/partner/payout_intents · Idempotency-Key: …

``json { "reference": "…", "amountUsdc": "…", "chain": "base", "address": "0x…" } ``

Send payeeId (pye_…) instead of address for a Payable Email payee.

Response fields: id (poi_…), state (open), address, destination (bank, wallet or threshold), amountUsdc. A second intent for the same reference answers 409 already_intended (or 409 already_paid) with the first one under intent: pay that one, never a new one.

  1. Pay amountUsdc to the intent's address once, from your registered wallet. This happens in your own wallet; there is no SET call.
  1. Put the reference on the payment. The open intent with that reference becomes paid.

POST /api/partner/references · Idempotency-Key: …

``json { "chain": "base", "txHash": "0x…", "to": "0x…", "reference": "…" } ``

Response fields: reference, txHash, to, updatedAt. Without to, the reference covers every recipient in the transaction.

To give a reference back while its intent is still open, cancel the intent: POST /api/partner/payout_intents/{id}/cancel. The reference can then be used again.

How to read the answers:

  • The quote takes amountUsdc or netUsd, not both. It is an estimate; the provider's receipt for the payout is final.
  • The Direct Deposit API adds no fee to a payout to a Cash-Out Address; the quote shows SET's 0.75%, withheld once at the payee's Cash-Out Address.
  • Payout intents are on Base or Ethereum.
  • A reference is 1 to 64 visible ASCII characters: your own id, never a name or an email. SET stores it encrypted.

In SET Console

  1. Ask what to send for a bank amount: Console: not available. Use the API call. (In Deposit View, Developers and team, Fee preview takes an amount in USDC and shows what the bank receives for it.)
  2. In Deposit View, open Workflows, then Pay an exact amount once (admins only). Fill in Your reference, Amount (USDC), Payee's address and Network (base or ethereum), then Review and Confirm. The receipt shows Payout intent and State, as the API answers.
  3. Pay the address from your own registered wallet, outside SET.
  4. In Workflows, open Put your reference on a payout. Fill in Transaction hash, Your reference and Network, then Review and Confirm. The receipt shows Transaction and Reference.
  5. Cancel an open intent: Console: not available. Use the API call.

Check it worked

If it fails

  • 400 amount_invalid: both or neither of amountUsdc and netUsd, or not a positive amount.
  • 400 amount_out_of_range: more than a Cash-Out Address takes in one payout.
  • 400 chain_invalid: the network is not offered here (payout intents: Base or Ethereum only).
  • 400 address_invalid: the address is not valid for that network.
  • 404 address_unknown: the address does not take Direct Deposit payouts; ask the payee for their current Cash-Out Address.
  • 400 reference_invalid: the reference is not 1 to 64 visible ASCII characters.
  • 400 destination_invalid: neither address nor payeeId was sent.
  • 404 payee_unknown: no such payee for your account.
  • 422 below_minimum: the amount would not reach the bank after fees.
  • 409 payee_not_payable: the payee cannot be paid yet; resolve them again later.
  • 409 already_intended, 409 already_paid: the reference already has an intent; the answer carries it.
  • 404 intent_unknown: no such payout intent.
  • 409 intent_closed: the intent is already canceled.
  • 400 tx_hash_invalid, 400 to_invalid: the transaction or to address is malformed.
  • 503 references_unconfigured: references and payout intents are not configured for this deployment.
  • 401 partner_key_required, 401 partner_key_invalid, 403 scope_missing, 429 rate_limited: key problems, as on every call.
  • 400 idempotency_key_invalid, 409 idempotency_key_in_progress, 422 idempotency_key_reused: see Idempotency.

Every code is explained on Errors.

Changes

  • 2026-11-17: SET's fee is 0.75% from 2026-11-17: charged once on each bank deposit and each exit to a bank, and added by the payer on a payout run to a wallet the person controls and on a Payable Email payment into a wallet SET created.
  • 2026-11-16: Every use case step by step, by API and in the console.