Documentation de l'API MonCasierFrais
Ce document illustre le fonctionnement de l'API MonCasierFrais et la liste des routes exposées.
Échec de la copie. Merci de copier manuellement.
https://api.moncasierfrais.fr/v1L'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 :
- Email: support@moncasierfrais.fr
- Téléphone: +33 4 81 16 12 02
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.
Authorization: Bearer MCF-ge0Ip.....GslMogFiltrage
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.
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.
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
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ètre | Type | Description |
|---|---|---|
moduleId | string | L'identifiant unique du module pour récupérer le catalogue en temps réel. |
Exemple d'utilisation
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€)
{
"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ètre | Type | Description |
|---|---|---|
moduleId | string | L'identifiant unique du module pour obtenir l'inventaire. |
Example Usage
curl -X GET \
'https://api.moncasierfrais.fr/v1/catalog/inventory/66420f8558f23a6a26986d04' \
-H 'Authorization: Bearer YOUR_API_TOKEN'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ètre | Type | Description |
|---|---|---|
moduleId | string | Identifiant unique du module pour obtenir le catalogue de livraison |
Example Usage
curl -X GET \
'https://api.moncasierfrais.fr/v1/catalog/delivery/66420f8558f23a6a26986d04' \
-H 'Authorization: Bearer YOUR_API_TOKEN'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ètre | Type | Description |
|---|---|---|
moduleId | string | Identifiant unique du module où la commande sera placée. |
Corps de la requête
| Paramètre | Type | Description |
|---|---|---|
name | string | Nom de la commande. |
code | string | Code de retrait à 6 chiffres (ex: '123456') utilisé par les clients pour identifier leur commande. |
paymentState | number | Statut de paiement (0: payé, 1: à payer lors du retrait). |
price | number | Prix total en centimes. |
VAT | number | Pourcentage de TVA. |
lockerIds | array of strings | Tableau d'identifiants de casiers (doit être un tableau vide [] pour les commandes de livraison). |
products | array of objects | Tableau de produits avec quantités (voir structure ProductOrder ci-dessous). |
expectedDeliveryDate | string (ISO 8601 date) | Date de livraison prévue (requis pour les commandes de livraison). |
clientEmail | string | Adresse e-mail du client (requis pour les commandes de livraison). |
additionalClientInfo | object | Informations client supplémentaires (requis pour les commandes de livraison). |
additionalClientInfo.phone | string | Numéro de téléphone du client. |
additionalClientInfo.name | string | Nom de la commande. |
externalId | string | Identifiant de commande du système externe. |
externalUserId | string | Identifiant d'utilisateur du système externe. |
comments | string | Commentaires de l'utilisateur final vers le vendeur (ex: instructions spéciales, notes de livraison, etc.). |
Structure ProductOrder
| Paramètre | Type | Description |
|---|---|---|
productId | string | Identifiant du produit. |
packingQuantity | array of numbers | Tableau 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
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
{
"message": "Order created successfully"
}Réponses d'erreur
400 Requête incorrecte
{
"error": "Invalid JSON: Request body is empty or not valid JSON"
}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ètre | Type | Description |
|---|---|---|
moduleId | string | L'identifiant unique du module où la commande a été passée. |
Corps de la requête
| Paramètre | Type | Description |
|---|---|---|
id | string | L'identifiant unique de la commande à annuler. |
reason | string | La raison de l'annulation de la commande (requise pour la notification de l'utilisateur final). |
Exemple d'utilisation
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
{
"message": "Order cancelled successfully"
}Réponses d'erreur
Mauvaise requête (400)
{
"error": "Order ID is required"
}Non trouvé (404)
{
"error": "Order not found"
}Conflit (409)
{
"error": "Order cancellation is already being processed"
}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ètre | Type | Description |
|---|---|---|
moduleId | string | Identifier of the module the order belongs to. |
Request Body
| Paramètre | Type | Description |
|---|---|---|
id | string | Identifier of the order. |
paymentState | number | New payment state: 0 = paid, 1 = to be paid on pickup. |
Example Usage
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
{
"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 (
idis not a valid identifier, orpaymentStateis not0or1). - 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
idexists on this module. - 409 Conflict: The same payment state change for this order is already waiting to be processed by the module.
{
"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ètre | Type | Description |
|---|---|---|
moduleId | string | Identifiant unique du module où les casiers seront réservés. |
Corps de la requête
| Paramètre | Type | Description |
|---|---|---|
name | string | Nom de la commande de réservation de casiers. |
code | string | Code de retrait à 6 chiffres (ex: '123456') utilisé par les clients pour identifier leur commande. |
lockerIds | array of strings | Tableau d'identifiants de casiers à réserver (au moins un requis). |
clientEmail | string | Adresse e-mail du client (requis). |
isPaid | boolean | Statut de paiement (true: payé d'avance, false: à payer lors du retrait). |
price | number | Prix total en centimes (optionnel). |
VAT | number | Pourcentage de TVA (optionnel). |
externalId | string | Identifiant de commande du système externe (optionnel). |
externalUserId | string | Identifiant d'utilisateur du système externe (optionnel). |
comments | string | Commentaires de l'utilisateur final vers le vendeur (optionnel). |
Exemple d'utilisation
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
{
"success": true,
"orderId": "order_12345",
"lockerIds": ["locker_001", "locker_002"],
"totalPrice": 1500,
"message": "Lockers booked successfully"
}Réponses d'erreur
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
{
"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ètre | Type | Description |
|---|---|---|
moduleId | string | Identifier of the module the lockers belong to. |
Request Body
| Paramètre | Type | Description |
|---|---|---|
lockerIds | array of strings | Lockers filled with a classic product (no price or weight override). |
lockerIdsAndPrices | array of objects | Lockers whose price the operator wants to set at filling time (see structure below). |
lockerIdsAndWeights | array of objects | Lockers filled with a weighted product (see structure below). |
productIdsAndAmountMix | array of objects | Products composing a product mix to place in the locker (see structure below). |
Locker price item — lockerIdsAndPrices
| Paramètre | Type | Description |
|---|---|---|
lockerId | string | Identifier of the locker. |
price | number | Price to set on the locker, in centimes (100 = 1.00€). |
Locker weight item — lockerIdsAndWeights
| Paramètre | Type | Description |
|---|---|---|
lockerId | string | Identifier of the locker. |
weight | number | Weight to set on the locker. |
Mix product item — productIdsAndAmountMix
| Paramètre | Type | Description |
|---|---|---|
productId | string | Identifier of the product included in the mix. |
amount | number | Quantity 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
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": 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ètre | Type | Description |
|---|---|---|
moduleId | string | Identifier of the module the lockers belong to. |
Request Body
| Paramètre | Type | Description |
|---|---|---|
lockerIds | array of strings | IDs of the lockers to empty. Each must belong to the module. |
Example Usage
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": 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ètre | Type | Description |
|---|---|---|
moduleId | string | Identifier of the module the lockers belong to. |
Request Body
| Paramètre | Type | Description |
|---|---|---|
lockerIds | array of strings | IDs of the lockers to open. Each must belong to the module. |
Example Usage
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": 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ètre | Type | Description |
|---|---|---|
moduleId | string | Identifier of the module the lockers belong to. |
Request Body
| Paramètre | Type | Description |
|---|---|---|
lockerIds | array of strings | IDs of the lockers to update. Each must belong to the module. |
dateOfExpiration | string (ISO 8601 date) | Expiration date to apply. Must be in the future. |
Example Usage
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": 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ètre | Type | Description |
|---|---|---|
moduleId | string | Identifier of the module the lockers belong to. |
Request Body
| Paramètre | Type | Description |
|---|---|---|
lockerIds | array of strings | IDs of the lockers to discount. Each must belong to the module. |
reductionType | number | Reduction type: 0 = none, 1 = fixed amount, 2 = percentage. |
reductionAmount | number | Discount amount. A fixed amount in centimes when reductionType is 1, or a percentage when reductionType is 2. |
Example Usage
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": 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ètre | Type | Description |
|---|---|---|
moduleId | string | Identifier of the module the lockers belong to. |
Request Body
| Paramètre | Type | Description |
|---|---|---|
lockerIds | array of strings | IDs of the lockers to prepare. Each must belong to the module. |
productId | string | Identifier of the product to prepare in the lockers. |
Example Usage
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": 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ètre | Type | Description |
|---|---|---|
moduleId | string | Identifier of the module the lockers belong to. |
Request Body
| Paramètre | Type | Description |
|---|---|---|
lockerIds | array of strings | IDs of the lockers to unprepare. Each must belong to the module. |
Example Usage
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": 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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier of the module. |
name | string | Name of the module. |
location | string | Physical location of the module. |
gpsCoordinates | array of numbers | GPS coordinates in the format [latitude, longitude]. |
lastPoll | number (milliseconds since epoch) | Timestamp of the last poll in milliseconds since January 1, 1970. |
eslShopCode | string | Shop code used for ESL (Electronic Shelf Label) integration. |
frontendVersion | string | Version of the frontend software. |
backendVersion | string | Version of the backend software. |
isOnline | boolean | Indicates whether the module is currently online. |
addons | string[] | List of added plugin (ex: ['esl', 'barcodes', ...] ) |
status | object | Current status details of the module. |
setupState | string | Current setup state of the module (e.g., 'installed'). |
stores | {id,name}[] | List of store provider (id: unique Id in store provider, name: 'uber', 'deliveroo', ...) |
updatedAt | string (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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier for the API data. |
key | string | Key of the API data. |
value | mixed | Value associated with the key. |
sellerGroupId | string | Identifier of the seller group. |
createdAt | string (ISO 8601 date) | Timestamp when the record was created. |
updatedAt | string (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ètre | Type | Description |
|---|---|---|
key | string | Key of the API data. |
value | mixed | Value 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ètre | Type | Description |
|---|---|---|
id | string | ID de la ressource à mettre à jour. |
Fournissez l'identifiant via un paramètre de chemin (/:id).
Request Body
| Paramètre | Type | Description |
|---|---|---|
key | string | Key of the API data. |
value | mixed | Value 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ètre | Type | Description |
|---|---|---|
id | string | ID 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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier for the constant. |
key | string | Key of the constant. |
type | string | Type of the constant. |
value | mixed | Value of the constant. |
moduleId | string | Identifier of the module associated with the constant. |
createdAt | string (ISO 8601 date) | Timestamp when the constant was created. |
updatedAt | string (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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier for the coupon. |
name | string | Name of the coupon. |
type | string | Type of the coupon. |
code | string | Code used to redeem the coupon. |
amount | number | Discount amount provided by the coupon. |
concernedProductIds | array of strings | List of product IDs the coupon applies to. |
startDate | string (ISO 8601 date) | Start date of the coupon's validity. |
endDate | string (ISO 8601 date) | End date of the coupon's validity. |
cumulative | boolean | Indicates if the coupon can be combined with other coupons. |
minCart | number | Minimum cart value required to apply the coupon. |
usage | number | Number of times the coupon has been used. |
maxUsage | number | Maximum number of times the coupon can be used. |
email | string | Email address associated with the coupon. |
phoneNumber | string | Phone number associated with the coupon. |
emailHistory | array of strings | History of email communications related to the coupon. |
moduleId | string | Identifier of the module associated with the coupon. |
createdAt | string (ISO 8601 date) | Timestamp when the coupon was created. |
updatedAt | string (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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier for the ESL. |
shopCode | string | Code of the shop the ESL belongs to. |
eslId | string | Identifier of the ESL device. |
goodsCode | string | Code of the goods associated with the ESL. |
eslData | mixed | Data related to the ESL. |
goodsData | mixed | Data related to the goods. |
lockerId | string | Identifier of the locker associated with the ESL. |
lastLockerUpdate | string (ISO 8601 date) | Timestamp of the last locker update. |
moduleId | string | Identifier of the module associated with the ESL. |
createdAt | string (ISO 8601 date) | Timestamp when the ESL record was created. |
updatedAt | string (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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier for the locker. |
lockerBlocId | string | Identifier of the locker bloc. |
number | number | Number of the locker. |
numberOnModule | number | Number of the locker on the module. |
state | number | Current state of the locker. |
lockerPrice | number | Price associated with the locker. |
dateOfFilling | string (ISO 8601 date) | Date when the locker was filled. |
dateOfExpiration | string (ISO 8601 date) | Date when the locker expires. |
currentProduct | mixed | Current product stored in the locker. |
currentProductId | string | Identifier of the current product. |
currentProductUnit | string | Unit type of the current product. |
currentProductUnitAmount | number | Unit amount of the current product. |
preparedProductId | string | Identifier of the prepared product. |
eslId | string | Identifier of the ESL associated with the locker. |
moduleId | string | Identifier of the module the locker belongs to. |
createdAt | string (ISO 8601 date) | Timestamp when the locker record was created. |
updatedAt | string (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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier for the locker bloc. |
number | number | Number of the locker bloc. |
blocType | number | Type of the locker bloc (0: 6x4, 1: 7x4, 2: 5x3). |
numberOfLockers | number | Total number of lockers in the bloc. |
lightsAlwaysOn | boolean | Indicates if the lights are always on. |
temperatureMonitoring | boolean | Indicates if temperature monitoring is enabled. |
temperatureSetpoint | number | Desired temperature setpoint. |
temperatureDeltaSetpoint | number | Allowed temperature variation from the setpoint. |
temperatureDeltaAlert | number | Temperature variation threshold to trigger an alert. |
temperatureMinutesBeforeAlert | number | Minutes before a temperature alert is triggered. |
isInTemperatureAlert | boolean | Indicates if the locker bloc is currently in a temperature alert state. |
disabled | boolean | Indicates if the locker bloc is disabled. |
moduleId | string | Identifier of the module the locker bloc belongs to. |
createdAt | string (ISO 8601 date) | Timestamp when the locker bloc was created. |
updatedAt | string (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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier for the log entry. |
type | string | Type of the log. |
data | string | Data contained in the log. |
moduleId | string | Identifier of the module associated with the log. |
createdAt | string (ISO 8601 date) | Timestamp when the log was created. |
updatedAt | string (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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier for the order. |
code | string | Unique code of the order. |
state | number | Current state of the order (0: pickedUp | 1: waiting for pick up | 2: not activated | 3: cancelled | 4: cancelledByExternalSystem | 5: toBeDelivered | 6: rejected). |
paymentState | number | Payment status of the order (0: paid, 1: to be paid on pickup). |
price | number | Total price of the order. |
VAT | number | Value-added tax percentage. |
externalId | string | External identifier for the order. |
lockerIds | array of strings | List of locker IDs associated with the order. |
pickedUpAt | string (ISO 8601 date) | Timestamp when the order was picked up. |
clientEmail | string | Email of the client who made the order. |
moduleId | string | Identifier of the module associated with the order. |
createdAt | string (ISO 8601 date) | Timestamp when the order was created. |
updatedAt | string (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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier for the product. |
productTypeId | string | Identifier of the product type. |
perUnit | boolean | If true, the product is sold per unit (not by weight). |
unitType | string | Unit of measure when not per unit (allowed values: 'kg', 'l', 'unit'). |
imageBase64Data | string | Base64-encoded main image available via the dedicated image endpoint. |
thumbnailBase64Data | string | Base64-encoded thumbnail generated by the platform. |
name | string | Product name. |
description | string | Product description. |
price | number | Product price stored in centimes (100 = 1.00€). |
expire | boolean | Whether the product expires. |
expirationDelay | number | Shelf-life duration in seconds. |
expirationDiscount | array of objects | Discounts applied as the product approaches expiration (see table below). |
typeOfExpiration | enum | Type of expiration: UBD | BBD. UBD is the use-by date (maximum consumption date), BBD is the best-before date (recommended consumption date). |
availableInMix | boolean | If true, can be included in product mixes. |
VAT | number | VAT percentage (e.g., 5.5). |
apiField | string | Additional API-related information. |
sellerGroupId | string | Identifier of the seller group. |
ownerUserId | string | Owner user identifier (for attribution/transactions). |
barcodeId | string | string[] | Single barcode or list of barcodes. |
gtin | string | null | GTIN-14 of the product (14 characters), null when not set. Unique within the seller group. |
availableOnline | boolean | Available for online ordering. |
availableInModule | boolean | Available in physical module/locker. |
packagingOptions | object | Packaging/selection options for weighted products (see table below). |
creatorUserId | string | Identifier of the user who created the product. |
productMixCount | number | How many units participate in a mix, if applicable. |
createdAt | string (ISO 8601 date) | Creation timestamp. |
updatedAt | string (ISO 8601 date) | Last update timestamp. |
Expiration discount item
| Paramètre | Type | Description |
|---|---|---|
amount | number | Discount amount (numeric value, meaning depends on type). |
delay | number | Time before expiration to apply this discount, in seconds. |
type | number | Reduction type: 0 = none, 1 = fixed amount, 2 = percentage. |
Packaging options
| Paramètre | Type | Description |
|---|---|---|
isUnitSelection | boolean | If true, product is weighted but selectable by unit (e.g., sausages). |
min | number | Minimum selectable weight/quantity. |
max | number | Maximum selectable weight/quantity. |
step | number | Increment step for selection. |
Crée un nouveau produit
POSThttps://api.moncasierfrais.fr/v1/products
Crée un nouveau produit.
Request Body
| Paramètre | Type | Description |
|---|---|---|
productTypeId | string | Identifier of the product type. |
perUnit | boolean | If true, the product is sold per unit. |
unitType | string | Unit of measure when not per unit (allowed values: 'kg', 'l', 'unit'). |
name | string | Product name. |
description | string | Product description. |
price | number | Price in centimes (100 = 1.00€). |
expire | boolean | Whether the product expires. |
expirationDelay | number | Shelf-life duration in seconds. |
expirationDiscount | array of objects | Discount rules near expiration. |
typeOfExpiration | enum | Type of expiration: UBD | BBD. UBD is the use-by date (maximum consumption date), BBD is the best-before date (recommended consumption date). |
availableInMix | boolean | Eligible for mixes. |
VAT | number | VAT percentage. |
apiField | string | Additional API-related information. |
ownerUserId | string | Owner user id. |
barcodeId | string | string[] | Barcode(s). Each barcode must not be used by another product of the seller group. |
gtin | string | null | GTIN-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. |
availableOnline | boolean | Available online. |
availableInModule | boolean | Available in module. |
packagingOptions | object | Packaging/selection options (see above). |
creatorUserId | string | Creator user id. |
productMixCount | number | Mix 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,
detailslists each conflicting product (id,name, sharedbarcodesandgtin). 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ètre | Type | Description |
|---|---|---|
id | string | ID de la ressource à mettre à jour. |
Fournissez l'identifiant via un paramètre de chemin (/:id).
Request Body
| Paramètre | Type | Description |
|---|---|---|
productTypeId | string | Identifier of the product type. |
perUnit | boolean | Sold per unit. |
unitType | string | Unit of measure when not per unit (allowed values: 'kg', 'l', 'unit'). |
name | string | Product name. |
description | string | Product description. |
price | number | Price in centimes (100 = 1.00€). |
expire | boolean | Whether the product expires. |
expirationDelay | number | Shelf-life duration in seconds. |
expirationDiscount | array of objects | Discount rules near expiration. |
typeOfExpiration | enum | Type of expiration: UBD | BBD. UBD is the use-by date (maximum consumption date), BBD is the best-before date (recommended consumption date). |
availableInMix | boolean | Eligible for mixes. |
VAT | number | VAT percentage. |
apiField | string | Additional API-related information. |
ownerUserId | string | Owner user id. |
barcodeId | string | string[] | Barcode(s). Each barcode must not be used by another product of the seller group. |
gtin | string | null | GTIN-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. |
availableOnline | boolean | Available online. |
availableInModule | boolean | Available in module. |
packagingOptions | object | Packaging/selection options (see above). |
creatorUserId | string | Creator user id. |
productMixCount | number | Mix 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,
detailslists each conflicting product (id,name, sharedbarcodesandgtin). 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ètre | Type | Description |
|---|---|---|
id | string | Identifiant du produit dont l'image doit être récupérée. |
Response Body
| Paramètre | Type | Description |
|---|---|---|
id | string | Identifiant du produit auquel l'image appartient. |
imageBase64Data | string | Image complète encodée en base64 (redimensionnée à 900×655 lors du téléversement). |
thumbnailBase64Data | string | Miniature encodée en base64 (90×90) — déjà exposée dans les réponses catalogue. |
updatedAt | string (ISO 8601 date) | Horodatage de la dernière mise à jour du produit. |
Example Usage
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ètre | Type | Description |
|---|---|---|
id | string | ID de la ressource à mettre à jour. |
Request Body
| Paramètre | Type | Description |
|---|---|---|
imageBase64Data * | string | Image 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ètre | Type | Description |
|---|---|---|
id | string | ID 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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier for the product type. |
name | string | Name of the product type. |
description | string | Description of the product type. |
order | number | Defines sorting priority. Lower values appear first when sorting ascending. |
sellerGroupId | string | Identifier of the seller group. |
createdAt | string (ISO 8601 date) | Timestamp when the product type was created. |
updatedAt | string (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ètre | Type | Description |
|---|---|---|
name | string | name of the product type |
description | string | description of the product type |
order | number | Optional 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ètre | Type | Description |
|---|---|---|
id | string | ID de la ressource à mettre à jour. |
Fournissez l'identifiant via un paramètre de chemin (/:id).
Request Body
| Paramètre | Type | Description |
|---|---|---|
name | string | name of the product type |
description | string | description of the product type |
order | number | Sorting 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ètre | Type | Description |
|---|---|---|
id | string | ID 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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier for the temperature reading. |
lockerBlocId | string | Identifier of the locker bloc. |
temperatureSetpoint | number | Temperature setpoint. |
temperatureDeltaSetpoint | number | Allowed variation from the setpoint. |
value | number | Recorded temperature value. |
sensorNumber | number | Number of the temperature sensor. |
moduleId | string | Identifier of the module. |
createdAt | string (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ètre | Type | Description |
|---|---|---|
id | string | Unique identifier for the transaction. |
products | object | Details of the products involved in the transaction. |
orders | object | Details of orders involved in the transaction. |
coupons | object | Details of the coupons applied in the transaction. |
totalPrice | number | Total price before reductions. |
netPrice | number | Final price after reductions. |
reduction | number | Total amount reduced from the original price. |
paymentType | string | Type of payment used. |
maskedCardNumber | string | Masked credit card number used for payment. |
contactless | boolean | Indicates if the payment was contactless. |
conecs | boolean | Indicates if the payment used Conecs system. |
moduleId | string | Identifier of the module where the transaction occurred. |
createdAt | string (ISO 8601 date) | Timestamp when the transaction was created. |
updatedAt | string (ISO 8601 date) | Timestamp when the transaction was last updated. |