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 API

SET API · Compliance

Restrict a customer, recipient or wallet

POST/v1/restrictions

Key scope: write · Success: 201

Restricts one of your own customers, recipients or wallets. Every money path then answers 403 restricted for it, before any provider call. The reason is always platform_request. Event restriction.placed.

Headers

Idempotency-Key string
Optional. The same key and body run once; a replay answers with Idempotent-Replayed: true. Kept 24 hours.

Body

subject objectrequired
{kind: "customer" | "recipient", id} for one of your own, or {kind: "wallet", chain, address} with chain base, ethereum or solana.

Notes

  • A wallet restriction applies to your business alone.
  • A payment that still arrives from a restricted party is recorded and raises restriction.payment_flagged with action: return_required, held or no_return_path. A bank deposit can then be sent back with POST /v1/deposits/{id}/return.

Errors

  • 400 body_invalid
  • 400 subject_invalid
  • 404 restriction_subject_unknown
  • 401 api_key_required
  • 401 api_key_invalid
  • 401 api_key_wrong_mode
  • 401 api_key_expired
  • 403 scope_missing
  • 403 platform_api_paused
  • 429 rate_limited
  • 503 api_disabled

All codes: Errors.