---
title: "Updategiftcardconsent"
method: POST
path: "/v2/giftcards/gdpr/consent/{customerId}"
tags: ["Gift Cards"]
---

# Updategiftcardconsent

`POST /v2/giftcards/gdpr/consent/{customerId}`

## Request

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

## Path parameters

- `customerId` string, required

## Query parameters

- `programId` string
- `cardId` string

## Headers

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

## Request body

- ConsentRequest
  - `purposes` string[]
  - `ipAddress` string, nullable
  - `customerEmail` string, nullable
  - `customerPhone` 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)
