Customers
Update Customer
API reference
- Introduction
- Authentication
- Pagination
Resources
- Customers
- Activities
- Transactions
- Orders
- Emails
- Webhooks
Webhooks
- Introduction
- Webhook events
Customers
Update Customer
PATCH
/
v2
/
customers
/
{merchant_id}
curl --request PATCH \
--url https://api.loyaltylion.com/v2/customers/{merchant_id} \
--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>",
"linked_merchant_ids": [
"<string>"
],
"created_at": "<string>",
"updated_at": "<string>"
}
}
Path Parameters
The ID of the customer in your platform or ecommerce store
Response
200
application/json
200
Required range:
x > 1
Required range:
x > 0
Available options:
At Risk
, Win Back
, Loyal
curl --request PATCH \
--url https://api.loyaltylion.com/v2/customers/{merchant_id} \
--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>",
"linked_merchant_ids": [
"<string>"
],
"created_at": "<string>",
"updated_at": "<string>"
}
}