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

# Find Merchant Locations

> Search for merchant locations (stores, warehouses, pickup points) with various filtering options



## OpenAPI

````yaml api-reference/openapi.json get /location
openapi: 3.1.0
info:
  title: Satsuma API
  description: API specification for Satsuma AI commerce platform
  contact:
    name: Satsuma Support
    url: https://satsuma.ai
    email: support@satsuma.ai
  version: 1.0.0
servers:
  - url: https://api.satsuma.ai
    description: Production
security:
  - apiKeyAuth: []
paths:
  /location:
    get:
      tags:
        - Location Search
      summary: Find Merchant Locations
      description: >-
        Search for merchant locations (stores, warehouses, pickup points) with
        various filtering options
      operationId: findLocations
      parameters:
        - name: query
          in: query
          description: >-
            Free-text search query to match against location names, addresses,
            merchant names, or location identifiers
          required: false
          schema:
            type: string
            description: api.merchant.search.field.query.description
            example: Whole Foods Market
          example: Whole Foods Market
        - name: type
          in: query
          description: >-
            List of location types to filter search results. Restricts search to
            specified location types only. Types include Store (retail
            locations) and Warehouse (fulfillment centers).
          required: false
          schema:
            type: array
            description: api.merchant.search.field.type.description
            items:
              type: string
              description: api.merchant.search.field.type.description
              enum:
                - Store
                - Warehouse
        - name: size
          in: query
          description: >-
            Maximum number of locations to return in a single response. Used for
            pagination control
          required: false
          schema:
            maximum: 100
            minimum: 1
            type: integer
            description: api.merchant.search.field.size.description
            format: int32
            example: 25
            default: 25
          example: 25
        - name: page
          in: query
          description: >-
            Page number for paginated results, starting from 1. Used with 'size'
            parameter for pagination
          required: false
          schema:
            minimum: 1
            type: integer
            description: api.merchant.search.field.page.description
            format: int32
            example: 1
            default: 1
          example: 1
        - name: latitude
          in: query
          description: >-
            Geographic latitude coordinate for proximity search. Must be a valid
            latitude between -90 and 90 degrees
          required: true
          schema:
            maximum: 90
            minimum: -90
            type: number
            description: api.search.field.latitude.description
            format: double
            example: 37.7749
          example: 37.7749
        - name: longitude
          in: query
          description: >-
            Geographic longitude coordinate for proximity search. Must be a
            valid longitude between -180 and 180 degrees
          required: true
          schema:
            maximum: 180
            minimum: -180
            type: number
            description: api.search.field.longitude.description
            format: double
            example: -122.4194
          example: -122.4194
        - name: distance
          in: query
          description: >-
            Search radius distance from the provided coordinates. Format: number
            followed by unit (mi for miles, km for kilometers)
          required: false
          schema:
            pattern: ^[0-9]+(mi|km)$
            type: string
            description: api.search.field.distance.description
            example: 10mi
            default: 10mi
          example: 10mi
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseListLocationResult'
components:
  schemas:
    ResponseListLocationResult:
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/LocationResult'
        messages:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/Message'
    LocationResult:
      properties:
        id:
          type: string
        merchant_id:
          type: string
        name:
          type: string
        description:
          type: string
        type:
          type: string
          enum:
            - Store
            - Warehouse
        address:
          $ref: '#/components/schemas/Address'
        phone_number:
          type: string
    Message:
      properties:
        context:
          type: string
        level:
          type: string
          enum:
            - Information
            - Warning
            - Error
        text:
          type: string
        data:
          type: object
          additionalProperties: true
    Address:
      properties:
        street_number:
          type: string
        street_name:
          type: string
        street_address:
          type: string
        street_address_detail:
          type: string
        city:
          type: string
        region:
          type: string
        postal_code:
          type: string
        country:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      description: API Key authentication
      name: Authorization
      in: header

````