Skip to main content
Glama

caisse-enregistreuse-mcp-server

sale_create

Create new sales transactions by adding catalog items, department products, or custom items with payment details and client information for cash register operations.

Instructions

Crée une nouvelle vente pour l'établissement. Prend en entrée le mode de paiement (optionnel) et la liste des articles. Chaque article peut être du type « catalogue » (avec productId) ou « rayon » (avec deptId) ou « libre » (avec titre et prix). Vérifier si le client n'existe déjà en utilisant data_list_clients et si le client existe, uniquement préciser idClient. Retourne un objet JSON de confirmation de la vente tel que fourni par l’API distante.

Input Schema

NameRequiredDescriptionDefault
paymentNo
deliveryMethodNo
idtableNo
idcaisseNo
numcouvertsNo
publicCommentNo
privateCommentNo
pagerNumNo
idUserNo
idClientNo
clientNo
itemsYes

Input Schema (JSON Schema)

{ "properties": { "client": { "additionalProperties": false, "properties": { "address": { "type": "string" }, "city": { "type": "string" }, "country": { "type": "string" }, "email": { "format": "email", "type": "string" }, "firstname": { "type": "string" }, "lastname": { "type": "string" }, "phone": { "type": "string" }, "zip": { "type": "string" } }, "type": "object" }, "deliveryMethod": { "anyOf": [ { "maximum": 6, "minimum": 0, "type": "integer" }, { "enum": [ "0", "1", "2", "3", "4", "5", "6" ], "type": "string" } ] }, "idClient": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] }, "idUser": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] }, "idcaisse": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] }, "idtable": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] }, "items": { "items": { "additionalProperties": false, "properties": { "declinaisons": { "items": { "type": "string" }, "type": "array" }, "departmentId": { "type": [ "string", "number" ] }, "price": { "type": [ "number", "string" ] }, "priceOverride": { "type": [ "number", "string" ] }, "productId": { "type": "string" }, "quantity": { "type": [ "number", "string" ] }, "title": { "type": "string" }, "titleOverride": { "type": "string" }, "type": { "default": "catalog", "enum": [ "catalog", "dept", "free" ], "type": "string" } }, "type": "object" }, "minItems": 1, "type": "array" }, "numcouverts": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] }, "pagerNum": { "anyOf": [ { "type": "integer" }, { "type": "string" } ] }, "payment": { "type": [ "number", "string" ] }, "privateComment": { "type": "string" }, "publicComment": { "type": "string" } }, "required": [ "items" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/paracetamol951/caisse-enregistreuse-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server