Skip to main content
POST
/
v2
/
giftcards
/
customers
/
session
Validatecustomersession
curl --request POST \
  --url https://api.loyalty.dog/v2/giftcards/customers/session \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sessionToken": "<string>"
}
'
{
  "valid": true,
  "identity": {
    "id": "5eb7cf5a86d9755df3a6c593",
    "email": "<string>",
    "phone": "<string>",
    "name": "<string>",
    "verified": true,
    "verifiedAt": "<string>",
    "trustLevel": "<string>"
  }
}

Authorizations

Authorization
string
header
required

JWT access token obtained from POST /v2/token.

Headers

X-Eposn-Customer-Token
string | null

Body

application/json

Request to validate a session token.

sessionToken
string
required

Session token to validate

Required string length: 1 - 128

Response

Successful Response

valid
boolean
required
identity
CustomerIdentityResponse · object

Customer identity information returned after successful verification.