Update Customer Loyalty Points
DevelopingPOST
/customers/loyalty/pointsThis endpoint enables you to add loyalty points to customers, helping to enhance engagement and reward customer loyalty.
:::info
This endpoint will work only if the store has Customer Loyalty application installed.
:::
Request
Loyalty points, required unless rest_point is set to true
Boolean value to reset loyalty points
The type of increasing points or decreasing points "plus" or "minus"
Text for showing the reason for the update
Select which channel to send
Customers list that will receive loyalty points
Selecting all customers
{
"points": 900,
"reset_point": false,
"type": "plus",
"reason": "Valid reason text",
"channel_send": [
"email",
"sms"
],
"customers": [
748394059,
873874834
]
}
Request samples
Responses
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
Message indicator of response status
{
"status": 201,
"success": true,
"data": {
"code": 201,
"message": "تم تحديث نقاط الولاء للعملاء بنجاح"
}
}