POST
/api/v2/users/{userId}/referrals/attribution-commandsAccepts authenticated server consent provenance and returns a durable, immutable outcome.
Authentication
Send your API key in the x-api-key header on every request.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| userId (path) | integer (int32) | Yes |
Request body
application/json
| Field | Type | Required | Description |
|---|---|---|---|
| CommandId | string (uuid) | No | |
| QuoteId | string (uuid) | No | |
| Accepted | boolean | No | |
| TermsHash | string | Yes | |
| PolicyHash | string | Yes | |
| ConsentReceivedAt | string (date-time) | No | Authenticated integration's server-received consent time; never forward a browser timestamp. |
| Provenance | string | Yes |
Responses
200 — OK
| Field | Type | Required | Description |
|---|---|---|---|
| CommandId | string (uuid) | Yes | |
| Status | string | Yes | |
| Reason | string | Yes | |
| RelationshipId | string (uuid) | Yes | |
| ProgramId | string (uuid) | Yes | |
| AcceptedTermsVersion | unknown | Yes | |
| AcceptedPolicyHash | string | Yes | |
| AcquisitionOccurredAt | string (date-time) | Yes | |
| CommittedAt | string (date-time) | Yes | |
| ReplayStatus | string | Yes | |
| ReplayReason | string | Yes | |
| AssignedTierId | unknown | No |
Example request
curl -X POST "https://{base_url}/api/v2/users/{userId}/referrals/attribution-commands" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"TermsHash":"…","PolicyHash":"…","Provenance":"…"}'This page is generated from the live OpenAPI specification and always matches the current API.