Documentation Index Fetch the complete documentation index at: https://docs.loyalty.lt/llms.txt
Use this file to discover all available pages before exploring further.
Get Points Balance
Retrieve a customer’s current points balance. This is a lightweight endpoint that returns only the essential balance information.
This endpoint requires Shop API authentication (X-API-Key and X-API-Secret headers).
Base URL
Environment URL Staging https://staging-api.loyalty.lt/{locale}/shop/loyalty-cards/balanceProduction https://api.loyalty.lt/{locale}/shop/loyalty-cards/balance
Query Parameters
The card_number parameter accepts both the card number (e.g., 123-456-789) and the QR code UUID value. This allows you to search by whatever value you have scanned.
Loyalty card number (e.g., 123-456-789) or QR code value (UUID)
User ID to find their card
At least one query parameter is required.
Request Example
cURL - By Card Number
cURL - By QR Code
JavaScript
curl -X GET "https://staging-api.loyalty.lt/en/shop/loyalty-cards/balance?card_number=123-456-789" \
-H "X-API-Key: your_api_key" \
-H "X-API-Secret: your_api_secret"
Response
{
"success" : true ,
"code" : 200 ,
"request_id" : "550e8400-e29b-41d4-a716-446655440000" ,
"message" : "Balance retrieved successfully" ,
"data" : {
"card_id" : 567 ,
"card_number" : "123-456-789" ,
"points" : 1250
}
}
Response Fields
Loyalty card number in format XXX-XXX-XXX
Current points balance (non-expired points only)
Error Codes
Code Status Description 1100 422 Validation error - at least one query parameter required 1200 404 Loyalty card not found 1004 401 Partner not authenticated
Get Loyalty Card Info Get full card details including user info and redemption settings
Create Transaction Award or redeem points in a purchase transaction