{
  "openapi": "3.1.0",
  "info": {
    "title": "Kash.click Partner API v1 · Autres lectures",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "/api/partner/v1"
    }
  ],
  "paths": {
    "/department-groups": {
      "get": {
        "operationId": "listPartnerDepartmentGroups",
        "summary": "Groupes de rayons",
        "description": "Liste les groupes de rayons de la boutique.",
        "tags": [
          "Catalogue"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "catalog.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Limit"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Résultats.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DepartmentGroupsItem"
                      },
                      "maxItems": 200
                    },
                    "pagination": {
                      "$ref": "./openapi-partner-v1-reference-lists.json#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/product-variants": {
      "get": {
        "operationId": "listPartnerProductVariants",
        "summary": "Déclinaisons d’articles",
        "description": "Liste les choix de déclinaison actifs et le nom de leur déclinaison.",
        "tags": [
          "Catalogue"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "catalog.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Limit"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Résultats.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProductVariantsItem"
                      },
                      "maxItems": 200
                    },
                    "pagination": {
                      "$ref": "./openapi-partner-v1-reference-lists.json#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/discounts": {
      "get": {
        "operationId": "listPartnerDiscounts",
        "summary": "Réductions",
        "description": "Liste les réductions de la boutique. totalMin dépend de la configuration.",
        "tags": [
          "Catalogue"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "catalog.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Limit"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Résultats.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DiscountsItem"
                      },
                      "maxItems": 200
                    },
                    "pagination": {
                      "$ref": "./openapi-partner-v1-reference-lists.json#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/users": {
      "get": {
        "operationId": "listPartnerUsers",
        "summary": "Collaborateurs",
        "description": "Liste les collaborateurs actifs. La colonne codeBarre est toujours vide. include_access=1 ajoute l’état et la version.",
        "tags": [
          "Settings"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "settings.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Limit"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Cursor"
          },
          {
            "name": "include_access",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "default": 0
            },
            "description": "1 inclut state et version."
          }
        ],
        "responses": {
          "200": {
            "description": "Résultats.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/UsersItem"
                      },
                      "maxItems": 200
                    },
                    "pagination": {
                      "$ref": "./openapi-partner-v1-reference-lists.json#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/cash-registers": {
      "get": {
        "operationId": "listPartnerCashRegisters",
        "summary": "Caisses",
        "description": "Liste les caisses de la boutique avec leur état.",
        "tags": [
          "Settings"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "settings.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Limit"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Résultats.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/CashRegistersItem"
                      },
                      "maxItems": 200
                    },
                    "pagination": {
                      "$ref": "./openapi-partner-v1-reference-lists.json#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/tables": {
      "get": {
        "operationId": "listPartnerTables",
        "summary": "Tables",
        "description": "Liste les tables de la boutique avec leur numéro de salle.",
        "tags": [
          "Settings"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "settings.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Limit"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Résultats.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TablesItem"
                      },
                      "maxItems": 200
                    },
                    "pagination": {
                      "$ref": "./openapi-partner-v1-reference-lists.json#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/delivery-methods": {
      "get": {
        "operationId": "listPartnerDeliveryMethods",
        "summary": "Modes de livraison",
        "description": "Renvoie les modes de livraison activés selon les réglages de la boutique, avec leurs identifiants usuels (0 à 6).",
        "tags": [
          "Settings"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "settings.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          }
        ],
        "responses": {
          "200": {
            "description": "Résultats.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DeliveryMethodsItem"
                      },
                      "maxItems": 7
                    },
                    "pagination": {
                      "$ref": "./openapi-partner-v1-reference-lists.json#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/delivery-zones": {
      "get": {
        "operationId": "listPartnerDeliveryZones",
        "summary": "Zones de livraison",
        "description": "Liste les zones de livraison configurées pour la boutique.",
        "tags": [
          "Settings"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "settings.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Limit"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Résultats.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DeliveryZonesItem"
                      },
                      "maxItems": 200
                    },
                    "pagination": {
                      "$ref": "./openapi-partner-v1-reference-lists.json#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/pickup-points": {
      "get": {
        "operationId": "listPartnerPickupPoints",
        "summary": "Points de retrait",
        "description": "Liste les points de retrait actifs.",
        "tags": [
          "Settings"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "settings.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Limit"
          },
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Résultats.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PickupPointsItem"
                      },
                      "maxItems": 200
                    },
                    "pagination": {
                      "$ref": "./openapi-partner-v1-reference-lists.json#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/shop-settings": {
      "get": {
        "operationId": "partnerGetShopInfos",
        "summary": "Configuration de la boutique",
        "description": "Consulte les réglages de la boutique. Les valeurs non vides de prestaShopApiKey et yavinSecret sont masquées. Certains paramètres de facturation dépendent de la configuration.",
        "tags": [
          "Settings"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "settings.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          }
        ],
        "responses": {
          "200": {
            "description": "Shop settings object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "shopName": {},
                    "companyRegistrationNum": {},
                    "taxRegistrationNum": {},
                    "adressline1": {},
                    "postCode": {},
                    "city": {},
                    "country": {},
                    "lat": {},
                    "lng": {},
                    "phone": {},
                    "urlwebsite": {},
                    "defaultAccountingChapter": {},
                    "pdffooter": {},
                    "receiptHeader": {},
                    "receiptFooter": {},
                    "defaultVatID": {},
                    "currency": {},
                    "language": {},
                    "pricesAreProvidedTaxIncluded": {},
                    "paypalAddress": {},
                    "deliv_tablePlan": {},
                    "deliv_takeAway": {},
                    "deliv_drivethru": {},
                    "deliv_deliver": {},
                    "deliv_bar": {},
                    "deliv_relayDeposit": {},
                    "deliv_default": {},
                    "receipt_showVat": {},
                    "receipt_showShopName": {},
                    "receipt_showCashbox": {},
                    "receipt_showSeller": {},
                    "receipt_showClient": {},
                    "receipt_showAddress": {},
                    "receipt_showCompanyRegistrationNum": {},
                    "receipt_showClientSurname": {},
                    "receipt_showClientAddress": {},
                    "receipt_showClientPhone": {},
                    "receipt_showGlobalVat": {},
                    "receipt_showComment": {},
                    "receipt_showPricesBeforeTaxes": {},
                    "orderRequires_deliveryChoice": {},
                    "orderRequires_name": {},
                    "orderRequires_surname": {},
                    "orderRequires_address": {},
                    "orderRequires_email": {},
                    "orderRequires_phone": {},
                    "orderRequires_date": {},
                    "orderRequires_CompanyRegistrationNum": {},
                    "orderRequires_comment": {},
                    "enable_stock": {},
                    "enable_barcodes": {},
                    "enable_departments": {},
                    "enable_departmentsGroups": {},
                    "enable_credits": {},
                    "enable_descriptionsForItems": {},
                    "enable_variations": {},
                    "enable_delivShop": {},
                    "enable_relayDeposit": {},
                    "enable_descriptionForVariations": {},
                    "enable_dateOfConsumption": {},
                    "enable_coupons": {},
                    "enable_weightForItems": {},
                    "enable_whiteLabel": {},
                    "whiteLabelAdminUserID": {},
                    "isWebShopEnabled": {},
                    "webShopURL": {},
                    "webShopLang": {},
                    "webShopCol1": {},
                    "webShopCol2": {},
                    "webShopCol3": {},
                    "webShopColT1": {},
                    "webShopColT2": {},
                    "webShopColT3": {},
                    "prestaShopApiKey": {},
                    "prestaShopURL": {},
                    "saleWebhookURL": {},
                    "openingWebhookURL": {},
                    "enableYavin": {},
                    "yavinSecret": {},
                    "yavinSerial": {},
                    "enableVivaWallet": {},
                    "vivaWalletMerchant": {},
                    "vivaAccoundID": {},
                    "paymentDueDays": {},
                    "recoveryFeeAmount": {},
                    "recoveryFeeCurrency": {},
                    "latePenaltyMode": {},
                    "latePenaltyRate": {},
                    "earlyPaymentDiscountRate": {},
                    "earlyPaymentDiscountDays": {}
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/orders/pending": {
      "get": {
        "operationId": "partnerGetPending",
        "summary": "Commandes en attente",
        "description": "Liste les commandes actives non terminées dont le montant réglé diffère du total, de la plus récente à la plus ancienne. Jusqu’à 300 résultats. prepared indique si toutes les lignes lues ont été préparées.",
        "tags": [
          "Sales"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "sales.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "name": "delivery_method_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "recent_only",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "default": 0
            },
            "description": "1 limite la lecture aux dernières 24 heures."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Nombre maximal de commandes en attente.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 300,
              "default": 300
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Liste des commandes en attente.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/OrdersPendingItem"
                      },
                      "maxItems": 300
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/orders/contents": {
      "get": {
        "operationId": "partnerGetOrder",
        "summary": "Contenu d’une commande",
        "description": "Consulte les lignes et la fiche client associée d’une commande courante ou archivée de l’établissement. Les valeurs proviennent de la commande enregistrée.",
        "tags": [
          "Sales"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "sales.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "name": "order_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Détail de commande avec ses lignes, et la fiche client si la commande y est rattachée.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "articles"
                  ],
                  "additionalProperties": true,
                  "properties": {
                    "id": {
                      "type": "integer",
                      "format": "int64"
                    },
                    "articles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "client": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/reports/sales": {
      "get": {
        "operationId": "partnerGetSales",
        "summary": "Rapport de ventes",
        "description": "Télécharge le rapport de ventes. Sans date, utilise la veille selon l’heure de la boutique. Utilisez y pour l’année, m et y pour le mois, d et m avec y facultatif pour le jour. Le format par défaut est CSV. Le FEC est réservé aux boutiques hors mode test.",
        "tags": [
          "Reports"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "reports.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "name": "d",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 31
            },
            "description": "Day of the month. A nonzero day requires a month.",
            "example": 12
          },
          {
            "name": "m",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 12
            },
            "description": "Calendar month.",
            "example": 10
          },
          {
            "name": "y",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "anyOf": [
                {
                  "const": 0
                },
                {
                  "minimum": 1000,
                  "maximum": 9999
                }
              ]
            },
            "description": "Four-digit year.",
            "example": 2026
          },
          {
            "name": "format",
            "in": "query",
            "description": "Format du rapport, sensible à la casse.",
            "example": "CSV",
            "schema": {
              "type": "string",
              "enum": [
                "CSV",
                "Std",
                "html",
                "htmlSimple",
                "PDF",
                "PDFSimple",
                "XLS",
                "frafec"
              ],
              "default": "CSV"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rapport dans le format demandé.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string",
                  "description": "Std (inline), html, htmlSimple, or the fiscal-export notice in test mode."
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "description": "CSV and historical fallbacks, including CSVComptable."
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary",
                  "description": "PDF or PDFSimple."
                }
              },
              "application/vnd.ms-excel": {
                "schema": {
                  "type": "string",
                  "format": "binary",
                  "description": "XLS (BIFF workbook)."
                }
              },
              "text/xml": {
                "schema": {
                  "type": "string",
                  "description": "frafec (FEC XML, encoded in ISO-8859-15)."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/mailbox": {
      "get": {
        "operationId": "partnerGetMailbox",
        "summary": "Messagerie de la boutique",
        "description": "Use a managed Bearer API key with mailbox.read and an enabled shop. Mailbox dates use UTC (YYYY-MM-DD HH:MM:SS). The first call can provision the shop mailbox address.",
        "tags": [
          "Mailbox"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "mailbox.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful scoped result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "./openapi.json#/components/schemas/MailboxResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/mailbox/messages": {
      "get": {
        "operationId": "partnerGetMailboxMessages",
        "summary": "Messages de la boutique",
        "description": "Use a managed Bearer API key with mailbox.read and an enabled shop. Mailbox dates use UTC (YYYY-MM-DD HH:MM:SS).",
        "tags": [
          "Mailbox"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "mailbox.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "name": "box",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "inbox",
                "sent"
              ],
              "default": "inbox"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000,
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200,
              "description": "Literal search in subject/sender for inbox, subject/recipient for sent. Limit 200 UTF-8 bytes."
            }
          },
          {
            "name": "folder_id",
            "in": "query",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "integer",
                  "minimum": 0
                },
                {
                  "type": "string",
                  "const": "all"
                }
              ],
              "description": "Inbox only: all/omitted means all; 0 means main inbox."
            }
          },
          {
            "name": "read",
            "in": "query",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "integer",
                  "enum": [
                    0,
                    1
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "0",
                    "1"
                  ]
                }
              ],
              "description": "Inbox only: explicit read state or filter."
            }
          },
          {
            "name": "replied",
            "in": "query",
            "required": false,
            "schema": {
              "oneOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "integer",
                  "enum": [
                    0,
                    1
                  ]
                },
                {
                  "type": "string",
                  "enum": [
                    "0",
                    "1"
                  ]
                }
              ],
              "description": "Inbox only: explicit reply state or filter; clearing it retains replies."
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "sending",
                "sent",
                "delivered",
                "failed",
                "bounced",
                "spam_complaint"
              ],
              "description": "Sent only."
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$",
              "description": "UTC inclusive start, received_at for inbox or created_at for sent."
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$",
              "description": "UTC exclusive end for timestamps; entire day included for YYYY-MM-DD."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful scoped result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "./openapi.json#/components/schemas/MailboxListResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/mailbox/message": {
      "get": {
        "operationId": "partnerGetMailboxMessage",
        "summary": "Détail d’un message",
        "description": "Use a managed Bearer API key with mailbox.read and an enabled shop. Mailbox dates use UTC (YYYY-MM-DD HH:MM:SS). Downloadable attachments link to the Partner API v1 attachment route.",
        "tags": [
          "Mailbox"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "mailbox.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "name": "id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "box",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "inbox",
                "sent"
              ],
              "default": "inbox"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful scoped result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "./openapi.json#/components/schemas/MailboxMessageResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/mailbox/replies": {
      "get": {
        "operationId": "partnerGetMailboxReplies",
        "summary": "Réponses à un message",
        "description": "Use a managed Bearer API key with mailbox.read and an enabled shop. Mailbox dates use UTC (YYYY-MM-DD HH:MM:SS).",
        "tags": [
          "Mailbox"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "mailbox.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "name": "message_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000,
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200,
              "description": "Literal search in subject/sender for inbox, subject/recipient for sent. Limit 200 UTF-8 bytes."
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "sending",
                "sent",
                "delivered",
                "failed",
                "bounced",
                "spam_complaint"
              ],
              "description": "Sent only."
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$",
              "description": "UTC inclusive start, received_at for inbox or created_at for sent."
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}Z)?$",
              "description": "UTC exclusive end for timestamps; entire day included for YYYY-MM-DD."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful scoped result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "./openapi.json#/components/schemas/MailboxListResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/mailbox/attachment": {
      "get": {
        "operationId": "partnerDownloadMailboxAttachment",
        "summary": "Pièce jointe de messagerie",
        "description": "Use a managed Bearer API key with mailbox.read and an enabled shop. Mailbox dates use UTC (YYYY-MM-DD HH:MM:SS).",
        "tags": [
          "Mailbox"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "mailbox.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "name": "id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "box",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "inbox",
                "sent"
              ],
              "default": "inbox"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Exact binary attachment; unavailable historical sent files return 404.",
            "headers": {
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "description": "attachment with UTF-8 filename"
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/mailbox/folders": {
      "get": {
        "operationId": "partnerGetMailboxFolders",
        "summary": "Dossiers de messagerie",
        "description": "Use a managed Bearer API key with mailbox.read and an enabled shop. Mailbox dates use UTC (YYYY-MM-DD HH:MM:SS).",
        "tags": [
          "Mailbox"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "mailbox.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful scoped result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "./openapi.json#/components/schemas/MailboxFoldersResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/mailbox/customers/search": {
      "get": {
        "operationId": "partnerSearchMailboxCustomers",
        "summary": "Rechercher un client dans la messagerie",
        "description": "Use a managed Bearer API key with mailbox.read and an enabled shop. Mailbox dates use UTC (YYYY-MM-DD HH:MM:SS). The key must also have customers.read.",
        "tags": [
          "Mailbox"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "customers.read",
          "mailbox.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100,
              "description": "Prefix of name, first name or email. Minimum 2 characters, max 100; under 2 returns an empty list. Refine search if has_more=true."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful scoped result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "./openapi.json#/components/schemas/MailboxSearchResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/mailbox/customer": {
      "get": {
        "operationId": "partnerGetMailboxCustomer",
        "summary": "Identifier le client d’un message",
        "description": "Use a managed Bearer API key with mailbox.read and an enabled shop. Mailbox dates use UTC (YYYY-MM-DD HH:MM:SS). The key must also have customers.read.",
        "tags": [
          "Mailbox"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "customers.read",
          "mailbox.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "name": "message_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "box",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "inbox",
                "sent"
              ],
              "default": "inbox"
            }
          },
          {
            "name": "email",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "email",
              "maxLength": 320
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful scoped result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "./openapi.json#/components/schemas/MailboxCustomerResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/webhooks": {
      "get": {
        "operationId": "partnerGetWebhooks",
        "summary": "Abonnements aux webhooks",
        "description": "Liste les abonnements actifs ou inactifs et le catalogue des événements. Les secrets de signature sont exclus.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "webhooks.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          }
        ],
        "responses": {
          "200": {
            "description": "Webhook operation result or historical business error.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "success": {
                          "const": true
                        },
                        "result": {
                          "const": "OK"
                        },
                        "events": {
                          "type": "object",
                          "description": "Event names available for delivery and their labels. This is the same registry used by the Webhooks configuration panel.",
                          "examples": [
                            {
                              "sale.paid": "Sale paid",
                              "customer.created": "Customer created"
                            }
                          ],
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        "webhooks": {
                          "type": "array",
                          "items": {
                            "$ref": "./openapi.json#/components/schemas/WebhookEndpoint"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "$ref": "./openapi.json#/components/schemas/StandardFailureResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    },
    "/webhook-deliveries": {
      "get": {
        "operationId": "partnerGetWebhookDeliveries",
        "summary": "Livraisons de webhooks",
        "description": "Liste les dernières livraisons de webhooks et leurs tentatives pour la boutique, avec un filtre par abonnement ou par statut.",
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "ManagedBearer": []
          }
        ],
        "x-required-scopes": [
          "webhooks.read"
        ],
        "parameters": [
          {
            "$ref": "./openapi-partner-v1-reference-lists.json#/components/parameters/ShopId"
          },
          {
            "name": "webhook_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Webhook operation result or historical business error.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "success": {
                          "const": true
                        },
                        "result": {
                          "const": "OK"
                        },
                        "deliveries": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "$ref": "./openapi.json#/components/schemas/StandardFailureResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Http400"
          },
          "401": {
            "$ref": "#/components/responses/Http401"
          },
          "403": {
            "$ref": "#/components/responses/Http403"
          },
          "404": {
            "$ref": "#/components/responses/Http404"
          },
          "405": {
            "$ref": "#/components/responses/Http405"
          },
          "503": {
            "$ref": "#/components/responses/Http503"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ManagedBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Clé API gérée associée à l’établissement."
      }
    },
    "schemas": {
      "DepartmentGroupsItem": {
        "type": "object",
        "required": [
          "id",
          "nomlong",
          "image",
          "position",
          "chapitreComptable",
          "chapitreComptableComp"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "nomlong": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "position": {
            "type": "string"
          },
          "chapitreComptable": {
            "type": "string"
          },
          "chapitreComptableComp": {
            "type": "string"
          }
        }
      },
      "ProductVariantsItem": {
        "type": "object",
        "required": [
          "id",
          "idDeclinaison",
          "declName",
          "nom",
          "modifPrix",
          "description"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "idDeclinaison": {
            "type": "string"
          },
          "declName": {
            "type": "string"
          },
          "nom": {
            "type": "string"
          },
          "modifPrix": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "DiscountsItem": {
        "type": "object",
        "required": [
          "id",
          "nomlong",
          "taux",
          "montant",
          "prixfixe",
          "Position"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "nomlong": {
            "type": "string"
          },
          "taux": {
            "type": "string"
          },
          "montant": {
            "type": "string"
          },
          "prixfixe": {
            "type": "string"
          },
          "Position": {
            "type": "string"
          },
          "totalMin": {
            "type": "string"
          }
        }
      },
      "UsersItem": {
        "type": "object",
        "required": [
          "id",
          "nom",
          "droits",
          "codeBarre"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "nom": {
            "type": "string"
          },
          "droits": {
            "type": "string"
          },
          "codeBarre": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "CashRegistersItem": {
        "type": "object",
        "required": [
          "id",
          "nom",
          "etat"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "nom": {
            "type": "string"
          },
          "etat": {
            "type": "string"
          }
        }
      },
      "TablesItem": {
        "type": "object",
        "required": [
          "id",
          "numSalle",
          "nom"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "numSalle": {
            "type": "string"
          },
          "nom": {
            "type": "string"
          }
        }
      },
      "DeliveryMethodsItem": {
        "type": "object",
        "required": [
          "id",
          "nom"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 0
          },
          "nom": {
            "type": "string"
          }
        }
      },
      "DeliveryZonesItem": {
        "type": "object",
        "required": [
          "id",
          "nom",
          "rayon",
          "lat",
          "lng"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "nom": {
            "type": "string"
          },
          "rayon": {
            "type": "string"
          },
          "lat": {
            "type": "string"
          },
          "lng": {
            "type": "string"
          }
        }
      },
      "PickupPointsItem": {
        "type": "object",
        "required": [
          "id",
          "nom",
          "adresse",
          "codepostal",
          "ville",
          "lat",
          "lng",
          "description"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "nom": {
            "type": "string"
          },
          "adresse": {
            "type": "string"
          },
          "codepostal": {
            "type": "string"
          },
          "ville": {
            "type": "string"
          },
          "lat": {
            "type": "string"
          },
          "lng": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "OrdersPendingItem": {
        "type": "object",
        "required": [
          "id",
          "idcompteclient",
          "prixfinal",
          "montantpaye",
          "idinterne",
          "choixlivraison",
          "preparation",
          "prepared",
          "terminee",
          "datevaleur",
          "datecreation",
          "note",
          "notePublique",
          "contenuclair",
          "idtable"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "minimum": 1
          },
          "idcompteclient": {
            "type": "string"
          },
          "prixfinal": {
            "type": "string"
          },
          "montantpaye": {
            "type": "string"
          },
          "idinterne": {
            "type": "string"
          },
          "choixlivraison": {
            "type": "string"
          },
          "preparation": {
            "type": "string"
          },
          "prepared": {
            "type": "boolean"
          },
          "terminee": {
            "type": "string"
          },
          "datevaleur": {
            "type": "string"
          },
          "datecreation": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "notePublique": {
            "type": "string"
          },
          "contenuclair": {
            "type": "string"
          },
          "idtable": {
            "type": "string"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "responses": {
      "Http400": {
        "description": "Paramètre invalide.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Http401": {
        "description": "Clé gérée invalide ou établissement inaccessible.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Http403": {
        "description": "Droit requis absent, établissement fermé ou export indisponible pour cette boutique.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Http404": {
        "description": "Ressource introuvable dans cet établissement.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Http405": {
        "description": "Cette route accepte GET.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Http503": {
        "description": "Service temporairement indisponible.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  }
}
