Skip to main content

Get a Specific Prize Request

This endpoint retrieves a specific request for a loyalty prize

info

This operation requires authentication to see own request and admin or editor to see all requests.

HTTP Request

GET /api/v2/loyalty/request/{id}/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this request

Example Request

const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

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

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeLoyalty Prize User

Example responses

{
"id": "integer",
"user": {User},
"prize": {Prize},
"prize_points": "integer",
"pending_at": "string",
"status": "integer",
"status_description": "string"
}