---
title: "Erasegiftcardcustomerdata"
method: POST
path: "/v2/giftcards/gdpr/erasure"
tags: ["Gift Cards"]
---

# Erasegiftcardcustomerdata

`POST /v2/giftcards/gdpr/erasure`

## Request

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

## Query parameters

- `programId` string
- `cardId` string

## Headers

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

## Request body

- RightToErasureRequest
  - `customerId` string, nullable
  - `customerEmail` string, email, nullable
  - `reason` string, nullable

## Response `200`

Successful Response

- RightToErasureResponse
  - `requestId` string, required
  - `status` string, required
  - `affectedCards` string[], required
  - `completedAt` string, date-time, nullable
  - `message` string, 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)
