Describe the bug
When I call the API the limit parameter is ignored when limit is > 50.
To Reproduce
Steps to reproduce the behavior:
- Call https://api.bigcommerce.com/stores/{{store_hash}}/v3/pricelists/assignments?limit=250
- Observe the
meta shows that there are 233 total items and that the per_page is listed at 250 and the count is listed at 50.
Please link to a repo that can be used to reproduce this issue, if possible. It'll help fix the bug faster.
Expected behavior
If there are only 233 items, and my limit is set to 250 and the cursor_pagination property of per_page matches that 250, then I expect that there would be 233 shown in my results instead of 50 and I would expect that total_pages would be 1 instead of 5.
Screenshots
"meta": {
"pagination": {
"total": 233,
"count": 50,
"per_page": 50,
"current_page": 1,
"total_pages": 5
},
"cursor_pagination": {
"count": 50,
"per_page": 250,
"start_cursor": "NA==",
"end_cursor": "NTM=",
"links": {
"next": "?limit=250&after=NTM%3D"
}
}
}
Additional context
The documentation for this API doesn't list that limit can only be in a certain range. It also looks like the API recognizes that I asked for 250 but then did the wrong thing.
Describe the bug
When I call the API the
limitparameter is ignored whenlimitis > 50.To Reproduce
Steps to reproduce the behavior:
metashows that there are 233totalitems and that theper_pageis listed at 250 and thecountis listed at 50.Please link to a repo that can be used to reproduce this issue, if possible. It'll help fix the bug faster.
Expected behavior
If there are only 233 items, and my
limitis set to 250 and thecursor_paginationproperty ofper_pagematches that 250, then I expect that there would be 233 shown in my results instead of 50 and I would expect thattotal_pageswould be 1 instead of 5.Screenshots
Additional context
The documentation for this API doesn't list that
limitcan only be in a certain range. It also looks like the API recognizes that I asked for 250 but then did the wrong thing.