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

# Updategiftcardconsent

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

## 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.net/loyalty/apis/loyaltydog.md) · [All operations](https://skmtc.net/loyalty/apis/loyaltydog/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loyalty/loyaltydog/revisions/42b7b22af2b6/schema)
