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

# Récupérer un emplacement de stock

> Renvoie un emplacement de stock par son identifiant.

Renvoie un emplacement de stock par son identifiant.

```json Réponse theme={null}
{
  "stockLocationsByPk": {
    "id": 4,
    "name": "Magasin MP",
    "type": "PHYSICAL",
    "site": {
      "id": 1,
      "name": "Atelier Nord"
    }
  }
}
```


## OpenAPI

````yaml openapi.json GET /stock/locations/{id}
openapi: 3.0.0
info:
  title: Bonx API
  version: 1.0.0
servers:
  - url: '{baseUrl}'
    variables:
      baseUrl:
        default: https://YOUR-API-URL
        description: Your space API URL, available in Settings → API tokens.
security: []
paths:
  /stock/locations/{id}:
    get:
      summary: Retrieve a stock location
      parameters:
        - in: header
          name: x-api-key
          schema:
            type: string
          description: API token from your Bonx space.
        - description: _"id" is required as part of the path_
          in: path
          name: id
          required: true
          schema:
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  stockLocationsByPk:
                    nullable: true
                    properties:
                      id:
                        nullable: false
                        type: integer
                      name:
                        nullable: false
                        type: string
                      site:
                        nullable: true
                        properties:
                          id:
                            nullable: false
                            type: integer
                          name:
                            nullable: false
                            type: string
                        type: object
                      type:
                        $ref: '#/components/schemas/location_type'
                    type: object
          description: Response
components:
  schemas:
    location_type:
      nullable: false

````