v2

latestOpenAPI 3.1.02026-08-01244220427.0 KB
Loyalty

Record Customer Consents

Record Customer Consents

Creates an immutable consent record for each consent decision in the request. Captures IP address and user-agent at the time of recording for evidentiary purposes.

Consent records are append-only — each call adds new records; existing records are never modified. Use GET to retrieve the current state per consent type.

Path Parameters:

  • programId: UUID of the loyalty program (merchant)
  • customerId: UUID of the customer

Request Body:

  • consents: List of consent decisions (consentType, granted, method)
  • policyVersion: Version of the policy document accepted

Returns:

  • 201 Created with the list of newly created consent records.
post/v2/loyalty/programs/{programId}/customers/{customerId}/consents

Path parameters

string required
OR
string required
Example:5eb7cf5a86d9755df3a6c593
string required
OR
string required
Example:5eb7cf5a86d9755df3a6c593

Headers

authorizationstring nullable

Request body

policyVersionstring required

Response

Successful Response

{"stackTrail":"paths:/v2/loyalty/programs/{programId}/customers/{customerId}/consents:post:responses:201:content:application/json:schema","oasType":"schema","type":"unknown"}