---
search:
  tags:
    - Magasins
    - POST
seo:
  description: >-
    Met à jour un magasin (corps POST partiel). Nécessite une clé Write. Envoyez
    null pour effacer un champ optionnel. Les identifiants Zahls restent dans
    le…
sidebar:
  label: Mettre à jour un magasin
  badge: POST
title: Mettre à jour un magasin
type: openapi-operation
---
Met à jour un magasin (corps POST partiel). Nécessite une clé Write. Envoyez `null` pour effacer un champ optionnel. Les identifiants Zahls restent dans le tableau de bord.

`POST /stores/{storeId}`

**Request body** (`application/json`, required)

- `name` (string)
- `address` (string | null)
- `zipCode` (string | null)
- `city` (string | null) — Libellé lisible du magasin dans l'organisation
- `vatNumber` (string | null)
- `paymentCash` (boolean | null)
- `paymentPaytec` (boolean | null)
- `paymentZahls` (boolean | null)
- `paymentZahlsOffline` (boolean | null)
- `paymentCashOffline` (boolean | null)
- `showSupplier` (boolean | null)
- `hideTextStart` (boolean | null)
- `generalMargin` (number | null)
- `customMessage` (string | null)
- `backgroundImageCart` (string | object | null) — \`null\` supprime le champ.
- `backgroundImage` (string | object | null) — \`null\` supprime le champ.
- `backgroundColor` (string | null)
- `backgroundFontColor` (string | null)
- `playSound` (boolean | null)
- `standardSound` (string | null)
- `adminMail` (string | null)
- `showInfoButton` (boolean | null)
- `showPictures` (boolean | null)
- `showPicturesScale` (boolean | null)
- `deleteCountdown` (number | null)
- `logoUrl` (string | null)
- `languageMulti` (boolean | null)
- `languageMain` (string | null)
- `languageSelector` (string[] | null)
- `translations` (object | null)
- `deleted` (boolean) — Mettre à true pour une suppression logique.

Request body example:

```json
{
  "city": "Bern"
}
```

**Responses**

- `200` — Mis à jour
- `400` — Paramètres ou corps invalides.
- `403` — Clé API absente, inconnue ou inactive, ou clé Read sur une opération d’écriture.
- `404` — Aucun élément avec cet id.

Response example, 200:

```json
{
  "success": true
}
```

Response example, 400:

```json
{
  "statusCode": 400,
  "message": "Validation failed for Field: name, Error: Required",
  "timestamp": "2024-04-20T12:00:00.000Z",
  "path": "/api/v1/suppliers"
}
```

Response example, 403:

```json
{
  "statusCode": 403,
  "message": "Unknown Error",
  "timestamp": "2024-04-20T12:00:00.000Z",
  "path": "/api/v1/products"
}
```
