Aller au contenu
Logo MonCasierFrais.frDocs

Documentation de l'API MonCasierFrais

Ce document illustre le fonctionnement de l'API MonCasierFrais et la liste des routes exposées.

API URL
https://api.moncasierfrais.fr/v1

L'API est actuellement en lecture seule.

Introduction

MonCasierFrais fournit une API complète pour interagir avec nos services. Cette documentation couvre les points de terminaison disponibles, leur utilisation et les réponses attendues.

Support

Pour toute question ou assistance, veuillez contacter :

Authentification

Toutes les requêtes à l'API MonCasierFrais doivent être effectuées via HTTPS.

En-tête d'autorisation

Vous pouvez créer un jeton à partir de l'ApiToken Authentifiez vos requêtes en utilisant l'en-tête Authorization avec un jeton Bearer.

Token
Authorization: Bearer MCF-ge0Ip.....GslMog

Filtrage

Le paramètre q vous permet de filtrer les données en passant un objet JSON dans l'URL de la requête. Le filtrage prend en charge l'égalité de base, et dans certains cas, un filtrage plus avancé selon le type de champ et le point de terminaison de l'API.

Filtrage complexe

Opérateurs pris en charge

  • $eq: Pour l'égalité (comportement par défaut lorsqu'aucun opérateur n'est spécifié).
  • $ne: Pour différent de.
  • $in: Pour correspondre à n'importe quelle valeur dans un tableau.
  • $gte/$lte: Pour les comparaisons supérieur ou égal / inférieur ou égal.
  • $or: Combine plusieurs conditions, renvoyant des résultats qui correspondent à n'importe lequel des critères fournis.
  • $and: Combine plusieurs conditions, renvoyant des résultats qui correspondent à tous les critères fournis.
Exemples d'opérateurs pris en charge
q={"name": "LaClayette Ville d'Avray"}
q={"location": {"$ne": "Ville d'Avray"}}
q={"status": {"$in": ["installed", "not installed"]}}
q={"price": {"$gte": 50, "$lte": 100}}
q={"$or": [{"isOnline": true}, {"location": "Ville d'Avray"}]}
q={"$and": [{"isOnline": true}, {"location": "Ville d'Avray"}]}

Pagination

Les routes de liste renvoient les résultats du plus récent au plus ancien. Utilisez les paramètres limit et skip pour les paginer.

  • limit: Nombre maximum de lignes renvoyées. Absent ou 0, toutes les lignes sont renvoyées.
  • skip: Nombre de lignes à ignorer avant de renvoyer les résultats (0 par défaut).

Les deux doivent être des entiers positifs ou nuls, sinon la requête est rejetée avec une erreur 400. Le champ count de la réponse correspond au nombre de lignes de la page renvoyée, pas au nombre total de résultats.

Récupérer la deuxième page de 100 transactions
curl -X GET \
'https://api.moncasierfrais.fr/v1/transactions?limit=100&skip=100' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'SellerGroupId: YOUR_SELLER_GROUP_ID'

Exemple

Obtenir le module avec l'id 668223f4faf0c685cc35d843
curl -X GET \
'https://api.moncasierfrais.fr/v1/modules?q={"id":"668223f4faf0c685cc35d843"}' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'SellerGroupId: YOUR_SELLER_GROUP_ID'

Tarification

L'accès à l'API est facturé 20€ par mois par point de vente. Pour plus d'informations, veuillez contacter commercial@moncasierfrais.fr

Cas d'usage

Récupérer le catalogue en temps réel des produits actuellement stockés dans les casiers

GEThttps://api.moncasierfrais.fr/v1/catalog/realtime/{moduleId}

Récupérer le catalogue en temps réel des produits actuellement stockés dans les casiers avec leurs options de conditionnement. Ce point de terminaison fournit l'état actuel des stocks, organisés par différentes options de conditionnement (combinaisons quantité/poids) avec leurs prix respectifs et leur disponibilité.

Concepts importants

État des stocks en temps réel - Ce catalogue fournit l'état actuel des stocks dans les casiers. Chaque produit affiche les quantités exactes stockées, les prix et les emplacements des casiers. Les produits variables (viande, fromage) sont déjà conditionnés et stockés dans les casiers.

Paramètres de chemin

ParamètreTypeDescription
moduleIdstringL'identifiant unique du module pour récupérer le catalogue en temps réel.

Exemple d'utilisation

Obtenir le catalogue en temps réel pour un module
curl -X GET \
'https://api.moncasierfrais.fr/v1/catalog/realtime/66420f8558f23a6a26986d04' \
-H 'Authorization: Bearer YOUR_API_TOKEN'

Structure de la réponse

La réponse contient les produits avec leurs options de conditionnement - différentes façons dont le même produit peut être acheté (par quantité/poids et prix). Chaque produit montre toutes les options disponibles, y compris différentes quantités, prix et emplacements de casiers.

Note: Tous les prix sont exprimés en centimes (ex: 2800 = 28€)

Exemple de réponse
{
  "success": true,
  "products": {
    "count": 1,
    "rows": [
      {
        "id": "68b6b71f0e55547ab74b5b18",
        "name": "Comté AOP",
        "apiField": "COMTE-AOP",
        "description": "Fromage affiné en cave pendant 12 à 18 mois",
        "perUnit": true,
        "VAT": 5.5,
        "price": 1700,
        "packagingOptions": [
          {
            "quantity": 0.5,
            "lockers": [
              {
                "numberOnModule": 5,
                "lockerPrice": 850,
                "state": 1
              }
            ],
            "totalAvailable": 1,
            "price": 850
          },
          {
            "quantity": 1,
            "lockers": [
              {
                "numberOnModule": 22,
                "lockerPrice": 1700,
                "state": 1
              },
              {
                "numberOnModule": 35,
                "lockerPrice": 1530,
                "state": 1,
                "discount": {
                  "type": 2,
                  "amount": 170
                }
              }
            ],
            "totalAvailable": 2,
            "price": 1700
          }
        ]
      }
    ]
  }
}
  • apiField: API identifier for the product.

GET /v1/catalog/inventory/{moduleId}

GEThttps://api.moncasierfrais.fr/v1/catalog/inventory/{moduleId}

Récupérer le statut d'inventaire montrant la différence entre les produits préparés et le contenu actuel des casiers. Cela aide les vendeurs à identifier ce qui manque dans leur installation en comparant les quantités préparées avec les ventes réelles et les articles manquants.

Concepts importants

Statut d'inventaire en temps réel - Ce catalogue compare les quantités préparées avec les quantités réellement disponibles dans les casiers. Il aide le vendeur à identifier ce qui manque et doit être réapprovisionné. Pour optimiser votre ROI, réapprovisionnez les casiers dès que possible pour assurer leur rotation.

Path Parameters

ParamètreTypeDescription
moduleIdstringL'identifiant unique du module pour obtenir l'inventaire.

Example Usage

Exemple de récupération d'inventaire
curl -X GET \
'https://api.moncasierfrais.fr/v1/catalog/inventory/66420f8558f23a6a26986d04' \
-H 'Authorization: Bearer YOUR_API_TOKEN'

Exemple de statut d'inventaire

Exemple de statut d'inventaire
{
  "success": true,
  "products": [
    {
      "id": "68b6b71f0e55547ab74b5b18",
      "name": "Comté AOP",
      "apiField": "COMTE-AOP",
      "prepared": 2,
      "sales": 1,
      "missing": 1,
      "percentMissing": 50
    },
    {
      "id": "68b6b6820e55547ab74b5670",
      "name": "500g de Raclette au poivre",
      "apiField": "RACLETTE-POIVRE-500",
      "prepared": 6,
      "sales": 2,
      "missing": 4,
      "percentMissing": 66.67
    }
  ],
  "summary": {
    "prepared": 72,
    "missing": 10,
    "percentMissing": 13.89
  }
}

Champs clés

  • apiField: API identifier for the product.
  • prepared: Nombre d'articles préparés pour la vente
  • sales: Nombre d'articles réellement vendus
  • missing: Nombre d'articles manquants dans les casiers
  • percentMissing: Pourcentage d'articles manquants

Note: Tous les prix sont exprimés en centimes (ex: 2800 = 28€)

Ce point d'accès fournit le catalogue en ligne des produits

GEThttps://api.moncasierfrais.fr/v1/catalog/delivery/{moduleId}

Ce point d'accès fournit le catalogue en ligne des produits. L'utilisateur peut commander des produits à quantité fixe (boîtes, bouteilles, plats préparés) ou des produits à quantité variable. Pour les produits variables, le vendeur doit définir min/max/step pour permettre au client de choisir la quantité variable qui doit être commandée. Pour aider le client, le vendeur peut choisir de vendre le produit en unités entières qui devraient être plus pratiques (saucisses, volaille) au lieu d'une quantité strictement variable. isUnitSelection: true prend le step comme unité entière.

Concepts importants

Les produits à unité fixe sont conditionnés - Les produits vendus par unités entières (boîtes, bouteilles, plats préparés) sont déjà conditionnés et prêts pour la livraison. Les produits variables nécessitent une configuration de commande - Les produits vendus au poids/volume/quantité ont besoin de règles de commande spécifiques définies.

Types de produits pour la commande

1. Produits à unité fixe (perUnit=false) : Boîtes, bouteilles, plats préparés - vendus par unités entières.

2. Produits variables par unité entière (perUnit=true, isUnitSelection=true) : Saucisses, volaille - vendus par unités entières pour la commodité du client. La valeur step devient l'unité entière (ex: step: 0.070kg = 1 saucisse).

3. Produits variables au poids/volume (perUnit=true, isUnitSelection=false) : Viande, fromage, liquides - vendus au poids/volume exact avec min/max/step définis.

Les valeurs min/max/step définissent les quantités possibles (ex: min: 0.2kg, max: 2kg, step: 0.2kg ou min: 0.5L, max: 2L, step: 0.25L). unitSelection et unitSelectionPrice fournissent des informations d'affichage pour l'interface utilisateur.

Path Parameters

ParamètreTypeDescription
moduleIdstringIdentifiant unique du module pour obtenir le catalogue de livraison

Example Usage

Exemple de récupération du catalogue de livraison
curl -X GET \
'https://api.moncasierfrais.fr/v1/catalog/delivery/66420f8558f23a6a26986d04' \
-H 'Authorization: Bearer YOUR_API_TOKEN'

Exemple de catalogue de livraison

Exemple de catalogue de livraison
{
  "success": true,
  "products": {
    "count": 11,
    "rows": [
      {
        "id": "67650056455b4118e5c6a537",
        "name": "Mijoté de JOUE DE PORC 300 GRS",
        "apiField": "JOUE-DE-PORC-300",
        "description": "Joue de porc, carottes, moutarde à l'ancienne",
        "unitType": "kg",
        "perUnit": false,
        "VAT": 5.5,
        "thumbnailBase64Data": ".*",
        "price": 615,
        "availableOnline": true,
        "packagingOptions": []
      },
      {
        "id": "68b6af790e55547ab74b2b67",
        "name": "Entrecôte",
        "apiField": "ENTRECOTE-1KG",
        "description": "28€ le kg description",
        "unitType": "kg",
        "perUnit": true,
        "VAT": 5.5,
        "thumbnailBase64Data": ".*",
        "price": 2800,
        "productType": "6799f973159881e63779f8f7",
        "availableOnline": true,
        "availableInModule": true,
        "min": 0.2,
        "max": 2,
        "step": 0.2,
        "packagingOptions": []
      }
    ]
  }
}

Champs clés

  • apiField: API identifier for the product.
  • availableOnline: Si le produit est disponible pour commande en ligne
  • availableInModule: Si le produit est actuellement disponible
  • isUnitSelection: Si le produit supporte la sélection d'unité (interface slider)
  • unitSelection: Affichage de sélection d'unité (ex: '1 kg', '0.2 kg')
  • unitSelectionPrice: Prix par unité pour la sélection (ex: '6.15 €/kg')
  • min/max/step: Configuration du slider pour la sélection d'unité (valeurs min, max, step)

Note: Tous les prix sont exprimés en centimes (ex: 2800 = 28€)

Passer une commande de livraison avec les produits sélectionnés

POSThttps://api.moncasierfrais.fr/v1/order/placeOrder/{moduleId}

Passer une commande de livraison avec les produits sélectionnés. Les casiers ne sont pas assignés à la création (lockerIds doit être un tableau vide []).

Paramètres de chemin

ParamètreTypeDescription
moduleIdstringIdentifiant unique du module où la commande sera placée.

Corps de la requête

ParamètreTypeDescription
namestringNom de la commande.
codestringCode de retrait à 6 chiffres (ex: '123456') utilisé par les clients pour identifier leur commande.
paymentStatenumberStatut de paiement (0: payé, 1: à payer lors du retrait).
pricenumberPrix total en centimes.
VATnumberPourcentage de TVA.
lockerIdsarray of stringsTableau d'identifiants de casiers (doit être un tableau vide [] pour les commandes de livraison).
productsarray of objectsTableau de produits avec quantités (voir structure ProductOrder ci-dessous).
expectedDeliveryDatestring (ISO 8601 date)Date de livraison prévue (requis pour les commandes de livraison).
clientEmailstringAdresse e-mail du client (requis pour les commandes de livraison).
additionalClientInfoobjectInformations client supplémentaires (requis pour les commandes de livraison).
additionalClientInfo.phonestringNuméro de téléphone du client.
additionalClientInfo.namestringNom de la commande.
externalIdstringIdentifiant de commande du système externe.
externalUserIdstringIdentifiant d'utilisateur du système externe.
commentsstringCommentaires de l'utilisateur final vers le vendeur (ex: instructions spéciales, notes de livraison, etc.).

Structure ProductOrder

ParamètreTypeDescription
productIdstringIdentifiant du produit.
packingQuantityarray of numbersTableau des quantités pour compter les articles commandés. Chaque nombre représente la quantité d'un article. Exemples: [1, 1, 1] = 3 articles de 1 unité chacun, [0.250, 0.500, 0.250] = 3 articles (1 de 0.250kg, 1 de 0.500kg, 1 de 0.250kg).

Exemple d'utilisation

Exemple de création de commande
curl -X POST \
'https://api.moncasierfrais.fr/v1/order/placeOrder/66420f8558f23a6a26986d04' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
  "name": "Delivery Order #12345",
  "code": "123456",
  "paymentState": 0,
  "price": 1500,
  "VAT": 5.5,
  "lockerIds": [],
  "products": [
    {
      "productId": "68b6b71f0e55547ab74b5b18",
      "packingQuantity": [1]
    }
  ],
  "expectedDeliveryDate": "2024-01-15T14:00:00Z",
  "clientEmail": "customer@example.com",
  "additionalClientInfo": {
    "phone": "+33123456789",
    "name": "John Doe"
  },
  "comments": "Thank you for your order! Your fresh products will be delivered to your door."
}'

Réponse

Réponse de succès

Réponse de succès
{
  "message": "Order created successfully"
}

Réponses d'erreur

400 Requête incorrecte

400 Requête incorrecte
{
  "error": "Invalid JSON: Request body is empty or not valid JSON"
}

500 Erreur interne du serveur

500 Erreur interne du serveur
{
  "error": "Failed to create order"
}

Annuler une commande précédemment passée

POSThttps://api.moncasierfrais.fr/v1/orders/cancel/{moduleId}

Annuler une commande précédemment passée.

Paramètres de chemin

ParamètreTypeDescription
moduleIdstringL'identifiant unique du module où la commande a été passée.

Corps de la requête

ParamètreTypeDescription
idstringL'identifiant unique de la commande à annuler.
reasonstringLa raison de l'annulation de la commande (requise pour la notification de l'utilisateur final).

Exemple d'utilisation

Exemple d'annulation de commande
curl -X POST \
'https://api.moncasierfrais.fr/v1/orders/cancel/66420f8558f23a6a26986d04' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
  "id": "order_12345",
  "reason": "Customer requested cancellation"
}'

Réponse

Réponse de succès

Réponse de succès
{
  "message": "Order cancelled successfully"
}

Réponses d'erreur

Mauvaise requête (400)

Mauvaise requête (400)
{
  "error": "Order ID is required"
}

Non trouvé (404)

Non trouvé (404)
{
  "error": "Order not found"
}

Conflit (409)

Conflit (409)
{
  "error": "Order cancellation is already being processed"
}

Erreur interne du serveur (500)

Erreur interne du serveur (500)
{
  "error": "Failed to cancel order"
}

Changes the payment state of an order

PUThttps://api.moncasierfrais.fr/v1/orders/payment-state/{moduleId}

Changes the payment state of an order: mark it as paid, or set it back to to be paid on pickup. The change is applied by the module itself, not by the API. The request is queued and the module processes it within a few seconds, which is why the API answers 202 Accepted and not 200. The order returned by GET /v1/orders reflects the new state once the module has synchronised it.

The module only applies the change if the order is still active and has not been picked up yet. If the order is already in the requested payment state, nothing changes.

⚠️ No email is sent to the customer or to the seller when the payment state changes through this route.

Path Parameters

ParamètreTypeDescription
moduleIdstringIdentifier of the module the order belongs to.

Request Body

ParamètreTypeDescription
idstringIdentifier of the order.
paymentStatenumberNew payment state: 0 = paid, 1 = to be paid on pickup.

Example Usage

Mark an order as paid
curl -X PUT \
'https://api.moncasierfrais.fr/v1/orders/payment-state/66420f8558f23a6a26986d04' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
  "id": "68b6c02a0e55547ab74b6a41",
  "paymentState": 0
}'

Response

Accepted
{
  "success": true
}

A 202 response means the change has been sent to the module. It does not confirm that the module has applied it: check the order paymentState with GET /v1/orders to confirm.

Error Responses

  • 400 Bad Request: Request body fails validation (id is not a valid identifier, or paymentState is not 0 or 1).
  • 403 Forbidden: The module does not belong to your seller group, or your token does not have write access to orders.
  • 404 Not Found: No order with this id exists on this module.
  • 409 Conflict: The same payment state change for this order is already waiting to be processed by the module.
Conflict
{
  "success": false,
  "error": {
    "message": "This order payment state is already being processed"
  }
}

Réserver des casiers pour une commande en attente ou une préparation

POSThttps://api.moncasierfrais.fr/v1/order/bookLockers/{moduleId}

Réserver des casiers pour une commande en attente ou une préparation.

Paramètres de chemin

ParamètreTypeDescription
moduleIdstringIdentifiant unique du module où les casiers seront réservés.

Corps de la requête

ParamètreTypeDescription
namestringNom de la commande de réservation de casiers.
codestringCode de retrait à 6 chiffres (ex: '123456') utilisé par les clients pour identifier leur commande.
lockerIdsarray of stringsTableau d'identifiants de casiers à réserver (au moins un requis).
clientEmailstringAdresse e-mail du client (requis).
isPaidbooleanStatut de paiement (true: payé d'avance, false: à payer lors du retrait).
pricenumberPrix total en centimes (optionnel).
VATnumberPourcentage de TVA (optionnel).
externalIdstringIdentifiant de commande du système externe (optionnel).
externalUserIdstringIdentifiant d'utilisateur du système externe (optionnel).
commentsstringCommentaires de l'utilisateur final vers le vendeur (optionnel).

Exemple d'utilisation

Exemple de réservation de casiers
curl -X POST \
'https://api.moncasierfrais.fr/v1/order/bookLockers/66420f8558f23a6a26986d04' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
  "name": "Locker Booking #12345",
  "code": "123456",
  "lockerIds": ["locker_001", "locker_002"],
  "clientEmail": "customer@example.com",
  "isPaid": false,
  "price": 1500,
  "VAT": 5.5,
  "comments": "Please prepare fresh products"
}'

Réponse

Réponse de succès

Réponse de succès
{
  "success": true,
  "orderId": "order_12345",
  "lockerIds": ["locker_001", "locker_002"],
  "totalPrice": 1500,
  "message": "Lockers booked successfully"
}

Réponses d'erreur

400 Requête incorrecte

400 Requête incorrecte
{
  "success": false,
  "error": "Some requested lockers are not available",
  "validationErrors": {
    "fields": {
      "lockerIds": "At least one locker ID is required"
    },
    "general": []
  },
  "unavailableItems": []
}

500 Erreur interne du serveur

500 Erreur interne du serveur
{
  "success": false,
  "error": "Failed to book lockers"
}

Fills one or more lockers of a module

PUThttps://api.moncasierfrais.fr/v1/locker/{moduleId}/fill

Fills one or more lockers of a module with products, optionally overriding their price and weight. Every locker ID must belong to the module, otherwise the request is rejected.

Path Parameters

ParamètreTypeDescription
moduleIdstringIdentifier of the module the lockers belong to.

Request Body

ParamètreTypeDescription
lockerIdsarray of stringsLockers filled with a classic product (no price or weight override).
lockerIdsAndPricesarray of objectsLockers whose price the operator wants to set at filling time (see structure below).
lockerIdsAndWeightsarray of objectsLockers filled with a weighted product (see structure below).
productIdsAndAmountMixarray of objectsProducts composing a product mix to place in the locker (see structure below).

Locker price item — lockerIdsAndPrices

ParamètreTypeDescription
lockerIdstringIdentifier of the locker.
pricenumberPrice to set on the locker, in centimes (100 = 1.00€).

Locker weight item — lockerIdsAndWeights

ParamètreTypeDescription
lockerIdstringIdentifier of the locker.
weightnumberWeight to set on the locker.

Mix product item — productIdsAndAmountMix

ParamètreTypeDescription
productIdstringIdentifier of the product included in the mix.
amountnumberQuantity of the product: an integer for a per-unit product, or a float for a weighted product. The list of items together forms a single product mix.

Example Usage

Fill lockers
curl -X PUT \
'https://api.moncasierfrais.fr/v1/locker/66420f8558f23a6a26986d04/fill' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
  "lockerIds": ["68b6b71f0e55547ab74b5b18"],
  "lockerIdsAndPrices": [
    { "lockerId": "68b6b71f0e55547ab74b5b18", "price": 850 }
  ],
  "lockerIdsAndWeights": [
    { "lockerId": "68b6b71f0e55547ab74b5b18", "weight": 0.5 }
  ],
  "productIdsAndAmountMix": [
    { "productId": "68b6b6820e55547ab74b5670", "amount": 2 },
    { "productId": "67650056455b4118e5c6a537", "amount": 0.3 }
  ]
}'

Response

Success
{
  "success": true
}

Error Responses

  • 401 Unauthorized: Request body fails validation, or a locker ID is not found in the module.

Empties one or more lockers of a module

PUThttps://api.moncasierfrais.fr/v1/locker/{moduleId}/unfill

Empties one or more lockers of a module. Every locker ID must belong to the module, otherwise the request is rejected.

Path Parameters

ParamètreTypeDescription
moduleIdstringIdentifier of the module the lockers belong to.

Request Body

ParamètreTypeDescription
lockerIdsarray of stringsIDs of the lockers to empty. Each must belong to the module.

Example Usage

Unfill lockers
curl -X PUT \
'https://api.moncasierfrais.fr/v1/locker/66420f8558f23a6a26986d04/unfill' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
  "lockerIds": ["68b6b71f0e55547ab74b5b18", "68b6b71f0e55547ab74b5b19"]
}'

Response

Success
{
  "success": true
}

Error Responses

  • 401 Unauthorized: Request body fails validation, or a locker ID is not found in the module.

Opens one or more lockers of a module

PUThttps://api.moncasierfrais.fr/v1/locker/{moduleId}/open

Opens one or more lockers of a module. Every locker ID must belong to the module, otherwise the request is rejected.

Requires the /v1/lockers/open permission set to Read&Write on the token: the /v1/lockers permission does not allow opening doors.

Path Parameters

ParamètreTypeDescription
moduleIdstringIdentifier of the module the lockers belong to.

Request Body

ParamètreTypeDescription
lockerIdsarray of stringsIDs of the lockers to open. Each must belong to the module.

Example Usage

Open lockers
curl -X PUT \
'https://api.moncasierfrais.fr/v1/locker/66420f8558f23a6a26986d04/open' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
  "lockerIds": ["68b6b71f0e55547ab74b5b18"]
}'

Response

Success
{
  "success": true
}

Error Responses

  • 401 Unauthorized: Request body fails validation, or a locker ID is not found in the module.

Sets an expiration date on one or more lockers of a module

PUThttps://api.moncasierfrais.fr/v1/locker/{moduleId}/expiration

Sets an expiration date on one or more lockers of a module. The date must be in the future, and every locker ID must belong to the module.

Path Parameters

ParamètreTypeDescription
moduleIdstringIdentifier of the module the lockers belong to.

Request Body

ParamètreTypeDescription
lockerIdsarray of stringsIDs of the lockers to update. Each must belong to the module.
dateOfExpirationstring (ISO 8601 date)Expiration date to apply. Must be in the future.

Example Usage

Set lockers expiration
curl -X PUT \
'https://api.moncasierfrais.fr/v1/locker/66420f8558f23a6a26986d04/expiration' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
  "lockerIds": ["68b6b71f0e55547ab74b5b18"],
  "dateOfExpiration": "2026-12-31T23:59:59Z"
}'

Response

Success
{
  "success": true
}

Error Responses

  • 400 Bad Request: The expiration date is not in the future.
  • 401 Unauthorized: Request body fails validation, or a locker ID is not found in the module.

Applies a discount to one or more lockers of a module

PUThttps://api.moncasierfrais.fr/v1/locker/{moduleId}/discount

Applies a discount to one or more lockers of a module. Every locker ID must belong to the module, otherwise the request is rejected.

Path Parameters

ParamètreTypeDescription
moduleIdstringIdentifier of the module the lockers belong to.

Request Body

ParamètreTypeDescription
lockerIdsarray of stringsIDs of the lockers to discount. Each must belong to the module.
reductionTypenumberReduction type: 0 = none, 1 = fixed amount, 2 = percentage.
reductionAmountnumberDiscount amount. A fixed amount in centimes when reductionType is 1, or a percentage when reductionType is 2.

Example Usage

Apply locker discount
curl -X PUT \
'https://api.moncasierfrais.fr/v1/locker/66420f8558f23a6a26986d04/discount' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
  "lockerIds": ["68b6b71f0e55547ab74b5b18"],
  "reductionType": 2,
  "reductionAmount": 10
}'

Response

Success
{
  "success": true
}

Error Responses

  • 401 Unauthorized: Request body fails validation, or a locker ID is not found in the module.

Prepares one or more lockers of a module with a product

PUThttps://api.moncasierfrais.fr/v1/locker/{moduleId}/prepare

Prepares one or more lockers of a module with a product. The product is set as the locker's prepared product, so the locker can later be filled with /fill using a per-locker price or weight. This does not fill the locker. Every locker ID must belong to the module, otherwise the request is rejected.

Path Parameters

ParamètreTypeDescription
moduleIdstringIdentifier of the module the lockers belong to.

Request Body

ParamètreTypeDescription
lockerIdsarray of stringsIDs of the lockers to prepare. Each must belong to the module.
productIdstringIdentifier of the product to prepare in the lockers.

Example Usage

Prepare lockers
curl -X PUT \
'https://api.moncasierfrais.fr/v1/locker/66420f8558f23a6a26986d04/prepare' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
  "lockerIds": ["68b6b71f0e55547ab74b5b18"],
  "productId": "66f2a1c4e9b0d3a7c8f1b2e5"
}'

Response

Success
{
  "success": true
}

Error Responses

  • 401 Unauthorized: Request body fails validation, or a locker ID is not found in the module.

Marks one or more lockers of a module as no longer prepared

PUThttps://api.moncasierfrais.fr/v1/locker/{moduleId}/unprepare

Marks one or more lockers of a module as no longer prepared. Every locker ID must belong to the module, otherwise the request is rejected.

Path Parameters

ParamètreTypeDescription
moduleIdstringIdentifier of the module the lockers belong to.

Request Body

ParamètreTypeDescription
lockerIdsarray of stringsIDs of the lockers to unprepare. Each must belong to the module.

Example Usage

Unprepare lockers
curl -X PUT \
'https://api.moncasierfrais.fr/v1/locker/66420f8558f23a6a26986d04/unprepare' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
  "lockerIds": ["68b6b71f0e55547ab74b5b18"]
}'

Response

Success
{
  "success": true
}

Error Responses

  • 401 Unauthorized: Request body fails validation, or a locker ID is not found in the module.

Module

Récupérer une liste de modules associés au groupe de vendeurs

GEThttps://api.moncasierfrais.fr/v1/modules

Récupérer une liste de modules associés au groupe de vendeurs.

Data Model

ParamètreTypeDescription
idstringUnique identifier of the module.
namestringName of the module.
locationstringPhysical location of the module.
gpsCoordinatesarray of numbersGPS coordinates in the format [latitude, longitude].
lastPollnumber (milliseconds since epoch)Timestamp of the last poll in milliseconds since January 1, 1970.
eslShopCodestringShop code used for ESL (Electronic Shelf Label) integration.
frontendVersionstringVersion of the frontend software.
backendVersionstringVersion of the backend software.
isOnlinebooleanIndicates whether the module is currently online.
addonsstring[]List of added plugin (ex: ['esl', 'barcodes', ...] )
statusobjectCurrent status details of the module.
setupStatestringCurrent setup state of the module (e.g., 'installed').
stores{id,name}[]List of store provider (id: unique Id in store provider, name: 'uber', 'deliveroo', ...)
updatedAtstring (ISO 8601 date)Timestamp of the last update in ISO 8601 format.

Données API

Récupérer une liste de données API associées au groupe de vendeurs

GEThttps://api.moncasierfrais.fr/v1/api-data

Récupérer une liste de données API associées au groupe de vendeurs.

Data Model

ParamètreTypeDescription
idstringUnique identifier for the API data.
keystringKey of the API data.
valuemixedValue associated with the key.
sellerGroupIdstringIdentifier of the seller group.
createdAtstring (ISO 8601 date)Timestamp when the record was created.
updatedAtstring (ISO 8601 date)Timestamp when the record was last updated.

Crée une nouvelle donnée API

POSThttps://api.moncasierfrais.fr/v1/api-data

Crée une nouvelle donnée API.

Request Body

ParamètreTypeDescription
keystringKey of the API data.
valuemixedValue associated with the key.

Met à jour une donnée API existante

PUThttps://api.moncasierfrais.fr/v1/api-data/{id}

Met à jour une donnée API existante. Retourne une erreur si aucun champ ne peut être modifié.

Path Parameters

ParamètreTypeDescription
idstringID de la ressource à mettre à jour.
Fournissez l'identifiant via un paramètre de chemin (/:id).

Request Body

ParamètreTypeDescription
keystringKey of the API data.
valuemixedValue associated with the key.

Error Responses

  • 400 – Aucun champ valide fourni. Ajoutez au moins une propriété autorisée dans la requête.
  • 404 – Ressource introuvable pour votre groupe vendeur.
  • 500 – Erreur serveur inattendue. La réponse contient la cause de l'échec.

Supprime une donnée API existante

DELETEhttps://api.moncasierfrais.fr/v1/api-data/{id}

Supprime une donnée API existante. Fournit un message détaillé si l'élément est introuvable.

Path Parameters

ParamètreTypeDescription
idstringID de la ressource à supprimer.
Fournissez l'identifiant via un paramètre de chemin (/:id).

Error Responses

  • 400 – Identifiant manquant. Fournissez-le via un paramètre de chemin.
  • 404 – Ressource introuvable pour votre groupe vendeur.
  • 500 – Erreur serveur inattendue. La réponse contient la cause de l'échec.

Constantes

Récupérer une liste de constantes

GEThttps://api.moncasierfrais.fr/v1/constants

Récupérer une liste de constantes.

Data Model

ParamètreTypeDescription
idstringUnique identifier for the constant.
keystringKey of the constant.
typestringType of the constant.
valuemixedValue of the constant.
moduleIdstringIdentifier of the module associated with the constant.
createdAtstring (ISO 8601 date)Timestamp when the constant was created.
updatedAtstring (ISO 8601 date)Timestamp when the constant was last updated.

Coupons

Récupérer une liste de coupons

GEThttps://api.moncasierfrais.fr/v1/coupons

Récupérer une liste de coupons.

Data Model

ParamètreTypeDescription
idstringUnique identifier for the coupon.
namestringName of the coupon.
typestringType of the coupon.
codestringCode used to redeem the coupon.
amountnumberDiscount amount provided by the coupon.
concernedProductIdsarray of stringsList of product IDs the coupon applies to.
startDatestring (ISO 8601 date)Start date of the coupon's validity.
endDatestring (ISO 8601 date)End date of the coupon's validity.
cumulativebooleanIndicates if the coupon can be combined with other coupons.
minCartnumberMinimum cart value required to apply the coupon.
usagenumberNumber of times the coupon has been used.
maxUsagenumberMaximum number of times the coupon can be used.
emailstringEmail address associated with the coupon.
phoneNumberstringPhone number associated with the coupon.
emailHistoryarray of stringsHistory of email communications related to the coupon.
moduleIdstringIdentifier of the module associated with the coupon.
createdAtstring (ISO 8601 date)Timestamp when the coupon was created.
updatedAtstring (ISO 8601 date)Timestamp when the coupon was last updated.

ESL

Récupérer une liste d'étiquettes électroniques (ESL)

GEThttps://api.moncasierfrais.fr/v1/esl

Récupérer une liste d'étiquettes électroniques (ESL).

Data Model

ParamètreTypeDescription
idstringUnique identifier for the ESL.
shopCodestringCode of the shop the ESL belongs to.
eslIdstringIdentifier of the ESL device.
goodsCodestringCode of the goods associated with the ESL.
eslDatamixedData related to the ESL.
goodsDatamixedData related to the goods.
lockerIdstringIdentifier of the locker associated with the ESL.
lastLockerUpdatestring (ISO 8601 date)Timestamp of the last locker update.
moduleIdstringIdentifier of the module associated with the ESL.
createdAtstring (ISO 8601 date)Timestamp when the ESL record was created.
updatedAtstring (ISO 8601 date)Timestamp when the ESL record was last updated.

Casiers

Récupérer une liste de casiers

GEThttps://api.moncasierfrais.fr/v1/lockers

Récupérer une liste de casiers.

Data Model

ParamètreTypeDescription
idstringUnique identifier for the locker.
lockerBlocIdstringIdentifier of the locker bloc.
numbernumberNumber of the locker.
numberOnModulenumberNumber of the locker on the module.
statenumberCurrent state of the locker.
lockerPricenumberPrice associated with the locker.
dateOfFillingstring (ISO 8601 date)Date when the locker was filled.
dateOfExpirationstring (ISO 8601 date)Date when the locker expires.
currentProductmixedCurrent product stored in the locker.
currentProductIdstringIdentifier of the current product.
currentProductUnitstringUnit type of the current product.
currentProductUnitAmountnumberUnit amount of the current product.
preparedProductIdstringIdentifier of the prepared product.
eslIdstringIdentifier of the ESL associated with the locker.
moduleIdstringIdentifier of the module the locker belongs to.
createdAtstring (ISO 8601 date)Timestamp when the locker record was created.
updatedAtstring (ISO 8601 date)Timestamp when the locker record was last updated.

Blocs de casiers

Récupérer une liste de blocs de casiers

GEThttps://api.moncasierfrais.fr/v1/locker-blocs

Récupérer une liste de blocs de casiers.

Data Model

ParamètreTypeDescription
idstringUnique identifier for the locker bloc.
numbernumberNumber of the locker bloc.
blocTypenumberType of the locker bloc (0: 6x4, 1: 7x4, 2: 5x3).
numberOfLockersnumberTotal number of lockers in the bloc.
lightsAlwaysOnbooleanIndicates if the lights are always on.
temperatureMonitoringbooleanIndicates if temperature monitoring is enabled.
temperatureSetpointnumberDesired temperature setpoint.
temperatureDeltaSetpointnumberAllowed temperature variation from the setpoint.
temperatureDeltaAlertnumberTemperature variation threshold to trigger an alert.
temperatureMinutesBeforeAlertnumberMinutes before a temperature alert is triggered.
isInTemperatureAlertbooleanIndicates if the locker bloc is currently in a temperature alert state.
disabledbooleanIndicates if the locker bloc is disabled.
moduleIdstringIdentifier of the module the locker bloc belongs to.
createdAtstring (ISO 8601 date)Timestamp when the locker bloc was created.
updatedAtstring (ISO 8601 date)Timestamp when the locker bloc was last updated.

Logs

Récupérer une liste de logs

GEThttps://api.moncasierfrais.fr/v1/logs

Récupérer une liste de logs.

Data Model

ParamètreTypeDescription
idstringUnique identifier for the log entry.
typestringType of the log.
datastringData contained in the log.
moduleIdstringIdentifier of the module associated with the log.
createdAtstring (ISO 8601 date)Timestamp when the log was created.
updatedAtstring (ISO 8601 date)Timestamp when the log was last updated.

Commandes

Récupérer une liste de commandes

GEThttps://api.moncasierfrais.fr/v1/orders

Récupérer une liste de commandes.

Data Model

ParamètreTypeDescription
idstringUnique identifier for the order.
codestringUnique code of the order.
statenumberCurrent state of the order (0: pickedUp | 1: waiting for pick up | 2: not activated | 3: cancelled | 4: cancelledByExternalSystem | 5: toBeDelivered | 6: rejected).
paymentStatenumberPayment status of the order (0: paid, 1: to be paid on pickup).
pricenumberTotal price of the order.
VATnumberValue-added tax percentage.
externalIdstringExternal identifier for the order.
lockerIdsarray of stringsList of locker IDs associated with the order.
pickedUpAtstring (ISO 8601 date)Timestamp when the order was picked up.
clientEmailstringEmail of the client who made the order.
moduleIdstringIdentifier of the module associated with the order.
createdAtstring (ISO 8601 date)Timestamp when the order was created.
updatedAtstring (ISO 8601 date)Timestamp when the order was last updated.

Produits

Récupérer une liste de produits

GEThttps://api.moncasierfrais.fr/v1/products

Récupérer une liste de produits.

Data Model

ParamètreTypeDescription
idstringUnique identifier for the product.
productTypeIdstringIdentifier of the product type.
perUnitbooleanIf true, the product is sold per unit (not by weight).
unitTypestringUnit of measure when not per unit (allowed values: 'kg', 'l', 'unit').
imageBase64DatastringBase64-encoded main image available via the dedicated image endpoint.
thumbnailBase64DatastringBase64-encoded thumbnail generated by the platform.
namestringProduct name.
descriptionstringProduct description.
pricenumberProduct price stored in centimes (100 = 1.00€).
expirebooleanWhether the product expires.
expirationDelaynumberShelf-life duration in seconds.
expirationDiscountarray of objectsDiscounts applied as the product approaches expiration (see table below).
typeOfExpirationenumType of expiration: UBD | BBD. UBD is the use-by date (maximum consumption date), BBD is the best-before date (recommended consumption date).
availableInMixbooleanIf true, can be included in product mixes.
VATnumberVAT percentage (e.g., 5.5).
apiFieldstringAdditional API-related information.
sellerGroupIdstringIdentifier of the seller group.
ownerUserIdstringOwner user identifier (for attribution/transactions).
barcodeIdstring | string[]Single barcode or list of barcodes.
gtinstring | nullGTIN-14 of the product (14 characters), null when not set. Unique within the seller group.
availableOnlinebooleanAvailable for online ordering.
availableInModulebooleanAvailable in physical module/locker.
packagingOptionsobjectPackaging/selection options for weighted products (see table below).
creatorUserIdstringIdentifier of the user who created the product.
productMixCountnumberHow many units participate in a mix, if applicable.
createdAtstring (ISO 8601 date)Creation timestamp.
updatedAtstring (ISO 8601 date)Last update timestamp.

Expiration discount item

ParamètreTypeDescription
amountnumberDiscount amount (numeric value, meaning depends on type).
delaynumberTime before expiration to apply this discount, in seconds.
typenumberReduction type: 0 = none, 1 = fixed amount, 2 = percentage.

Packaging options

ParamètreTypeDescription
isUnitSelectionbooleanIf true, product is weighted but selectable by unit (e.g., sausages).
minnumberMinimum selectable weight/quantity.
maxnumberMaximum selectable weight/quantity.
stepnumberIncrement step for selection.

Crée un nouveau produit

POSThttps://api.moncasierfrais.fr/v1/products

Crée un nouveau produit.

Request Body

ParamètreTypeDescription
productTypeIdstringIdentifier of the product type.
perUnitbooleanIf true, the product is sold per unit.
unitTypestringUnit of measure when not per unit (allowed values: 'kg', 'l', 'unit').
namestringProduct name.
descriptionstringProduct description.
pricenumberPrice in centimes (100 = 1.00€).
expirebooleanWhether the product expires.
expirationDelaynumberShelf-life duration in seconds.
expirationDiscountarray of objectsDiscount rules near expiration.
typeOfExpirationenumType of expiration: UBD | BBD. UBD is the use-by date (maximum consumption date), BBD is the best-before date (recommended consumption date).
availableInMixbooleanEligible for mixes.
VATnumberVAT percentage.
apiFieldstringAdditional API-related information.
ownerUserIdstringOwner user id.
barcodeIdstring | string[]Barcode(s). Each barcode must not be used by another product of the seller group.
gtinstring | nullGTIN-14 (14 alphanumeric characters). Shorter digit-only codes (EAN-13, UPC-12, GTIN-8) are left-padded with zeros. Must not be used by another product of the seller group. Send null or an empty string to clear it.
availableOnlinebooleanAvailable online.
availableInModulebooleanAvailable in module.
packagingOptionsobjectPackaging/selection options (see above).
creatorUserIdstringCreator user id.
productMixCountnumberMix count if applicable.
Téléversez les images produit avec PUT /v1/products/{id}/image. Les endpoints généraux ignorent les champs imageBase64Data et thumbnailBase64Data.

Error Responses

  • 400 Bad Request: The GTIN is not 14 alphanumeric characters.
  • 409 Conflict: A barcode or GTIN is already used by another product of the seller group. The message names the product, details lists each conflicting product (id, name, shared barcodes and gtin). Archived products do not count.

Met à jour un produit existant avec assainissement des champs et suivi des modifications

PUThttps://api.moncasierfrais.fr/v1/products/{id}

Met à jour un produit existant avec assainissement des champs et suivi des modifications.

Path Parameters

ParamètreTypeDescription
idstringID de la ressource à mettre à jour.
Fournissez l'identifiant via un paramètre de chemin (/:id).

Request Body

ParamètreTypeDescription
productTypeIdstringIdentifier of the product type.
perUnitbooleanSold per unit.
unitTypestringUnit of measure when not per unit (allowed values: 'kg', 'l', 'unit').
namestringProduct name.
descriptionstringProduct description.
pricenumberPrice in centimes (100 = 1.00€).
expirebooleanWhether the product expires.
expirationDelaynumberShelf-life duration in seconds.
expirationDiscountarray of objectsDiscount rules near expiration.
typeOfExpirationenumType of expiration: UBD | BBD. UBD is the use-by date (maximum consumption date), BBD is the best-before date (recommended consumption date).
availableInMixbooleanEligible for mixes.
VATnumberVAT percentage.
apiFieldstringAdditional API-related information.
ownerUserIdstringOwner user id.
barcodeIdstring | string[]Barcode(s). Each barcode must not be used by another product of the seller group.
gtinstring | nullGTIN-14 (14 alphanumeric characters). Shorter digit-only codes (EAN-13, UPC-12, GTIN-8) are left-padded with zeros. Must not be used by another product of the seller group. Send null or an empty string to clear it.
availableOnlinebooleanAvailable online.
availableInModulebooleanAvailable in module.
packagingOptionsobjectPackaging/selection options (see above).
creatorUserIdstringCreator user id.
productMixCountnumberMix count if applicable.
Téléversez les images produit avec PUT /v1/products/{id}/image. Les endpoints généraux ignorent les champs imageBase64Data et thumbnailBase64Data.

Error Responses

  • 400 – Aucun champ valide fourni. Ajoutez au moins une propriété autorisée dans la requête.
  • 404 – Ressource introuvable pour votre groupe vendeur.
  • 400 Bad Request: The GTIN is not 14 alphanumeric characters.
  • 409 Conflict: A barcode or GTIN is already used by another product of the seller group. The message names the product, details lists each conflicting product (id, name, shared barcodes and gtin). Archived products do not count.
  • 500 – Erreur serveur inattendue. La réponse contient la cause de l'échec.

Récupère l'image en haute qualité d'un produit

GEThttps://api.moncasierfrais.fr/v1/products/{id}/image

Récupère l'image en haute qualité d'un produit. Utilisez cet endpoint lorsque la miniature renvoyée par les endpoints catalogue ne suffit pas (zoom, affichage haute résolution, etc.).

Path Parameters

ParamètreTypeDescription
idstringIdentifiant du produit dont l'image doit être récupérée.

Response Body

ParamètreTypeDescription
idstringIdentifiant du produit auquel l'image appartient.
imageBase64DatastringImage complète encodée en base64 (redimensionnée à 900×655 lors du téléversement).
thumbnailBase64DatastringMiniature encodée en base64 (90×90) — déjà exposée dans les réponses catalogue.
updatedAtstring (ISO 8601 date)Horodatage de la dernière mise à jour du produit.

Example Usage

Récupérer l'image produit en haute qualité
curl -X GET \
'https://api.moncasierfrais.fr/v1/products/68b6b71f0e55547ab74b5b18/image' \
-H 'Authorization: Bearer YOUR_API_TOKEN'

Error Responses

  • 400 – Identifiant manquant. Fournissez-le via un paramètre de chemin.
  • 404 – Ressource introuvable pour votre groupe vendeur.
  • 500 – Erreur serveur inattendue. La réponse contient la cause de l'échec.

Téléverse ou remplace l'image principale d'un produit existant

PUThttps://api.moncasierfrais.fr/v1/products/{id}/image

Téléverse ou remplace l'image principale d'un produit existant. L'API compresse automatiquement l'image et génère la miniature.

Path Parameters

ParamètreTypeDescription
idstringID de la ressource à mettre à jour.

Request Body

ParamètreTypeDescription
imageBase64Data *stringImage encodée en base64. Envoyez uniquement l'image principale ; l'API crée la miniature.
Les images sont automatiquement redimensionnées à 900×655 et compressées (miniature : 90×90).

Error Responses

  • 400 – Identifiant manquant. Fournissez-le via un paramètre de chemin.
  • 400 – Aucun champ valide fourni. Ajoutez au moins une propriété autorisée dans la requête.
  • 404 – Ressource introuvable pour votre groupe vendeur.
  • 500 – Erreur serveur inattendue. La réponse contient la cause de l'échec.

Supprime un produit existant dans le groupe vendeur courant

DELETEhttps://api.moncasierfrais.fr/v1/products/{id}

Supprime un produit existant dans le groupe vendeur courant.

Path Parameters

ParamètreTypeDescription
idstringID de la ressource à supprimer.
Fournissez l'identifiant via un paramètre de chemin (/:id).

Error Responses

  • 400 – Identifiant manquant. Fournissez-le via un paramètre de chemin.
  • 404 – Ressource introuvable pour votre groupe vendeur.
  • 500 – Erreur serveur inattendue. La réponse contient la cause de l'échec.

Types de produits

Récupérer une liste de types de produits

GEThttps://api.moncasierfrais.fr/v1/product-types

Récupérer une liste de types de produits.

Data Model

ParamètreTypeDescription
idstringUnique identifier for the product type.
namestringName of the product type.
descriptionstringDescription of the product type.
ordernumberDefines sorting priority. Lower values appear first when sorting ascending.
sellerGroupIdstringIdentifier of the seller group.
createdAtstring (ISO 8601 date)Timestamp when the product type was created.
updatedAtstring (ISO 8601 date)Timestamp when the product type was last updated.

Crée un nouveau type de produit

POSThttps://api.moncasierfrais.fr/v1/product-types

Crée un nouveau type de produit.

Request Body

ParamètreTypeDescription
namestringname of the product type
descriptionstringdescription of the product type
ordernumberOptional custom sort order (defaults to 0).

Met à jour un type de produit existant

PUThttps://api.moncasierfrais.fr/v1/product-types/{id}

Met à jour un type de produit existant. Retourne une réponse claire si rien ne change.

Path Parameters

ParamètreTypeDescription
idstringID de la ressource à mettre à jour.
Fournissez l'identifiant via un paramètre de chemin (/:id).

Request Body

ParamètreTypeDescription
namestringname of the product type
descriptionstringdescription of the product type
ordernumberSorting priority (lower first).

Error Responses

  • 400 – Aucun champ valide fourni. Ajoutez au moins une propriété autorisée dans la requête.
  • 404 – Ressource introuvable pour votre groupe vendeur.
  • 500 – Erreur serveur inattendue. La réponse contient la cause de l'échec.

Supprime un type de produit existant limité au groupe vendeur

DELETEhttps://api.moncasierfrais.fr/v1/product-types/{id}

Supprime un type de produit existant limité au groupe vendeur.

Path Parameters

ParamètreTypeDescription
idstringID de la ressource à supprimer.
Fournissez l'identifiant via un paramètre de chemin (/:id).

Error Responses

  • 400 – Identifiant manquant. Fournissez-le via un paramètre de chemin.
  • 404 – Ressource introuvable pour votre groupe vendeur.
  • 500 – Erreur serveur inattendue. La réponse contient la cause de l'échec.

Températures

Récupérer une liste de relevés de température

GEThttps://api.moncasierfrais.fr/v1/temperatures

Récupérer une liste de relevés de température.

Data Model

ParamètreTypeDescription
idstringUnique identifier for the temperature reading.
lockerBlocIdstringIdentifier of the locker bloc.
temperatureSetpointnumberTemperature setpoint.
temperatureDeltaSetpointnumberAllowed variation from the setpoint.
valuenumberRecorded temperature value.
sensorNumbernumberNumber of the temperature sensor.
moduleIdstringIdentifier of the module.
createdAtstring (ISO 8601 date)Timestamp when the temperature was recorded.

Transactions

Récupérer une liste de transactions

GEThttps://api.moncasierfrais.fr/v1/transactions

Récupérer une liste de transactions.

Data Model

ParamètreTypeDescription
idstringUnique identifier for the transaction.
productsobjectDetails of the products involved in the transaction.
ordersobjectDetails of orders involved in the transaction.
couponsobjectDetails of the coupons applied in the transaction.
totalPricenumberTotal price before reductions.
netPricenumberFinal price after reductions.
reductionnumberTotal amount reduced from the original price.
paymentTypestringType of payment used.
maskedCardNumberstringMasked credit card number used for payment.
contactlessbooleanIndicates if the payment was contactless.
conecsbooleanIndicates if the payment used Conecs system.
moduleIdstringIdentifier of the module where the transaction occurred.
createdAtstring (ISO 8601 date)Timestamp when the transaction was created.
updatedAtstring (ISO 8601 date)Timestamp when the transaction was last updated.
Logo MonCasierFrais.frDocs