> ## Documentation Index
> Fetch the complete documentation index at: https://docs.craveup.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a published product



## OpenAPI

````yaml /generated/storefront.openapi.json get /locations/{locationId}/products/{productId}
openapi: 3.0.3
info:
  title: Crave Storefront API
  version: 2.0.0
  description: >-
    Direct public Storefront API. Anonymous catalog reads require no API key.
    Protected resources use purpose-limited cart, checkout, receipt, or customer
    credentials.
  contact:
    name: Crave Support
    email: hello@craveup.com
servers:
  - url: https://api.craveup.com/api/v1/storefront
    description: Production Storefront API
  - url: https://dev-api-43233223.craveup.com/api/v1/storefront
    description: Sandbox Storefront API
security: []
tags:
  - name: Merchants
  - name: Locations
  - name: Ordering Sessions
  - name: Menus
  - name: Products
  - name: Analytics
  - name: Carts
  - name: Checkout
  - name: Cart Items
  - name: Discounts
  - name: Loyalty
  - name: Customer Authentication
  - name: Customers
  - name: Orders
paths:
  /locations/{locationId}/products/{productId}:
    get:
      tags:
        - Products
      summary: Get a published product
      operationId: storefrontGetProduct
      parameters:
        - name: locationId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
        - name: productId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
      responses:
        '200':
          description: Published product.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Product'
        '400':
          description: The request is invalid.
          headers:
            X-Request-Id:
              description: Opaque request identifier for support and telemetry correlation.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommerceErrorEnvelope'
        '404':
          description: The requested resource was not found.
          headers:
            X-Request-Id:
              description: Opaque request identifier for support and telemetry correlation.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommerceErrorEnvelope'
        '429':
          description: The request was rate limited.
          headers:
            X-Request-Id:
              description: Opaque request identifier for support and telemetry correlation.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommerceErrorEnvelope'
        '500':
          description: An unexpected error occurred.
          headers:
            X-Request-Id:
              description: Opaque request identifier for support and telemetry correlation.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommerceErrorEnvelope'
        '503':
          description: A required dependency is temporarily unavailable.
          headers:
            X-Request-Id:
              description: Opaque request identifier for support and telemetry correlation.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommerceErrorEnvelope'
      security: []
components:
  schemas:
    Product:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 128
        name:
          type: string
        price:
          type: string
          pattern: ^-?\d+(?:\.\d+)?$
        displayPrice:
          type: string
        currency:
          type: string
          enum:
            - usd
            - gbp
            - aed
            - aud
        modifierIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 128
        description:
          type: string
        availability:
          type: string
        images:
          type: array
          items:
            type: string
        nutrition:
          type: object
          properties:
            calorieCount:
              nullable: true
              type: number
            dietaryPreferences:
              type: array
              items:
                type: string
            ingredients:
              type: array
              items:
                type: string
          additionalProperties: {}
        locationId:
          type: string
          minLength: 1
          maxLength: 128
        modifiers:
          type: array
          items:
            $ref: '#/components/schemas/ModifierGroup'
      required:
        - id
        - name
        - price
        - displayPrice
        - currency
        - modifierIds
        - description
        - availability
        - images
        - locationId
        - modifiers
      additionalProperties: {}
    CommerceErrorEnvelope:
      type: object
      properties:
        code:
          anyOf:
            - type: string
              enum:
                - VALIDATION_ERROR
                - UNAUTHORIZED
                - FORBIDDEN
                - NOT_FOUND
                - RATE_LIMITED
                - CART_CONFLICT
                - RESOURCE_CONFLICT
                - CART_IMMUTABLE
                - IDEMPOTENCY_KEY_REQUIRED
                - IDEMPOTENCY_KEY_REUSED
                - IDEMPOTENCY_IN_PROGRESS
                - DEPENDENCY_UNAVAILABLE
                - INTERNAL_ERROR
            - type: string
              minLength: 1
        message:
          type: string
          minLength: 1
        requestId:
          type: string
          minLength: 8
        details:
          type: object
          additionalProperties: {}
      required:
        - code
        - message
        - requestId
      additionalProperties: false
    ModifierGroup:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 128
        name:
          type: string
        description:
          nullable: true
          type: string
        imageUrl:
          type: string
        rule:
          type: object
          properties:
            min:
              type: number
            max:
              type: number
          required:
            - min
            - max
          additionalProperties: false
        items:
          type: array
          items:
            $ref: '#/components/schemas/ModifierItem'
      required:
        - id
        - name
        - rule
        - items
      additionalProperties: {}
    ModifierItem:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 128
        name:
          type: string
        price:
          type: string
          pattern: ^-?\d+(?:\.\d+)?$
        maxQuantity:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        childGroups:
          type: array
          items:
            $ref: '#/components/schemas/ModifierChildLink'
      required:
        - id
        - name
        - price
        - maxQuantity
      additionalProperties: {}
    ModifierChildLink:
      type: object
      properties:
        groupId:
          type: string
          minLength: 1
          maxLength: 128
        overrides:
          type: object
          properties:
            min:
              type: number
            max:
              type: number
          additionalProperties: false
        applyPerParentQuantity:
          type: boolean
        group:
          nullable: true
          type: object
          properties:
            id:
              type: string
              minLength: 1
              maxLength: 128
            name:
              type: string
            description:
              nullable: true
              type: string
            imageUrl:
              type: string
            rule:
              type: object
              properties:
                min:
                  type: number
                max:
                  type: number
              required:
                - min
                - max
              additionalProperties: false
            items:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    minLength: 1
                    maxLength: 128
                  name:
                    type: string
                  price:
                    type: string
                    pattern: ^-?\d+(?:\.\d+)?$
                  maxQuantity:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                required:
                  - id
                  - name
                  - price
                  - maxQuantity
                additionalProperties: {}
          required:
            - id
            - name
            - rule
            - items
          additionalProperties: {}
        circular:
          type: boolean
      required:
        - groupId
      additionalProperties: {}

````