---
title: "Validatemerchantsession"
method: POST
path: "/v2/giftcards/merchants/session/validate"
tags: ["Gift Card Merchants"]
---

# Validatemerchantsession

`POST /v2/giftcards/merchants/session/validate`

## Request

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

### Validate Merchant Session

Check if a merchant session token is still valid.

## Request body

- ValidateMerchantSessionRequest
  - `sessionToken` string, required

## Response `200`

Successful Response

- ValidateMerchantSessionResponse
  - `valid` boolean, required
  - `merchant` MerchantSessionResponse: Returned after a successful merchant session init or validation. Contains everything needed to populate the eposn-giftcards session without an additional core_api round-trip.
    - `id` string, required
    - `merchantId` string, required
    - `name` string, nullable, required
    - `platform` string, required
    - `programId` string, nullable, required
    - `active` boolean, required
    - `locationId` string, nullable, required
    - `locationName` string, nullable, required
    - `locations` MerchantLocationResponse[], required
      - `locationId` string, required
      - `locationName` string, nullable, required
      - `lastSeenAt` string, nullable, required
      - `programId` string, nullable, required
    - `cashierId` string, nullable
    - `terminalId` string, nullable
    - `role` string, nullable
    - `sessionToken` 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)
