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

# List active locations

> Active (writable) locations, so an integration can resolve the locationId required by the stock-set payload. Requires the `stock:read` scope.



## OpenAPI

````yaml /new-api/openapi.json get /stock/locations
openapi: 3.1.0
info:
  title: Riqra Public API
  version: 1.0.0
  description: Programmatic access to a merchant's commerce data.
servers:
  - url: https://api-v2.riqra.com/public/v1
security: []
paths:
  /stock/locations:
    get:
      tags:
        - Stock
      summary: List active locations
      description: >-
        Active (writable) locations, so an integration can resolve the
        locationId required by the stock-set payload. Requires the `stock:read`
        scope.
      responses:
        '200':
          description: Active locations.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockLocationsResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Missing required scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    StockLocationsResponse:
      type: object
      properties:
        locations:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: Location UUID; pass as `locationId` when setting stock.
              name:
                type: string
                description: Location display name.
              isDefault:
                type: boolean
                description: Whether this is the organization's default location.
            required:
              - id
              - name
              - isDefault
      required:
        - locations
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            requestId:
              type: string
          required:
            - code
            - message
            - requestId
      required:
        - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Public API key presented as `Authorization: Bearer rq_live_…`.'

````