Authorizations
Access token
Path Parameters
user id
Commerce Engine is now in beta. We're working hard to make it better for you.
curl --request GET \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{user_id}/loyalty \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"loyalty": {
"membership_number": "<string>",
"loyalty_tier": "<string>",
"loyalty_point_earned": 123,
"loyalty_point_redeemed": 123,
"loyalty_point_balance": 123,
"loyalty_point_redeemable": 123,
"loyalty_point_bonus_accrued": 123,
"date_of_reset": "<string>",
"total_savings": 123
},
"loyalty_point_balance": 123
}
}
Retrieve loyalty details
curl --request GET \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/customers/{user_id}/loyalty \
--header 'Authorization: Bearer <token>'
{
"message": "<string>",
"success": true,
"content": {
"loyalty": {
"membership_number": "<string>",
"loyalty_tier": "<string>",
"loyalty_point_earned": 123,
"loyalty_point_redeemed": 123,
"loyalty_point_balance": 123,
"loyalty_point_redeemable": 123,
"loyalty_point_bonus_accrued": 123,
"date_of_reset": "<string>",
"total_savings": 123
},
"loyalty_point_balance": 123
}
}
Access token
user id
Was this page helpful?