PUT
/
{locale}
/
shop
/
loyalty-cards
/
{id}
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"
    }
  }
}

Update Loyalty Card

Update loyalty card preferences, display name, and communication settings. This endpoint allows users to customize their loyalty card experience.

Path Parameters

locale
string
required
Language code for localized content (e.g., “en”, “lt”)
id
integer
required
Unique identifier of the loyalty card to update

Request Body

preferred_name
string
Display name on the card
card_design
string
Card design theme (classic, modern, seasonal)
communication_preferences
object
Notification and communication settings
privacy_settings
object
Privacy and data sharing preferences

Response

success
boolean
Indicates if the card was successfully updated
data
object
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"
    }
  }
}