API Documentation
Authentication APIs
- Login & Register
- Create & Manage Users
Catalog APIs
- GETList all products
- GETList all skus
- GETRetrieve a product
- GETRetrieve product variants
- GETRetrieve variant detail
- GETList all categories
- GETRetrieve product reviews
- POSTCreate product review
- GETRetrieve similar products
- GETRetrieve up sell products
- GETRetrieve cross sell products
- GETRetrieve recommended products
- POSTDatocms webhook
Cart & Checkout APIs
- Cart
- Checkout
Coupons & promotions API
Customers API
Orders APIs
Shipping APIs
Analytics
Campaigns API
Customers API
List all loyalty points activity
GET
/
customers
/
{user_id}
/
loyalty-points-activity
curl --request GET \
--url https://services.commercengine.dev/api/v1/x2yh61zw4k/storefront/customers/{user_id}/loyalty-points-activity \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"loyalty_points_activity": [
{
"activity_type": "earned",
"activity": "order",
"reference_number": "<string>",
"title": "<string>",
"loyalty_point": 123,
"remarks": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z"
}
]
}
}
Authorizations
Access token
Path Parameters
user id
Query Parameters
no of rows per page
Required range:
x > 1
page number of pagination list
Required range:
x > 1
JSON string format: {"field1":"asc", "field2":"desc"}
Response
200
application/json
OK
Available options:
earned
, redeemed
Available options:
order
curl --request GET \
--url https://services.commercengine.dev/api/v1/x2yh61zw4k/storefront/customers/{user_id}/loyalty-points-activity \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"loyalty_points_activity": [
{
"activity_type": "earned",
"activity": "order",
"reference_number": "<string>",
"title": "<string>",
"loyalty_point": 123,
"remarks": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z"
}
]
}
}