Update Loyalty Card
Update loyalty card preferences, display name, and communication settings. This endpoint allows users to customize their loyalty card experience.
Path Parameters
Language code for localized content (e.g., “en”, “lt”)
Unique identifier of the loyalty card to update
Request Body
Card design theme (classic
, modern
, seasonal
)
communication_preferences
Notification and communication settingsShow communication_preferences
Enable email notifications for points and offers
Enable SMS notifications for important updates
Enable mobile push notifications
Privacy and data sharing preferences
Allow usage analytics for improving service
Allow marketing communications
Response
Indicates if the card was successfully updated
ISO 8601 timestamp when card was last updated
curl -X PUT "https://staging-api.loyalty.lt/en/shop/loyalty-cards/123" \
-H "Authorization: Bearer your_jwt_token" \
-H "Content-Type: application/json" \
-d '{
"preferred_name": "Jonas K.",
"card_design": "seasonal",
"communication_preferences": {
"email_notifications": true,
"sms_notifications": false,
"push_notifications": true
},
"privacy_settings": {
"allow_analytics": true,
"allow_marketing": false
}
}'
{
"success": true,
"message": "Loyalty card updated successfully",
"data": {
"card": {
"id": 123,
"card_number": "LC****4567",
"preferred_name": "Jonas K.",
"card_design": "seasonal",
"updated_at": "2024-01-15T18:30:00Z"
}
}
}