active
.true
, it returns only active Benefits. When false
, only inactive.curl --location -g --request GET 'https://api.mpc.dev.placewise.com/v1/members/me/benefits?active=true&type&per_page=&page_no=1&sort_by[]=id&sort_directions[]=DESC' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'Authorization;' \
--header 'X-Client-Authorization: ' \
--header 'X-Locale: pl'
per_page
param out of range?{
"benefits": [
{
"id": 1,
"type": "generic",
"identifier": "my_program_1",
"name": "Name",
"description": "Description",
"conditions": "Conditions",
"active": true
}
],
"pagination_info": {
"count": 1000,
"total_count": 2050,
"per_page": 1000,
"total_pages": 3,
"current_page": 1,
"next_page": 2,
"prev_page": null,
"is_first_page": true,
"is_last_page": false,
"is_out_of_range": false,
"offset": 0
}
}