> ## 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 merchant with storefront locations

> Returns merchant metadata and enabled locations for the storefront experience.



## OpenAPI

````yaml https://api.craveup.com/swagger.json get /merchant/{merchantSlug}
openapi: 3.0.0
info:
  title: Crave API v2.0
  version: 2.0.0
  description: >

    ## 🔑 Generate an API Key

    Every request to the Storefront API must include an API key.


    1. Sign in to the [Crave Business Manager](https://partners.craveup.com).

    2. Open **Settings → Developer → API Keys**.

    3. Click **Generate Key**, give it a descriptive name (for example,
    `storefront-sdk-staging`), and confirm.

    4. Copy the key immediately—once you leave the page it cannot be viewed
    again.


    Add the key to each request header:


    ```http

    GET /merchant/crave-collective

    Host: api.craveup.com

    X-API-Key: <your-api-key>

    ```


    ### Best practices

    - Store keys in environment variables or a secrets manager; never commit
    them to source control.

    - Use separate keys for staging and production so they can be rotated
    independently.

    - If a key is exposed, revoke it from the dashboard and generate a fresh one
    right away.
  contact:
    name: Crave Support
    email: support@craveup.com
servers:
  - url: https://api.craveup.com/api/v1
    description: Production Storefront API
  - url: https://dev-api-43233223.craveup.com/api/v1
    description: Staging Storefront API
security:
  - ApiKeyAuth: []
tags:
  - name: Merchants
    description: Retrieve merchant metadata and enabled storefront locations.
  - name: Locations
    description: Access individual location information and configuration.
  - name: Ordering Sessions
    description: Create or resume ordering sessions and carts for a location.
  - name: Menus
    description: Fetch menu bundles, categories, and popular products for a location.
  - name: Products
    description: Request detailed storefront product data including modifiers.
  - name: Carts
    description: Manage cart state, totals, and cross-sell recommendations.
  - name: Customers
    description: Handle storefront customer authentication, profiles, and sessions.
paths:
  /merchant/{merchantSlug}:
    get:
      tags:
        - Merchants
      summary: Get merchant with storefront locations
      description: >-
        Returns merchant metadata and enabled locations for the storefront
        experience.
      parameters:
        - name: merchantSlug
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-z0-9-]+$
          example: crave-collective
      responses:
        '200':
          description: Merchant retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MerchantResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/GenericError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    MerchantResponse:
      type: object
      properties:
        id:
          type: string
          example: org_123
        name:
          type: string
          example: Crave Collective
        country:
          type: string
          example: US
        currency:
          type: string
          example: usd
        bio:
          type: string
          example: Crave Test Kitchen is ready to serve you...
          description: Merchant-level description. Empty string when not set.
        cover:
          type: string
          example: https://cdn.craveup.com/merchant-cover.jpg
          description: Merchant hero image. Empty string when not set.
        logo:
          type: string
          example: https://cdn.craveup.com/merchant-logo.png
          description: >-
            Merchant logo used across storefront experiences. Empty string when
            not set.
        locations:
          type: array
          items:
            $ref: '#/components/schemas/MerchantLocation'
      required:
        - id
        - name
        - country
        - currency
        - locations
    MerchantLocation:
      type: object
      properties:
        id:
          type: string
          example: loc_456def
        restaurantDisplayName:
          type: string
          example: Downtown Pizza Co
        coverPhoto:
          type: string
          example: https://cdn.craveup.com/cover.jpg
          description: >-
            Hero image for the storefront location. Empty string when no image
            has been uploaded.
        restaurantLogo:
          type: string
          example: https://cdn.craveup.com/logo.png
          description: Square logo rendered in the UI. Empty string when not configured.
        restaurantBio:
          type: string
          example: A neighbourhood pizza shop with seasonal specials.
          description: >-
            Marketing blurb displayed on the merchant profile. Empty string when
            unset.
        addressString:
          type: string
          example: 123 Market Street, San Francisco, CA
          description: >-
            Human-readable address assembled from the location address fields.
            Empty string when the address is incomplete.
        methodsStatus:
          type: object
          properties:
            pickup:
              type: boolean
              example: true
            table:
              type: boolean
              example: true
            delivery:
              type: boolean
              example: false
            roomService:
              type: boolean
              example: false
          required:
            - pickup
            - table
            - delivery
            - roomService
      required:
        - id
        - restaurantDisplayName
        - methodsStatus
  responses:
    Unauthorized:
      description: Unauthorized - API key is missing or invalid.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              message:
                type: string
                example: Unauthorized access
              code:
                type: string
                example: UNAUTHORIZED
    NotFound:
      description: Not Found - The requested resource was not found.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              message:
                type: string
                example: Requested resource not found
              code:
                type: string
                example: NOT_FOUND
    GenericError:
      description: Generic Error - An unexpected error occurred.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              message:
                type: string
                example: An unexpected error occurred
              code:
                type: string
                example: GENERIC_ERROR
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key required to authenticate requests

````