---
title: "Logoutcustomer"
method: POST
path: "/v2/giftcards/customers/logout"
tags: ["Gift Card Customers"]
---

# Logoutcustomer

`POST /v2/giftcards/customers/logout`

## Request

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

### Logout Customer

Invalidate a customer's session token in Redis.

**Request Body**:
- `sessionToken`: The session token to invalidate

**Status Codes**:
- 200: Session invalidated (or already expired)

## Headers

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

## Request body

- LogoutRequest: Request to logout (invalidate a session).
  - `sessionToken` string, required: Session token to invalidate

## Response `200`

Successful Response

- LogoutResponse
  - `success` boolean, required
  - `message` string, nullable

## 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)
