SETSimple Easy Transactions
SET DocsAPI reference and complianceUpdated 2026-11-10
Browse: SET Merchant API

SET Merchant API · Tools

Record a data-subject request

POST/v1/data_requests

Key scope: write · Success: 201

Records a person's request to see (export) or erase (delete) what is held about them, for one of your customers. SET's operator answers it. The answer's whatSetHolds says what SET keeps and what it cannot erase, so you can tell the person. Event data_request.received.

Headers

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

Body

customer stringrequired
One of your customers (cus_…).
kind "export" | "delete"required
What the person asks for.

Notes

  • The request is recorded, not carried out by this call. See Data-subject requests for what SET keeps, what its provider keeps, and how long.

Errors

  • 400 body_invalid
  • 400 kind_invalid
  • 404 customer_unknown
  • 401 api_key_required
  • 401 api_key_invalid
  • 401 api_key_wrong_mode
  • 403 scope_missing
  • 429 rate_limited

All codes: Errors.