GET user/{userId}/features returns all Features associated to the given User ID. Since Storefront Gateway’s data model supports many-to-many associations between entities, any one entity can grow to have a significantly large number of associations.
A high number of results within a single response can put a strain on the system or the UI retrieving and rendering those entities. To control the number of results in a given call, a select number of Storefront Gateway APIs support pagination to break up large results into easily renderable pages.
Pagination Parameters
The optionalsize and offset request parameters enable the fetching of data in smaller, manageable segments:
A request that exceeds the maximum size or has a negative offset, results in an HTTP 400 (BAD REQUEST) response.
Note: An internal application setting controls the default and maximum size values. Reach out to your product team contact if you would like to modify these values.
Pagination Header
Successful responses from Storefront Gateway include anX-Total-Count header that indicates the total number of available entities.
Multiple Page Response
Here is a simple pagination example where there is a total count of 4 results broken up into two pages.Zero “size” value
A request size of zero will retrieve all results if the total number of results is less than the max page size. For example, assume that there are 3 available results, and that the internal max page size setting is set to 5.Exceeding max size
A request with a size value that exceeds the maximum page size returns an error response. For example, in the call below, assume that the internal max page size setting is set to 20.API Listing
The following user management GET calls support pagination parameters, and return anX-Total-Count header:

