SuperdindaDocs
Seats

Ask the dependent's consent (before activation)

POST
/seats/{uid}/consent-request

D2: the consent link goes out right after the dependent is filled in, before activation or any card. Pending seats only. Idempotent: an open request is reused — "later" then "now" sends the same link (the one the guardian may have copied keeps working); a fresh link is POST …/resend. Runs the relationship check once. Owner only.

Authorization

Bearer
headerAuthorizationBearer <JWT>

Path Parameters

uid*string

seat uid

Formatuuid

Request Body

application/json
  1. body
send?string

now: we send the link to the dependent's WhatsApp. later: the request and its link exist (consent.link), nothing is sent — the guardian shares it, or calls again with "now"

Default"now"
Value in"now""later"

Response Body

The seat, still pending, with its consent request (consent.link while pending)

application/json
  1. response
success*true
Value intrue
data*
Example Request
curl -X POST 'http://localhost:3000/seats/497f6eca-6276-4993-bfeb-53cbbbba6f08/consent-request' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "success": true,  "data": {    "uid": "string",    "status": "pending",    "price": {      "uid": "string",      "amountCents": 0,      "currency": "string",      "interval": "month",      "campaignCode": "string"    },    "dependent": {      "kind": "minor",      "name": "string",      "birthDate": "2019-08-24",      "relationship": "child",      "phone": "string",      "document": {        "type": "cpf",        "number": "string"      }    },    "attested": true,    "consent": {      "status": "pending",      "requestedAt": "2019-08-24T14:15:22Z",      "givenAt": "2019-08-24T14:15:22Z",      "expiresAt": "2019-08-24T14:15:22Z",      "sentAt": "2019-08-24T14:15:22Z",      "deliveredAt": "2019-08-24T14:15:22Z",      "openedAt": "2019-08-24T14:15:22Z",      "declinedAt": "2019-08-24T14:15:22Z",      "resendAvailableAt": "2019-08-24T14:15:22Z",      "revokedAt": "2019-08-24T14:15:22Z",      "revokedBy": "guardian",      "deliveryChannel": "whatsapp",      "link": "string",      "needsRenewal": true    },    "backgroundCheck": {      "status": "pending"    },    "pause": {      "cause": "guardian",      "since": "2019-08-24T14:15:22Z",      "until": "2019-08-24T14:15:22Z",      "byName": "string",      "reason": "string"    },    "activatedAt": "2019-08-24T14:15:22Z",    "activationRequiresConsent": true,    "trial": {      "state": "not_started",      "startsOn": "first_connection",      "days": 0,      "startedAt": "2019-08-24T14:15:22Z",      "endsAt": "2019-08-24T14:15:22Z",      "label": "string"    },    "createdAt": "2019-08-24T14:15:22Z"  }}