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 Direct Deposit API

SET Crypto API Suite · With a Direct Deposit key

Require a second approval on batches

POST/api/partner/batch_approval

Key scope: partner key · Success: 200

Switches batch approval on or off for your Payable Email batches. With required: true, every new batch starts with approval pending and its pay-to addresses withheld until someone other than who asked approves it.

Headers

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

Body

required booleanrequired
true to require a second approval on each new batch, false to stop. Anything but a boolean answers 400 required_invalid.

Notes

  • Direct Deposit is switched on per deployment; while it is off this call answers 503 direct_deposit_disabled. Check GET /v1/capabilities (features.*).
  • It is a Payable Email control: Payable Email must be on for the deployment (503 payable_email_disabled) and for your account (403 payable_email_off; SET switches it on).
  • Call it with your partner key (set_partner_…), or with a SET API key that has the direct_deposit scope.
  • Turning it on takes any write: the partner key, or a SET API key with write and direct_deposit.
  • Turning it off takes the right to approve: a dashboard admin, or a SET API key with write, approve and direct_deposit. The partner key cannot turn it off (403 scope_missing). A SET API key with approve but no write is refused as read-only (403 scope_missing), and one with write but no approve is refused too.
  • While it is on, a new batch reads approval: pending, with items[].address null and payTo empty, until it is approved at POST /api/partner/payees/batch/{id}/approve.
  • The change is written to your audit log as batch_approval_on or batch_approval_off.
  • A browser cross-site request answers 403 cross_origin: call it from your server.
  • 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

  • 503 payable_email_disabled
  • 403 payable_email_merchant
  • 403 payable_email_off
  • 400 required_invalid
  • 503 direct_deposit_disabled
  • 403 scope_missing

All codes: Errors.