Skip to main content

Get User's Loyalty Points

This endpoint returns user's loyalty points

info

This operation requires authentication.

HTTP Request

GET /api/v2/user/{id}/loyalty/points/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this user

Example Request


const headers = {
'Accept':'application/json',
'Authorization': 'Bearer <token>'
};

fetch('/api/v2/user/{id}/loyalty/points/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codesnone

Example responses

{
"points": "integer"
}