Question 4 - Get the aisle & shelf number for Gatorade Frost Thirst Quencher at the Kroger on the Rhine location
GET {{kroger-baseUrl}}/products/0005200013519?filter.locationId=01400513
- Use the Location list operation in the Locations API to get the `locationId` for the Kroger on the Rhine location: `GET https://api.kroger.com/v1/locations?filter.zipCode.near=45202&filter.limit=200\`.
- Next use the Product search operation in the Products API: `GET https://api.kroger.com/v1/products?filter.locationId=01400513&filter.term=Gatorade\`
- Pass the `locationId` from the first step in the `filter.locationId` parameter.
- Pass
Gatorade
in the `filter.term` parameter.
- Look for the first
Gatorade Frost Thirst Quencher
in the results and note the `productId`. If you do not find - Use the Product details operation in the Products API with the correct productId in the URL (your productId may be different): `GET https://api.kroger.com/v1/products/0005200013519?filter.locationId=01400513\`
- Pull out the `number` field value for the aisle and the `shelfNumber` field as the shelf.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
filter.locationId | string |