POST/api/v2/users/{userId}/referrals/attribution-commands

Accepts 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

Request parameters
FieldTypeRequiredDescription
userId (path)integer (int32)Yes

Request body

application/json

Request body fields
FieldTypeRequiredDescription
CommandIdstring (uuid)No
QuoteIdstring (uuid)No
AcceptedbooleanNo
TermsHashstringYes
PolicyHashstringYes
ConsentReceivedAtstring (date-time)NoAuthenticated integration's server-received consent time; never forward a browser timestamp.
ProvenancestringYes

Responses

200 — OK

Response 200 fields
FieldTypeRequiredDescription
CommandIdstring (uuid)Yes
StatusstringYes
ReasonstringYes
RelationshipIdstring (uuid)Yes
ProgramIdstring (uuid)Yes
AcceptedTermsVersionunknownYes
AcceptedPolicyHashstringYes
AcquisitionOccurredAtstring (date-time)Yes
CommittedAtstring (date-time)Yes
ReplayStatusstringYes
ReplayReasonstringYes
AssignedTierIdunknownNo

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.