Skip to main content
POST
/
{locale}
/
shop
/
validate-credentials
curl -X POST "https://staging-api.loyalty.lt/en/shop/validate-credentials" \
  -H "X-API-Key: lty_your_api_key" \
  -H "X-API-Secret: your_api_secret"
{
  "success": true,
  "code": 200,
  "request_id": "550e8400-e29b-41d4-a716-446655440000",
  "data": {
    "valid": true,
    "partner": {
      "id": 45,
      "name": "Coffee Paradise",
      "status": "active"
    },
    "environment": "staging"
  }
}

Validate Credentials

Verify that your API credentials (X-API-Key and X-API-Secret) are valid and properly configured. Useful for testing integration setup.

Endpoint

POST /{locale}/shop/validate-credentials

Authentication

X-API-Key
string
required
API key from Partners Portal (starts with lty_)
X-API-Secret
string
required
API secret from Partners Portal

Path Parameters

locale
string
required
Language code (e.g., en, lt)

Response

success
boolean
true if credentials are valid
data
object
curl -X POST "https://staging-api.loyalty.lt/en/shop/validate-credentials" \
  -H "X-API-Key: lty_your_api_key" \
  -H "X-API-Secret: your_api_secret"
{
  "success": true,
  "code": 200,
  "request_id": "550e8400-e29b-41d4-a716-446655440000",
  "data": {
    "valid": true,
    "partner": {
      "id": 45,
      "name": "Coffee Paradise",
      "status": "active"
    },
    "environment": "staging"
  }
}

Error Codes

CodeDescription
1010API credentials missing
1011Invalid API key format
1012API key not found
1013Invalid API secret
1014API credentials expired

Use Cases

Integration Testing

Verify credentials work before implementing other endpoints

Health Check

Include in monitoring to ensure API access is working