Installation
The official Loyalty.lt Python SDK for Shop API integration.pip
Requirements
- Python 3.8+
- requests library (installed automatically)
Quick Start
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
api_key | str | required | API Key |
api_secret | str | required | API Secret |
environment | str | production | production or staging |
locale | str | lt | API locale (lt, en) |
timeout | int | 30 | Request timeout in seconds |
retries | int | 3 | Number of retry attempts |
debug | bool | False | Enable debug logging |
Getting API Credentials
1
Access Partners Portal
Go to partners.loyalty.lt and log in.
2
Navigate to API Credentials
Click API Credentials in the sidebar.
3
Generate Credentials
Click Generate New Credentials.
4
Copy Credentials
Copy API Key (
lty_...) and API Secret. Store securely!