SET Merchant API · Tools
Record a data-subject request
POST/v1/data_requests
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-Keystring- Optional. The same key and body run once; a replay answers with
Idempotent-Replayed: true. Kept 24 hours.
Body
customerstringrequired- 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_invalid400 kind_invalid404 customer_unknown401 api_key_required401 api_key_invalid401 api_key_wrong_mode403 scope_missing429 rate_limited