---
title: "Toggle sync_enabled, MAJ prix par store, etc."
method: PUT
path: "/api/v1/ecommerce/mappings/{mapping_id}"
tags: ["ecommerce"]
---

# Toggle sync_enabled, MAJ prix par store, etc.

`PUT /api/v1/ecommerce/mappings/{mapping_id}`

## Request

- Base URL: `https://erp.eyeot.fr/api/v1`
- URL: `https://erp.eyeot.fr/api/v1/api/v1/ecommerce/mappings/{mapping_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Toggle sync_enabled, MAJ prix par store, etc.

    Champs immutables : store_id, eyeot_product_id, external_id.

**Permissions requises** : `ecommerce:write`

## Request body

- EcommerceProductMappingUpdate
  - `currency` string
  - `external_handle` string, nullable
  - `external_variant_id` string, nullable
  - `last_sync_error` string, nullable
  - `price_cents_at_store` integer, nullable
  - `stock_policy` 'push' | 'pull' | 'manual'
  - `sync_enabled` boolean

## Response `200`

Succès — payload `{data, meta}` (cf. API-GUIDE §3.1)

- object
  - `data` EcommerceProductMappingDetail
    - `created_at` string, date-time
    - `currency` string
    - `external_handle` string, nullable
    - `external_id` string
    - `external_variant_id` string, nullable
    - `eyeot_product_id` string, uuid
    - `id` string, uuid
    - `last_sync_error` string, nullable
    - `last_synced_at` string, date-time, nullable
    - `organization_id` string, uuid
    - `price_cents_at_store` integer, nullable
    - `stock_policy` string
    - `store_id` string, uuid
    - `sync_enabled` boolean
    - `updated_at` string, date-time
  - `meta` PaginationMeta: Métadonnées de pagination cursor (cf. API-GUIDE §6).
    - `limit` integer
    - `next_cursor` string, nullable
    - `prev_cursor` string, nullable
    - `total_count` integer

## Other responses

- `400`: Validation Marshmallow échouée. `errors` détaille chaque champ invalide.
- `401`: JWT manquant, expiré ou révoqué.
- `402`: L'organisation n'a pas d'abonnement actif (paywall). Rediriger vers /activate.
- `403`: Permissions `module:action` insuffisantes pour cette route.
- `404`: Ressource introuvable (ou cross-tenant — équivalent à hidden).
- `409`: État incohérent (email dupliqué, ressource déjà dans cet état, etc.).
- `422`: Validation Marshmallow échouée. `errors` détaille chaque champ invalide.
- `429`: Trop de requêtes. Honorer le header `Retry-After` (secondes).

---

[API](https://skmtc.dev/eyeot/apis/eyeot-erp-api.md) · [All operations](https://skmtc.dev/eyeot/apis/eyeot-erp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/eyeot/apis/eyeot-erp-api/revisions/42ab95222a89?raw)
