curl --request PATCH \
--url https://api.loyaltylion.com/v2/customers/{merchant_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer": {
"birthday": "<string>",
"blocked": true
}
}
'{
"customer": {
"id": 123,
"merchant_id": "<string>",
"email": "<string>",
"points_approved": 123,
"points_pending": 123,
"points_spent": 123,
"properties": {},
"metadata": {
"shopify_source_url": "<string>"
},
"rewards_claimed": 123,
"blocked": true,
"guest": true,
"enrolled": true,
"enrolled_at": "<string>",
"referral_id": "<string>",
"referred_by": {
"id": 123,
"merchant_id": "<string>"
},
"loyalty_tier_membership": {
"started_at": "<string>",
"expires_at": "<string>",
"manual": true,
"loyalty_tier": {
"id": 123,
"name": "<string>",
"number": 2,
"default": true,
"hidden": true,
"lower_bound": "<string>",
"upper_bound": "<string>",
"position": 1
}
},
"insights_segment": "At Risk",
"birthday": "<string>",
"referral_url": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"linked_merchant_ids": [
"<string>"
]
}
}curl --request PATCH \
--url https://api.loyaltylion.com/v2/customers/{merchant_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer": {
"birthday": "<string>",
"blocked": true
}
}
'{
"customer": {
"id": 123,
"merchant_id": "<string>",
"email": "<string>",
"points_approved": 123,
"points_pending": 123,
"points_spent": 123,
"properties": {},
"metadata": {
"shopify_source_url": "<string>"
},
"rewards_claimed": 123,
"blocked": true,
"guest": true,
"enrolled": true,
"enrolled_at": "<string>",
"referral_id": "<string>",
"referred_by": {
"id": 123,
"merchant_id": "<string>"
},
"loyalty_tier_membership": {
"started_at": "<string>",
"expires_at": "<string>",
"manual": true,
"loyalty_tier": {
"id": 123,
"name": "<string>",
"number": 2,
"default": true,
"hidden": true,
"lower_bound": "<string>",
"upper_bound": "<string>",
"position": 1
}
},
"insights_segment": "At Risk",
"birthday": "<string>",
"referral_url": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"linked_merchant_ids": [
"<string>"
]
}
}An API key linked to a Program in LoyaltyLion, with a set of permissions (scopes). API keys can be created manually, or acquired through an OAuth2 flow. The API key should be provided as a Bearer token in the Authorization header
The ID of the customer in your platform or ecommerce store
Body
200
Show child attributes
Show child attributes
Show child attributes
x >= 1x >= 0At Risk, Win Back, Loyal