---
title: "Getgiftcardconsentbyidentifier"
method: GET
path: "/v2/giftcards/gdpr/consent/lookup"
tags: ["Gift Cards"]
---

# Getgiftcardconsentbyidentifier

`GET /v2/giftcards/gdpr/consent/lookup`

## Request

- Base URL: `https://api.loyalty.dog`
- URL: `https://api.loyalty.dog/v2/giftcards/gdpr/consent/lookup`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/loyalty/apis/loyaltydog/docs/v2/giftcards/gdpr/consent/lookup/get.ts> (a function with typed inputs; its response is checked against the schema)

Look up GDPR consent by email, phone, or customer ID.

Use this endpoint when searching by email or phone (no customerId needed).
For path-based lookup by customerId, use /gdpr/consent/{customerId}.

## Query parameters

- `customerId` string, nullable
- `customerEmail` string, nullable
- `customerPhone` string, nullable
- `programId` string
- `cardId` string

## Headers

- `X-Eposn-Customer-Token` string, nullable
- `X-Eposn-Merchant-Token` string, nullable

## Response `200`

Successful Response

- ConsentRecordResponse
  - `customerId` string, required
  - `purposes` string[], required
  - `consentedAt` string, date-time, required
  - `ipAddress` string, nullable, required
  - `expiresAt` string, date-time, nullable, required
  - `updatedAt` string, date-time, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/loyalty/apis/loyaltydog.md) - [All operations](https://skmtc.dev/loyalty/apis/loyaltydog/llms.txt) - [OpenAPI document](https://skmtc.dev/loyalty/apis/loyaltydog/revisions/5803242b0551?raw)
