Light Mode
Customer Loyalty Points
GET
/customers/loyalty/pointsLast modified: 3 hours ago
This endpoint allows you to fetch the history of a customer's loylty points that is assocaited with the store.
:::info
This endopint will work only if the store has Customer Loyalty application installed.
:::
Request
Query Params
customer_id
string
required
The unique ID number of the customer. Get a list of Customer IDs from here
Example:
1257881496
Request samples
Responses
OK(200)
Validation(422)
Unauthorized(401)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": [
{
"name": "مخصصة",
"points": 900,
"used_points": 0,
"status": "مؤكدة",
"created_at": {
"date": "2024-12-17 17:42:14.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"expiry_date": "2029-02-17 17:42:14",
"order_id": 98787845454,
"used_at": null,
"notes": "reason text",
"reference_id": 3215487
},
{
"name": "مخصصة",
"points": 900,
"used_points": 0,
"status": "مؤكدة",
"created_at": {
"date": "2024-12-17 17:15:47.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"expiry_date": "2029-02-17 17:15:47",
"order_id": null,
"used_at": null,
"notes": "sample note",
"reference_id": null
}
],
"pagination": {
"count": 30,
"total": 39,
"perPage": 30,
"currentPage": 1,
"totalPages": 2,
"links": {
"next": "http://api.salla.dev/admin/v2/customers/loyalty/points?customer_id=1227534533&page=2"
}
}
}
Last modified: 3 hours ago