GET
/
api
/
v1
/
locations
/
{locationId}
/
products
Get Products by Location
curl --request GET \
  --url https://api.cravejs.com/api/v1/locations/{locationId}/products \
  --header 'X-API-Key: <api-key>'
[
  {
    "id": "64a7b8c9d1e2f3a4b5c6d7e8",
    "name": "Margherita Pizza",
    "availability": "available",
    "description": "Fresh mozzarella, basil, and tomato sauce on our signature crust",
    "price": "16.99",
    "images": [
      "https://example.com/images/margherita-pizza.jpg"
    ],
    "modifierIds": [
      "64a7b8c9d1e2f3a4b5c6d7e9",
      "64a7b8c9d1e2f3a4b5c6d7ea"
    ],
    "modifiers": []
  },
  {
    "id": "64a7b8c9d1e2f3a4b5c6d7eb",
    "name": "Pepperoni Pizza",
    "availability": "available",
    "description": "Classic pepperoni with mozzarella cheese and tomato sauce",
    "price": "18.99",
    "images": [
      "https://example.com/images/pepperoni-pizza.jpg"
    ],
    "modifierIds": [
      "64a7b8c9d1e2f3a4b5c6d7e9",
      "64a7b8c9d1e2f3a4b5c6d7ea"
    ],
    "modifiers": []
  },
  {
    "id": "64a7b8c9d1e2f3a4b5c6d7ec",
    "name": "Caesar Salad",
    "availability": "available",
    "description": "Crisp romaine lettuce, parmesan cheese, croutons, and our house-made Caesar dressing",
    "price": "12.99",
    "images": [],
    "modifierIds": [
      "64a7b8c9d1e2f3a4b5c6d7ed"
    ],
    "modifiers": []
  }
]

Path Parameters

locationId
string
required
The unique identifier for the restaurant location

Query Parameters

productIds
string
Comma-separated list of product IDs to retrieve (optional)
Example: prod_123,prod_456,prod_789

Headers

X-API-Key
string
required
Storefront API key for authentication
[
  {
    "id": "64a7b8c9d1e2f3a4b5c6d7e8",
    "name": "Margherita Pizza",
    "availability": "available",
    "description": "Fresh mozzarella, basil, and tomato sauce on our signature crust",
    "price": "16.99",
    "images": [
      "https://example.com/images/margherita-pizza.jpg"
    ],
    "modifierIds": [
      "64a7b8c9d1e2f3a4b5c6d7e9",
      "64a7b8c9d1e2f3a4b5c6d7ea"
    ],
    "modifiers": []
  },
  {
    "id": "64a7b8c9d1e2f3a4b5c6d7eb",
    "name": "Pepperoni Pizza",
    "availability": "available",
    "description": "Classic pepperoni with mozzarella cheese and tomato sauce",
    "price": "18.99",
    "images": [
      "https://example.com/images/pepperoni-pizza.jpg"
    ],
    "modifierIds": [
      "64a7b8c9d1e2f3a4b5c6d7e9",
      "64a7b8c9d1e2f3a4b5c6d7ea"
    ],
    "modifiers": []
  },
  {
    "id": "64a7b8c9d1e2f3a4b5c6d7ec",
    "name": "Caesar Salad",
    "availability": "available",
    "description": "Crisp romaine lettuce, parmesan cheese, croutons, and our house-made Caesar dressing",
    "price": "12.99",
    "images": [],
    "modifierIds": [
      "64a7b8c9d1e2f3a4b5c6d7ed"
    ],
    "modifiers": []
  }
]

Authorizations

X-API-Key
string
header
required

Path Parameters

locationId
string
required

The unique identifier for the restaurant location

Query Parameters

productIds
string

Comma-separated list of product IDs to retrieve. If not provided, returns all products.

Response

200
application/json

Products retrieved successfully.

The response is of type object[].