Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET Crypto API Suite

SET Crypto API Suite · Wallets and balances

Post a wallet owner's signature

POST/v1/wallets/{id}/payments/{payment}/signatures

Key scope: approve · Success: 200

Posts one owner's signature over a payment's signingPayload bytes. SET relays it to the provider unchanged and adds none of its own; the provider checks the signer is an owner and counts it toward the threshold.

Path parameters

id stringrequired
The self-custody wallet's id, swl_….
payment stringrequired
The payment's id, swp_….

Headers

Idempotency-Key string
Any unique string, so a retry runs once. See Idempotency.

Body

signature stringrequired
The owner's ECDSA P-256 (SHA-256) signature over the signingPayload bytes, base64 (DER), 40 to 200 characters. Anything else answers 400 signature_invalid.
timestamp integerrequired
The signingPayload's own timestamp, a whole number of milliseconds (400 timestamp_invalid). More than 5 minutes old, it answers 410 signature_expired.

Notes

  • Self-custody wallets are switched on per deployment; until then 503 self_custody_disabled. Check GET /v1/capabilities (features.selfCustodyWallets).
  • Needs the approve scope (403 scope_missing without it). Any account type. Unlike acceptance, an API key with approve may post an owner's signature.
  • The payment must be awaiting_signature (409 payment_not_waiting).
  • An owner may be a person or one of the business's own P-256 server keys named in owners.publicKeys; SET holds only the public half.
  • Answers 200 with the payment. With the threshold met the provider executes at once: state executed with txHash. Below it the payment stays awaiting_signature, with fresh bytes for the next owner.
  • executed means the provider sent the transaction. Self-custody payments reach confirmed only for USDC on Base today, when SET reads the transfer on chain; elsewhere they stop at executed.
  • If the provider refuses the signature (not an owner's, or the wrong bytes) the answer is 502 provider_refused with the provider's code.
  • The example was made with a sandbox key: the sandbox counts the signature toward the threshold without checking it, which the live provider does.
  • This example is a recorded run of SET's own code (wallet release e9b03447) with a sandbox key; ids and times are that run's.

Errors

  • 403 scope_missing
  • 503 self_custody_disabled
  • 404 payment_unknown
  • 409 payment_not_waiting
  • 400 body_invalid
  • 400 signature_invalid
  • 400 timestamp_invalid
  • 410 signature_expired
  • 503 provider_unavailable
  • 502 provider_refused

All codes: Errors.