{"openapi":"3.1.0","info":{"title":"Espina Comercial Public API","description":"API segura para integrar negocios, productos, inventario, ventas, bitácora, reportes y webhooks.","contact":{"name":"Espina Comercial"},"version":"v1"},"servers":[{"url":"https://www.espinacomercial.com","description":"Espina Comercial"}],"security":[{"espinaOAuth":[]}],"paths":{"/webmcp/storefront":{"get":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"getStorefrontConfig","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StorefrontConfigView"}}}}}},"put":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"updateStorefrontConfig","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorefrontConfigUpdateRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StorefrontConfigView"}}}}}}},"/webmcp/products/{id}":{"get":{"tags":["web-mcp-catalog-controller"],"operationId":"getProduct","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiProductView"}}}}}},"put":{"tags":["web-mcp-catalog-controller"],"operationId":"updateProduct","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductUpdateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiProductView"}}}}}}},"/webmcp/loyalty/config":{"get":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"getLoyaltyConfig","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoyaltyConfigView"}}}}}},"put":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"updateLoyaltyConfig","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartialLoyaltyConfigRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoyaltyConfigView"}}}}}}},"/webmcp/business":{"get":{"tags":["web-mcp-core-controller"],"operationId":"business","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}},"put":{"tags":["web-mcp-core-controller"],"operationId":"updateBusinessIdentity","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBusinessIdentityRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/workspace/modules":{"get":{"tags":["mobile-workspace-api-controller"],"operationId":"modules","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceModuleView"}}}}}}},"put":{"tags":["mobile-workspace-api-controller"],"operationId":"configure","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleSelection"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceModuleView"}}}}}}}},"/api/v1/accounts/{accountId}/workspace/agenda/calendar":{"get":{"tags":["mobile-workspace-api-controller"],"operationId":"calendarStatus","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Subscription"}}}}}},"put":{"tags":["mobile-workspace-api-controller"],"operationId":"configureCalendar","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"enabled","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Subscription"}}}}}}},"/api/v1/accounts/{accountId}/suppliers/{id}":{"put":{"tags":["Proveedores y compras"],"operationId":"updateSupplier","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProveedorForm"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ProveedorView"}}}}}}},"/api/v1/accounts/{accountId}/storefront":{"get":{"tags":["Vidriera Online"],"summary":"Obtiene la configuración de la vidriera online del negocio","operationId":"getConfig","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StorefrontConfigView"}}}}}},"put":{"tags":["Vidriera Online"],"summary":"Actualiza la configuración de la vidriera online del negocio","operationId":"updateConfig","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorefrontConfigUpdateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StorefrontConfigView"}}}}}}},"/api/v1/accounts/{accountId}/purchase-orders/{id}":{"get":{"tags":["Proveedores y compras"],"operationId":"order","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}},"put":{"tags":["Proveedores y compras"],"operationId":"updateOrder","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdenCompraForm"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}},"/api/v1/accounts/{accountId}/promotions/{promotionId}":{"put":{"tags":["Promociones"],"summary":"Actualiza una promoción","operationId":"update","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"promotionId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionUpsertRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PromocionCardView"}}}}}},"delete":{"tags":["Promociones"],"summary":"Elimina una promoción","operationId":"delete","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"promotionId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"No Content"}}}},"/api/v1/accounts/{accountId}/products/{productId}":{"get":{"tags":["Productos e inventario"],"summary":"Consulta un producto","operationId":"product","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"productId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiProductView"}}}}}},"put":{"tags":["Productos e inventario"],"summary":"Actualiza los datos de un producto existente","operationId":"updateProduct_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"productId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"expectedStock","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"expectedUpdatedAt","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProductCreateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiProductView"}}}}}},"delete":{"tags":["business-operations-api-controller"],"operationId":"delete_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"productId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"No Content"}}}},"/api/v1/accounts/{accountId}/management/logo":{"put":{"tags":["Identidad y negocios"],"operationId":"updateBusinessLogo","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessLogoRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiAccountView"}}}}}}},"/api/v1/accounts/{accountId}/loyalty/config":{"get":{"tags":["Club de Clientes y Recordatorios"],"summary":"Obtiene la configuración del Club de Clientes y radares del negocio","operationId":"getConfig_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoyaltyConfigView"}}}}}},"put":{"tags":["Club de Clientes y Recordatorios"],"summary":"Actualiza la configuración del Club de Clientes y radares del negocio","operationId":"updateConfig_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoyaltyConfigRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoyaltyConfigView"}}}}}}},"/api/v1/accounts/{accountId}/expenses/{id}":{"get":{"tags":["Egresos"],"operationId":"get","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EgresoView"}}}}}},"put":{"tags":["Egresos"],"operationId":"update_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EgresoForm"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EgresoView"}}}}}}},"/api/v1/accounts/{accountId}/customers/{customerId}":{"get":{"tags":["customer-api-controller"],"operationId":"statement","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Statement"}}}}}},"put":{"tags":["customer-api-controller"],"operationId":"update_2","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerFields"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Customer"}}}}}}},"/api/v1/accounts/{accountId}/customers/{customerId}/status":{"put":{"tags":["customer-api-controller"],"operationId":"updateStatus","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerStatus"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Customer"}}}}}}},"/webmcp/storefront/products/{productId}/visibility":{"post":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"updateStorefrontProductVisibility","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductVisibilityRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StorefrontProductVisibilityView"}}}}}}},"/webmcp/storefront/products/visibility":{"post":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"updateAllStorefrontProductsVisibility","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductVisibilityRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/storefront/orders/{orderId}/status":{"post":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"updateStorefrontOrderStatus","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderStatusRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StorefrontOrderView"}}}}}}},"/webmcp/storefront/orders/{orderId}/load-pos":{"post":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"loadStorefrontOrderInPos","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StorefrontLoadCartResult"}}}}}}},"/webmcp/sales":{"get":{"tags":["web-mcp-sales-controller"],"operationId":"listSales","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"paymentMethod","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}},"post":{"tags":["web-mcp-sales-controller"],"operationId":"createSale","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSaleRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/sales/{type}/{id}/void":{"post":{"tags":["web-mcp-sales-controller"],"operationId":"voidSale","parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/sales/manual":{"post":{"tags":["web-mcp-sales-controller"],"operationId":"createManualSale","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateManualSaleRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/promotions":{"get":{"tags":["web-mcp-catalog-controller"],"operationId":"listPromotions","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"TODAS"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PromocionCardView"}}}}}}},"post":{"tags":["web-mcp-catalog-controller"],"operationId":"createPromotion","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionCreateRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PromocionCardView"}}}}}}},"/webmcp/promotions/{id}/toggle":{"post":{"tags":["web-mcp-catalog-controller"],"operationId":"togglePromotion","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PromocionCardView"}}}}}}},"/webmcp/products":{"get":{"tags":["web-mcp-catalog-controller"],"operationId":"listProducts","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"active","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":25}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiPageApiProductView"}}}}}},"post":{"tags":["web-mcp-catalog-controller"],"operationId":"createProduct","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCreateRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiProductView"}}}}}}},"/webmcp/products/{id}/stock-in":{"post":{"tags":["web-mcp-catalog-controller"],"operationId":"stockIn","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StockInRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/products/{id}/archive":{"post":{"tags":["web-mcp-catalog-controller"],"operationId":"archiveProduct","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/pos/cart/promotions":{"post":{"tags":["web-mcp-sales-controller"],"operationId":"addPromotionToPosCart","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPromoCartRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/pos/cart/items":{"post":{"tags":["web-mcp-sales-controller"],"operationId":"addPosCartItem","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCartItemRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/loyalty/debt-reminders/{customerId}/send":{"post":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"sendDebtReminder","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendDebtReminderRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReminderDispatchResult"}}}}}}},"/webmcp/loyalty/customers/{customerId}/redeem":{"post":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"redeemPoints","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedeemPointsRequest"}}}},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerLoyaltyView"}}}}}}},"/webmcp/customers":{"get":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"listCustomers","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"withDebt","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}},"post":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"createCustomer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomerRequest"}}}},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Customer"}}}}}}},"/webmcp/customers/{id}/payments":{"post":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"registerCustomerPayment","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerPaymentRequest"}}}},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Statement"}}}}}}},"/webmcp/cash-register/open":{"post":{"tags":["web-mcp-sales-controller"],"operationId":"openCashRegister","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CashOpenRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/cash-register/movements":{"post":{"tags":["web-mcp-sales-controller"],"operationId":"registerCashMovement","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CashMovementRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/cash-register/close":{"post":{"tags":["web-mcp-sales-controller"],"operationId":"closeCashRegister","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CashCloseRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/business/switch":{"post":{"tags":["web-mcp-core-controller"],"operationId":"switchBusiness","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchBusinessRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/bulk-pricing/preview":{"post":{"tags":["web-mcp-catalog-controller"],"operationId":"previewBulkPricing","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPricingRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BulkPricingPreviewView"}}}}}}},"/webmcp/bulk-pricing/batches/{batchId}/undo":{"post":{"tags":["web-mcp-catalog-controller"],"operationId":"undoBulkPricingBatch","parameters":[{"name":"batchId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PriceAdjustmentBatchView"}}}}}}},"/webmcp/bulk-pricing/apply":{"post":{"tags":["web-mcp-catalog-controller"],"operationId":"applyBulkPricing","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPricingRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PriceAdjustmentBatchView"}}}}}}},"/ventas/registro/{tipo}/{id}/editar":{"get":{"tags":["venta-edicion-controller"],"operationId":"ver","parameters":[{"name":"tipo","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["venta-edicion-controller"],"operationId":"guardar","parameters":[{"name":"tipo","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VentaEdicionForm"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/ventas/pv/offline-sync":{"post":{"tags":["pos-offline-sync-controller"],"operationId":"syncOfflineSale","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PosOfflineSaleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/ventas/clientes/fidelizacion/recordatorios/{customerId}/registrar":{"post":{"tags":["loyalty-controller"],"operationId":"sendDebtReminderAjax","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"sendEmail","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/t/{slug}/orders":{"post":{"tags":["public-storefront-controller"],"operationId":"createOrder","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorefrontOrderCreateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/t/{slug}/evaluate":{"post":{"tags":["public-storefront-controller"],"operationId":"evaluate","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateCartRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/productos/{id}/ajuste-rapido":{"post":{"tags":["producto-controller"],"operationId":"ajustarRapido","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"accion","in":"query","required":true,"schema":{"type":"string","enum":["INGRESO","CONTEO","PRECIO","MINIMO"]}},{"name":"valor","in":"query","required":true,"schema":{"type":"number"}},{"name":"stockEsperado","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/productos/promociones/imagen/subida":{"post":{"tags":["promocion-controller"],"operationId":"prepararImagen","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/productos/promociones/imagen/local":{"post":{"tags":["promocion-controller"],"operationId":"guardarImagenLocal","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"imagen":{"type":"string","format":"binary"}},"required":["imagen"]}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/productos/imagen-upload-url":{"post":{"tags":["producto-controller"],"operationId":"imageUploadUrl","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/mcp":{"post":{"tags":["mcp-controller"],"operationId":"handle","parameters":[{"name":"MCP-Protocol-Version","in":"header","required":false,"schema":{"type":"string"}},{"name":"Mcp-Method","in":"header","required":false,"schema":{"type":"string"}},{"name":"Mcp-Name","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/integrations/whatsapp/webhook":{"get":{"tags":["whats-app-webhook"],"operationId":"verify","parameters":[{"name":"hub.mode","in":"query","required":true,"schema":{"type":"string"}},{"name":"hub.verify_token","in":"query","required":true,"schema":{"type":"string"}},{"name":"hub.challenge","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"string"}}}}}},"post":{"tags":["whats-app-webhook"],"operationId":"receive","parameters":[{"name":"X-Hub-Signature-256","in":"header","required":false,"schema":{"type":"string","default":""}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/integrations/merchant-qr/webhook":{"post":{"tags":["merchant-integration-controller"],"operationId":"webhook","responses":{"200":{"description":"OK"}}}},"/integrations/mercadopago/webhook":{"post":{"tags":["mercado-pago-webhook-controller"],"operationId":"receive_1","responses":{"200":{"description":"OK"}}}},"/integrations/bank-transfer-qr/link":{"post":{"tags":["bank-transfer-qr-controller"],"operationId":"link","parameters":[{"name":"version","in":"query","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"operationId","in":"query","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"amount","in":"query","required":true,"schema":{"type":"number"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/management/invitations/{invitationId}/response":{"post":{"tags":["Identidad y negocios"],"operationId":"respondInvitation","parameters":[{"name":"invitationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"}}}},"required":true},"responses":{"204":{"description":"No Content"}}}},"/api/v1/accounts/{accountId}/workspace/orders":{"get":{"tags":["mobile-workspace-api-controller"],"operationId":"orders","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomOrder"}}}}}}},"post":{"tags":["mobile-workspace-api-controller"],"operationId":"createOrder_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomOrder"}}}}}}},"/api/v1/accounts/{accountId}/workspace/orders/{id}/sales":{"get":{"tags":["mobile-workspace-api-controller"],"operationId":"orderSales","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiSaleDetailView"}}}}}}},"post":{"tags":["mobile-workspace-api-controller"],"operationId":"sellOrder","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCheckout"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiSaleDetailView"}}}}}}},"/api/v1/accounts/{accountId}/workspace/orders/{id}/payments":{"get":{"tags":["mobile-workspace-api-controller"],"operationId":"orderPayments","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CobroView"}}}}}}},"post":{"tags":["mobile-workspace-api-controller"],"operationId":"collectOrder","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderPayment"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomOrder"}}}}}}},"/api/v1/accounts/{accountId}/workspace/orders/{id}/convert":{"post":{"tags":["mobile-workspace-api-controller"],"operationId":"convert","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomOrder"}}}}}}},"/api/v1/accounts/{accountId}/workspace/agenda":{"get":{"tags":["mobile-workspace-api-controller"],"operationId":"agenda","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgendaItem"}}}}}}},"post":{"tags":["mobile-workspace-api-controller"],"operationId":"createAgenda","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AgendaItem"}}}}}}},"/api/v1/accounts/{accountId}/webhooks":{"get":{"tags":["Webhooks"],"summary":"Lista los webhooks configurados","operationId":"list","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookSubscriptionView"}}}}}}},"post":{"tags":["Webhooks"],"summary":"Crea un webhook; el secreto se muestra una sola vez","operationId":"create","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionView"}}}}}}},"/api/v1/accounts/{accountId}/webhooks/{subscriptionId}/test":{"post":{"tags":["Webhooks"],"summary":"Encola una entrega de prueba","operationId":"test","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"subscriptionId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"202":{"description":"Accepted"}}}},"/api/v1/accounts/{accountId}/webhooks/{subscriptionId}/rotate-secret":{"post":{"tags":["Webhooks"],"summary":"Rota el secreto de firma y devuelve el nuevo una sola vez","operationId":"rotateSecret","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"subscriptionId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionView"}}}}}}},"/api/v1/accounts/{accountId}/webhooks/{subscriptionId}/deliveries/{deliveryId}/replay":{"post":{"tags":["Webhooks"],"summary":"Reencola una entrega","operationId":"replay","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"subscriptionId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"deliveryId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Accepted"}}}},"/api/v1/accounts/{accountId}/suppliers":{"get":{"tags":["Proveedores y compras"],"operationId":"suppliers","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"TODOS"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProveedorView"}}}}}}},"post":{"tags":["Proveedores y compras"],"operationId":"createSupplier","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProveedorForm"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ProveedorView"}}}}}}},"/api/v1/accounts/{accountId}/suppliers/{id}/toggle":{"post":{"tags":["Proveedores y compras"],"operationId":"toggleSupplier","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ProveedorView"}}}}}}},"/api/v1/accounts/{accountId}/subscription/{id}/refresh":{"post":{"tags":["business-operations-api-controller"],"operationId":"refreshSubscription","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"}}}},"/api/v1/accounts/{accountId}/subscription/{id}/cancel":{"post":{"tags":["business-operations-api-controller"],"operationId":"cancelSubscription","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"}}}},"/api/v1/accounts/{accountId}/subscription/manual":{"post":{"tags":["business-operations-api-controller"],"operationId":"manualSubscription","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualSubscriptionUpdateForm"}}},"required":true},"responses":{"204":{"description":"No Content"}}}},"/api/v1/accounts/{accountId}/subscription/checkout":{"post":{"tags":["business-operations-api-controller"],"operationId":"checkout","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Checkout"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/storefront/products/{productId}/visibility":{"post":{"tags":["Vidriera Online"],"summary":"Muestra u oculta un producto puntual en la vidriera pública","operationId":"updateProductVisibility","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"productId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductVisibilityRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StorefrontProductVisibilityView"}}}}}}},"/api/v1/accounts/{accountId}/storefront/orders/{orderId}/status":{"post":{"tags":["Vidriera Online"],"summary":"Actualiza el estado de un pedido de la vidriera (PENDIENTE, COBRADO o CANCELADO)","operationId":"updateOrderStatus","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"orderId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderStatusUpdateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StorefrontOrderView"}}}}}}},"/api/v1/accounts/{accountId}/sales":{"get":{"tags":["Ventas"],"summary":"Lista ventas con filtros y paginación","operationId":"sales","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"paymentMethod","in":"query","required":false,"schema":{"type":"string"}},{"name":"seller","in":"query","required":false,"schema":{"type":"string"}},{"name":"minTotal","in":"query","required":false,"schema":{"type":"number"}},{"name":"maxTotal","in":"query","required":false,"schema":{"type":"number"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"date_desc"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiPageVentaResumenView"}}}}}},"post":{"tags":["Ventas"],"summary":"Registra una venta de productos y descuenta el stock","operationId":"createProductSale","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProductSaleRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiSaleDetailView"}}}}}}},"/api/v1/accounts/{accountId}/sales/{type}/{saleId}/void":{"post":{"tags":["Ventas"],"summary":"Anula una venta y revierte el stock cuando corresponda","operationId":"voidSale_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"type","in":"path","required":true,"schema":{"type":"string"}},{"name":"saleId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiSaleDetailView"}}}}}}},"/api/v1/accounts/{accountId}/sales/manual":{"post":{"tags":["Ventas"],"summary":"Registra una venta rápida sin productos","operationId":"createManualSale_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiManualSaleRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiSaleDetailView"}}}}}}},"/api/v1/accounts/{accountId}/reports/purchase-forecast/create-order":{"post":{"tags":["Reportes"],"summary":"Crea una orden de compra borrador a partir de ítems seleccionados de la proyección","operationId":"createOrderFromForecast","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseForecastOrderRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}},"/api/v1/accounts/{accountId}/purchase-orders":{"get":{"tags":["Proveedores y compras"],"operationId":"orders_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"TODAS"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}},"post":{"tags":["Proveedores y compras"],"operationId":"createOrder_2","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdenCompraForm"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}},"/api/v1/accounts/{accountId}/purchase-orders/{id}/submit-approval":{"post":{"tags":["Proveedores y compras"],"operationId":"submitApproval","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}},"/api/v1/accounts/{accountId}/purchase-orders/{id}/send":{"post":{"tags":["Proveedores y compras"],"operationId":"send","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}},"/api/v1/accounts/{accountId}/purchase-orders/{id}/reject":{"post":{"tags":["Proveedores y compras"],"operationId":"reject","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}},"/api/v1/accounts/{accountId}/purchase-orders/{id}/receive":{"post":{"tags":["Proveedores y compras"],"operationId":"receive_2","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecepcionOrdenCompraForm"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}},"/api/v1/accounts/{accountId}/purchase-orders/{id}/duplicate":{"post":{"tags":["Proveedores y compras"],"operationId":"duplicateOrder","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}},"/api/v1/accounts/{accountId}/purchase-orders/{id}/cancel":{"post":{"tags":["Proveedores y compras"],"operationId":"cancel","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}},"/api/v1/accounts/{accountId}/purchase-orders/{id}/approve":{"post":{"tags":["Proveedores y compras"],"operationId":"approve","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}},"/api/v1/accounts/{accountId}/promotions":{"get":{"tags":["Promociones"],"summary":"Lista promociones del negocio","operationId":"list_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"TODAS"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PromocionCardView"}}}}}}},"post":{"tags":["Promociones"],"summary":"Crea una promoción","operationId":"create_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionUpsertRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PromocionCardView"}}}}}}},"/api/v1/accounts/{accountId}/promotions/{promotionId}/toggle":{"post":{"tags":["Promociones"],"summary":"Activa o pausa una promoción","operationId":"toggle","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"promotionId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PromocionCardView"}}}}}}},"/api/v1/accounts/{accountId}/promotions/{promotionId}/duplicate":{"post":{"tags":["Promociones"],"summary":"Duplica una promoción y la crea pausada para no afectar la caja","operationId":"duplicate","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"promotionId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PromocionCardView"}}}}}}},"/api/v1/accounts/{accountId}/promotions/evaluate":{"post":{"tags":["Promociones"],"summary":"Evalúa qué promociones activas aplican a un carrito","operationId":"evaluate_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateCartRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PromocionEvaluacionView"}}}}}}},"/api/v1/accounts/{accountId}/products":{"get":{"tags":["Productos e inventario"],"summary":"Lista y filtra los productos del negocio","operationId":"products","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"unit","in":"query","required":false,"schema":{"type":"string"}},{"name":"active","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"stockStatus","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiPageApiProductView"}}}}}},"post":{"tags":["Productos e inventario"],"summary":"Crea un producto respetando el límite del plan","operationId":"createProduct_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProductCreateRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiProductView"}}}}}}},"/api/v1/accounts/{accountId}/products/import/{id}/rows":{"post":{"tags":["product-import-api-controller"],"operationId":"rows","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductoImportPreviewRow"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/products/import/{id}/preview":{"post":{"tags":["product-import-api-controller"],"operationId":"preview","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductoImportMappingForm"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/products/import/{id}/confirm":{"post":{"tags":["product-import-api-controller"],"operationId":"confirm","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Espina-Instance","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/products/import/{id}/configure":{"post":{"tags":["product-import-api-controller"],"operationId":"configure_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Selection"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/products/import/analyze":{"post":{"tags":["product-import-api-controller"],"operationId":"analyze","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/products/image-upload-url":{"get":{"tags":["Productos e inventario"],"operationId":"imageUploadCapability","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Capability"}}}}}},"post":{"tags":["Productos e inventario"],"operationId":"imageUploadUrl_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UploadUrl"}}}}}}},"/api/v1/accounts/{accountId}/products/bulk":{"post":{"tags":["Productos e inventario"],"summary":"Crea hasta 200 productos en una operación atómica","operationId":"createProducts","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiProductBulkCreateRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiProductView"}}}}}}}},"/api/v1/accounts/{accountId}/products/bulk-pricing/preview":{"post":{"tags":["Remarcación masiva"],"summary":"Simula una remarcación masiva de precios sin modificar productos","operationId":"preview_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPricingRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BulkPricingPreviewView"}}}}}}},"/api/v1/accounts/{accountId}/products/bulk-pricing/batches/{batchId}/undo":{"post":{"tags":["Remarcación masiva"],"summary":"Deshace un lote de remarcación restaurando los precios anteriores exactos","operationId":"undo","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"batchId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PriceAdjustmentBatchView"}}}}}}},"/api/v1/accounts/{accountId}/products/bulk-pricing/apply":{"post":{"tags":["Remarcación masiva"],"summary":"Aplica una remarcación masiva de precios y registra el lote para auditoría y deshacer","operationId":"apply","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPricingRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PriceAdjustmentBatchView"}}}}}}},"/api/v1/accounts/{accountId}/products/bulk-delete":{"post":{"tags":["business-operations-api-controller"],"operationId":"deleteMany","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ids"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/pos/parse-barcode":{"post":{"tags":["Punto de venta"],"summary":"Interpreta etiquetas de balanza EAN-13 (peso o importe) y resuelve el producto por PLU","operationId":"parseBarcode","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParseBarcodeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ParseBarcodeResponse"}}}}}}},"/api/v1/accounts/{accountId}/offline/sales":{"post":{"tags":["offline-api-controller"],"operationId":"sync","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Submission"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiSaleDetailView"}}}}}}},"/api/v1/accounts/{accountId}/mobile-devices":{"get":{"tags":["mobile-device-api-controller"],"operationId":"list_2","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MobileDeviceView"}}}}}}},"post":{"tags":["mobile-device-api-controller"],"operationId":"register","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileDeviceRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MobileDeviceView"}}}}}}},"/api/v1/accounts/{accountId}/marketplace/unlock":{"post":{"tags":["marketplace-api-controller"],"operationId":"unlock","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Key"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"boolean"}}}}}}}},"/api/v1/accounts/{accountId}/marketplace/publish":{"post":{"tags":["marketplace-api-controller"],"operationId":"publish","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Publish"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Publication"}}}}}}},"/api/v1/accounts/{accountId}/marketplace/publish-all":{"post":{"tags":["marketplace-api-controller"],"operationId":"publishAll","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Publication"}}}}}}},"/api/v1/accounts/{accountId}/marketplace/copy":{"post":{"tags":["marketplace-api-controller"],"operationId":"copy","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Copy"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CopyResult"}}}}}}},"/api/v1/accounts/{accountId}/marketplace/catalogs/{id}/rotate-key":{"post":{"tags":["marketplace-api-controller"],"operationId":"rotate","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/api/v1/accounts/{accountId}/marketplace/browse":{"post":{"tags":["marketplace-api-controller"],"operationId":"browse","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Browse"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Page"}}}}}}},"/api/v1/accounts/{accountId}/management/settings":{"post":{"tags":["Identidad y negocios"],"summary":"Actualiza nombre e identidad visual del negocio","operationId":"updateBusinessSettings","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiBusinessSettingsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiAccountView"}}}}}}},"/api/v1/accounts/{accountId}/management/pins":{"post":{"tags":["Identidad y negocios"],"operationId":"createPin","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiPinCreateRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiPinView"}}}}}}},"/api/v1/accounts/{accountId}/management/members/{userId}/permissions":{"post":{"tags":["Identidad y negocios"],"operationId":"updatePermissions","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberPermissions"}}},"required":true},"responses":{"204":{"description":"No Content"}}}},"/api/v1/accounts/{accountId}/management/logo/upload-url":{"get":{"tags":["Identidad y negocios"],"operationId":"businessLogoCapability","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Capability"}}}}}},"post":{"tags":["Identidad y negocios"],"operationId":"businessLogoUpload","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UploadUrl"}}}}}}},"/api/v1/accounts/{accountId}/management/invitations":{"post":{"tags":["Identidad y negocios"],"operationId":"inviteManager","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiInviteManagerRequest"}}},"required":true},"responses":{"201":{"description":"Created"}}}},"/api/v1/accounts/{accountId}/loyalty/debt-reminders/{customerId}/send":{"post":{"tags":["Club de Clientes y Recordatorios"],"summary":"Registra el envío de recordatorio de deuda (control anti-spam diario) y envía email opcional","operationId":"sendDebtReminder_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendDebtReminderRequest"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReminderDispatchResult"}}}}}}},"/api/v1/accounts/{accountId}/loyalty/customers/{customerId}/redeem":{"post":{"tags":["Club de Clientes y Recordatorios"],"summary":"Canjea puntos validando saldo disponible y mínimo configurado","operationId":"redeem","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedeemPointsRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerLoyaltyView"}}}}}}},"/api/v1/accounts/{accountId}/loyalty/customers/{customerId}/earn":{"post":{"tags":["Club de Clientes y Recordatorios"],"summary":"Suma puntos por importe de compra o registra un ajuste manual de puntos","operationId":"earnOrAdjust","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarnOrAdjustRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerLoyaltyView"}}}}}}},"/api/v1/accounts/{accountId}/inventory/movements":{"get":{"tags":["Productos e inventario"],"summary":"Lista los movimientos de inventario","operationId":"inventoryMovements","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"productId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiPageApiInventoryMovementView"}}}}}},"post":{"tags":["Productos e inventario"],"summary":"Registra una entrada de stock con su responsable y motivo","operationId":"createInventoryMovement","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiInventoryMovementRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiInventoryMovementView"}}}}}}},"/api/v1/accounts/{accountId}/inventory/movements/bulk":{"post":{"tags":["business-operations-api-controller"],"operationId":"stock","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StockBatch"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/integrations/applications":{"get":{"tags":["business-operations-api-controller"],"operationId":"applications","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["business-operations-api-controller"],"operationId":"createApplication","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Application"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CreatedApiClientView"}}}}}}},"/api/v1/accounts/{accountId}/integrations/applications/{id}/rotate-secret":{"post":{"tags":["business-operations-api-controller"],"operationId":"rotate_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CreatedApiClientView"}}}}}}},"/api/v1/accounts/{accountId}/expenses":{"get":{"tags":["Egresos"],"operationId":"list_3","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","enum":["DINERO","STOCK_INSUMO"]}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["PROVEEDOR","GASTO_OPERATIVO","INVERSION","SUSCRIPCION","RETIRO","OTRO"]}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeVoided","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EgresoView"}}}}}}},"post":{"tags":["Egresos"],"operationId":"create_2","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EgresoForm"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EgresoView"}}}}}}},"/api/v1/accounts/{accountId}/expenses/{id}/void":{"post":{"tags":["Egresos"],"operationId":"voidExpense","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EgresoView"}}}}}}},"/api/v1/accounts/{accountId}/expenses/{id}/replenish":{"post":{"tags":["Egresos"],"operationId":"replenish","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EgresoView"}}}}}}},"/api/v1/accounts/{accountId}/expenses/import-subscription":{"post":{"tags":["Egresos"],"operationId":"importSubscription","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ImportSubscriptionResponse"}}}}}}},"/api/v1/accounts/{accountId}/customers":{"get":{"tags":["customer-api-controller"],"operationId":"search","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":254,"minLength":0}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Customer"}}}}}}},"post":{"tags":["customer-api-controller"],"operationId":"create_3","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerFields"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Customer"}}}}}}},"/api/v1/accounts/{accountId}/customers/{customerId}/sales":{"post":{"tags":["customer-api-controller"],"operationId":"sale","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerSaleRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiSaleDetailView"}}}}}}},"/api/v1/accounts/{accountId}/customers/{customerId}/collections":{"post":{"tags":["customer-api-controller"],"operationId":"collect","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Statement"}}}}}}},"/api/v1/accounts/{accountId}/cash-register/open":{"post":{"tags":["Caja"],"summary":"Abre un turno de caja validando el PIN de operador","operationId":"open","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiCashOpenRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiCashRegisterView"}}}}}}},"/api/v1/accounts/{accountId}/cash-register/close":{"post":{"tags":["Caja"],"summary":"Cierra el turno y registra el arqueo contado","operationId":"close","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiCashCloseRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiCashRegisterView"}}}}}}},"/api/v1/accounts/{accountId}/workspace/orders/{id}/state":{"patch":{"tags":["mobile-workspace-api-controller"],"operationId":"orderState","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderState"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomOrder"}}}}}}},"/api/v1/accounts/{accountId}/workspace/agenda/{id}/state":{"patch":{"tags":["mobile-workspace-api-controller"],"operationId":"agendaState","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaState"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AgendaItem"}}}}}}},"/api/v1/accounts/{accountId}/webhooks/{subscriptionId}":{"delete":{"tags":["Webhooks"],"summary":"Desactiva un webhook","operationId":"disable","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"subscriptionId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"No Content"}}},"patch":{"tags":["Webhooks"],"summary":"Actualiza o activa/desactiva un webhook","operationId":"update_3","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"subscriptionId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionUpdateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionView"}}}}}}},"/api/v1/accounts/{accountId}/products/{productId}/price":{"patch":{"tags":["business-operations-api-controller"],"operationId":"price","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"productId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Price"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiProductView"}}}}}}},"/api/v1/accounts/{accountId}/mobile-devices/{deviceId}":{"delete":{"tags":["mobile-device-api-controller"],"operationId":"delete_2","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"deviceId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"No Content"}}},"patch":{"tags":["mobile-device-api-controller"],"operationId":"update_4","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"deviceId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileDeviceUpdateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MobileDeviceView"}}}}}}},"/api/v1/accounts/{accountId}/customers/{customerId}/email":{"patch":{"tags":["customer-api-controller"],"operationId":"updateEmail","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerEmail"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Customer"}}}}}}},"/webmcp/summary":{"get":{"tags":["web-mcp-core-controller"],"operationId":"summary","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/storefront/products":{"get":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"listStorefrontProducts","parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StorefrontProductVisibilityView"}}}}}}}},"/webmcp/storefront/orders":{"get":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"listStorefrontOrders","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"TODAS"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StorefrontOrderView"}}}}}}}},"/webmcp/sales/{type}/{id}":{"get":{"tags":["web-mcp-sales-controller"],"operationId":"getSaleDetail","parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/VentaRegistroDetalleView"}}}}}}},"/webmcp/sales/{type}/{id}/receipt-whatsapp":{"get":{"tags":["web-mcp-sales-controller"],"operationId":"getWhatsAppReceipt","parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"phone","in":"query","required":false,"schema":{"type":"string"}},{"name":"width","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":80}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReceiptView"}}}}}}},"/webmcp/reports":{"get":{"tags":["web-mcp-core-controller"],"operationId":"reports","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"grouping","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/webmcp/pos/cart":{"get":{"tags":["web-mcp-sales-controller"],"operationId":"getPosCart","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}},"delete":{"tags":["web-mcp-sales-controller"],"operationId":"clearPosCart","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/loyalty/winback":{"get":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"listWinbackCandidates","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WinbackCandidate"}}}}}}}},"/webmcp/loyalty/summary":{"get":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"getLoyaltySummary","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoyaltySummaryView"}}}}}}},"/webmcp/loyalty/debt-reminders":{"get":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"listDebtReminders","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DebtReminderCandidate"}}}}}}}},"/webmcp/inventory/movements":{"get":{"tags":["web-mcp-catalog-controller"],"operationId":"inventoryMovements_1","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"productId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiPageApiInventoryMovementView"}}}}}}},"/webmcp/inventory/alerts":{"get":{"tags":["web-mcp-catalog-controller"],"operationId":"inventoryAlerts","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiPageApiProductView"}}}}}}},"/webmcp/customers/{id}":{"get":{"tags":["web-mcp-customers-storefront-controller"],"operationId":"getCustomerAccount","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/context":{"get":{"tags":["web-mcp-core-controller"],"operationId":"context","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/cash-register":{"get":{"tags":["web-mcp-sales-controller"],"operationId":"getCashRegisterStatus","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/bulk-pricing/batches":{"get":{"tags":["web-mcp-catalog-controller"],"operationId":"listBulkPricingBatches","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PriceAdjustmentBatchView"}}}}}}}},"/webmcp/activity":{"get":{"tags":["web-mcp-core-controller"],"operationId":"activity","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BitacoraFeedView"}}}}}}},"/ventas/{tipo}/{id}/comprobante-digital":{"get":{"tags":["receipt-controller"],"operationId":"comprobanteDigital","parameters":[{"name":"tipo","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"width","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":80}},{"name":"phone","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReceiptView"}}}}}}},"/ventas/registro/{tipo}/{id}/editar/productos":{"get":{"tags":["venta-edicion-controller"],"operationId":"productos","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":""}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Producto"}}}}}}}},"/ventas/registro/{tipo}/{id}/detalle":{"get":{"tags":["punto-venta-controller"],"operationId":"detalleRegistro","parameters":[{"name":"tipo","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DetalleRegistroWeb"}}}}}}},"/ventas/pv/promociones/evaluar":{"get":{"tags":["punto-venta-controller"],"operationId":"evaluarPromocionesCarrito","parameters":[{"name":"medios","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]}}},{"name":"financiado","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PromocionEvaluacionView"}}}}}}},"/ventas/pv/promociones/buscar":{"get":{"tags":["punto-venta-controller"],"operationId":"buscarPromociones","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PromocionCardView"}}}}}}}},"/ventas/pv/productos/catalogo":{"get":{"tags":["punto-venta-controller"],"operationId":"catalogoProductos","parameters":[{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PosCatalogoResponse"}}}}}}},"/ventas/pv/productos/buscar":{"get":{"tags":["punto-venta-controller"],"operationId":"buscarProductos","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductoBusquedaItemView"}}}}}}}},"/ventas/pv/estado":{"get":{"tags":["punto-venta-controller"],"operationId":"estadoCaja","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/ventas/clientes/buscar":{"get":{"tags":["clientes-controller"],"operationId":"search_1","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":""}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerSuggestion"}}}}}}}},"/ventas/clientes/buscar-con-saldo":{"get":{"tags":["clientes-controller"],"operationId":"searchWithBalance","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":""}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerBalanceSuggestion"}}}}}}}},"/t/{slug}/promos/{promotionId}/imagen":{"get":{"tags":["public-storefront-controller"],"operationId":"promotionImage","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"promotionId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/t/{slug}/google-feed.xml":{"get":{"tags":["public-storefront-controller"],"operationId":"googleFeed","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/xml;charset=UTF-8":{"schema":{"type":"string"}}}}}}},"/sitemap.xml":{"get":{"tags":["storefront-sitemap-controller"],"operationId":"sitemap","responses":{"200":{"description":"OK","content":{"application/xml;charset=UTF-8":{"schema":{"type":"string"}}}}}}},"/robots.txt":{"get":{"tags":["storefront-sitemap-controller"],"operationId":"robots","responses":{"200":{"description":"OK","content":{"text/plain;charset=UTF-8":{"schema":{"type":"string"}}}}}}},"/reportes/proyeccion-compra":{"get":{"tags":["reporte-controller"],"operationId":"proyeccionJson","parameters":[{"name":"ventanaDias","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}},{"name":"horizonteDias","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":15}},{"name":"margenPct","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ProyeccionCompraView"}}}}}}},"/proveedores/sugerencias":{"get":{"tags":["proveedor-controller"],"operationId":"obtenerSugerencias","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugerenciaReposicionView"}}}}}}}},"/proveedores/productos":{"get":{"tags":["proveedor-controller"],"operationId":"buscarProductos_1","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":""}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductoSelectorView"}}}}}}}},"/proveedores/ordenes/{id}":{"get":{"tags":["proveedor-controller"],"operationId":"obtenerOrdenJson","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}},"/proveedores/ordenes-pendientes":{"get":{"tags":["proveedor-controller"],"operationId":"listarOrdenesPendientesJson","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrdenCompraView"}}}}}}}},"/proveedores/lista":{"get":{"tags":["proveedor-controller"],"operationId":"listarProveedoresJson","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProveedorView"}}}}}}}},"/productos/promociones/productos":{"get":{"tags":["promocion-controller"],"operationId":"buscarProductos_2","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":""}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductoOpcionView"}}}}}}}},"/productos/promociones/imagen/local/{id}":{"get":{"tags":["promocion-controller"],"operationId":"leerImagenLocal","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/productos/openfoodfacts/buscar":{"get":{"tags":["producto-controller"],"operationId":"buscarOpenFoodFacts","parameters":[{"name":"codigo","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/productos/buscar":{"get":{"tags":["producto-controller"],"operationId":"buscar","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResultadoBusqueda"}}}}}}}},"/integrations/merchant-qr/checkout/{id}/status":{"get":{"tags":["merchant-integration-controller"],"operationId":"checkoutStatus","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Checkout"}}}}}}},"/integrations/merchant-qr/checkout/{id}/image":{"get":{"tags":["merchant-integration-controller"],"operationId":"qrImage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"image/svg+xml":{"schema":{"type":"string"}}}}}}},"/integrations/bank-transfer-qr/image/{version}":{"get":{"tags":["bank-transfer-qr-controller"],"operationId":"image","parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"image/svg+xml":{"schema":{"type":"string"}}}}}}},"/integrations/arca/documents/{id}/status":{"get":{"tags":["merchant-integration-controller"],"operationId":"invoiceStatus","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/integrations/arca/documents/{id}/pdf":{"get":{"tags":["merchant-integration-controller"],"operationId":"fiscalPdf","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/pdf":{"schema":{"type":"string","format":"byte"}}}}}}},"/integrations/arca/documents/{id}/image":{"get":{"tags":["merchant-integration-controller"],"operationId":"fiscalImage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"image/svg+xml":{"schema":{"type":"string"}}}}}}},"/egresos/{id}/detalle":{"get":{"tags":["egreso-controller"],"operationId":"detalle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EgresoView"}}}}}}},"/egresos/productos":{"get":{"tags":["egreso-controller"],"operationId":"buscarProductos_3","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":""}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductoCompraOpcionView"}}}}}}}},"/calendarios/{token}.ics":{"get":{"tags":["agenda-calendar-feed-controller"],"operationId":"feed","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/calendar;charset=UTF-8":{"schema":{"type":"string"}}}}}}},"/api/v1/meta":{"get":{"tags":["Identidad y negocios"],"summary":"Describe la versión y los endpoints OAuth de la API","operationId":"meta","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/api/v1/me":{"get":{"tags":["Identidad y negocios"],"summary":"Devuelve el usuario autenticado y sus negocios","operationId":"me","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiUserView"}}}}}}},"/api/v1/management/invitations":{"get":{"tags":["Identidad y negocios"],"operationId":"receivedInvitations","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts":{"get":{"tags":["Identidad y negocios"],"summary":"Lista los negocios accesibles por el usuario","operationId":"accounts","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiAccountView"}}}}}}}},"/api/v1/accounts/{accountId}":{"get":{"tags":["Identidad y negocios"],"summary":"Consulta un negocio y el rol del usuario","operationId":"account","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiAccountView"}}}}}}},"/api/v1/accounts/{accountId}/workspace/pending-actions":{"get":{"tags":["mobile-workspace-api-controller"],"operationId":"pendingActions","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PendingActions"}}}}}}},"/api/v1/accounts/{accountId}/webhooks/{subscriptionId}/deliveries":{"get":{"tags":["Webhooks"],"summary":"Consulta el historial de entregas","operationId":"deliveries","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"subscriptionId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiPageWebhookDeliveryView"}}}}}}},"/api/v1/accounts/{accountId}/webhooks/events":{"get":{"tags":["Webhooks"],"summary":"Lista los eventos disponibles","operationId":"events","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}}}},"/api/v1/accounts/{accountId}/summary":{"get":{"tags":["Identidad y negocios"],"summary":"Devuelve los indicadores del panel de inicio","operationId":"summary_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DashboardSummary"}}}}}}},"/api/v1/accounts/{accountId}/subscription":{"get":{"tags":["business-operations-api-controller"],"operationId":"subscription","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/storefront/products":{"get":{"tags":["Vidriera Online"],"summary":"Lista productos activos indicando cuáles son visibles en la vidriera pública","operationId":"listProducts_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StorefrontProductVisibilityView"}}}}}}}},"/api/v1/accounts/{accountId}/storefront/products/visible":{"get":{"tags":["Vidriera Online"],"summary":"Lista una página de los productos del catálogo público","operationId":"listVisibleProducts","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/VisibleProductsPage"}}}}}}},"/api/v1/accounts/{accountId}/storefront/orders":{"get":{"tags":["Vidriera Online"],"summary":"Lista pedidos recibidos por la vidriera online","operationId":"listOrders","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"TODAS"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StorefrontOrderView"}}}}}}}},"/api/v1/accounts/{accountId}/status":{"get":{"tags":["Identidad y negocios"],"summary":"Consulta el estado operativo, plan y suscripción del negocio","operationId":"accountStatus","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiAccountStatusView"}}}}}}},"/api/v1/accounts/{accountId}/sales/{type}/{saleId}":{"get":{"tags":["Ventas"],"summary":"Consulta el detalle de una venta","operationId":"sale_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"type","in":"path","required":true,"schema":{"type":"string"}},{"name":"saleId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiSaleDetailView"}}}}}}},"/api/v1/accounts/{accountId}/sales/{type}/{id}/receipt":{"get":{"tags":["Ventas"],"summary":"Genera el comprobante digital (texto WhatsApp + enlace wa.me + vista térmica 58/80mm) de una venta","operationId":"receipt","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"type","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"phone","in":"query","required":false,"schema":{"type":"string"}},{"name":"width","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":80}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReceiptView"}}}}}}},"/api/v1/accounts/{accountId}/sales/totals":{"get":{"tags":["Ventas"],"summary":"Calcula totales, ticket promedio y medios de pago","operationId":"totals","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiSalesTotalsView"}}}}}}},"/api/v1/accounts/{accountId}/reports":{"get":{"tags":["Reportes"],"summary":"Devuelve el reporte completo disponible en Espina","operationId":"fullReport","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"grouping","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReporteView"}}}}}}},"/api/v1/accounts/{accountId}/reports/summary":{"get":{"tags":["Reportes"],"summary":"Devuelve indicadores, variaciones y ticket promedio","operationId":"summary_2","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"grouping","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/reports/sellers":{"get":{"tags":["Reportes"],"summary":"Devuelve rendimiento por vendedor","operationId":"sellers","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"grouping","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/reports/sales-series":{"get":{"tags":["Reportes"],"summary":"Devuelve la serie temporal de ventas","operationId":"salesSeries","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"grouping","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/reports/purchase-forecast":{"get":{"tags":["Reportes"],"summary":"Devuelve la proyección de compra de stock e insumos pendientes de reponer","operationId":"purchaseForecast","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"ventanaDias","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}},{"name":"horizonteDias","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":15}},{"name":"margenPct","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ProyeccionCompraView"}}}}}}},"/api/v1/accounts/{accountId}/reports/profitability":{"get":{"tags":["Reportes"],"summary":"Devuelve métricas de rentabilidad real según el costo cargado en los productos","operationId":"profitability","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"grouping","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/reports/products":{"get":{"tags":["Reportes"],"summary":"Devuelve productos destacados y accionables","operationId":"products_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"grouping","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/reports/peak-hours":{"get":{"tags":["Reportes"],"summary":"Devuelve ventas agrupadas por hora","operationId":"peakHours","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"grouping","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/reports/payment-methods":{"get":{"tags":["Reportes"],"summary":"Devuelve totales por medio de pago","operationId":"paymentMethods","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"grouping","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/reports/inventory":{"get":{"tags":["Reportes"],"summary":"Devuelve el resumen y las alertas de inventario","operationId":"inventory","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"grouping","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/reports/categories":{"get":{"tags":["Reportes"],"summary":"Compara las categorías del periodo","operationId":"categories","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"grouping","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/reports/cash":{"get":{"tags":["Reportes"],"summary":"Devuelve el resumen de caja y cobros digitales","operationId":"cash","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"grouping","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/purchase-orders/suggestions":{"get":{"tags":["Proveedores y compras"],"operationId":"suggestions","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SugerenciaReposicionView"}}}}}}}},"/api/v1/accounts/{accountId}/products/{productId}/history":{"get":{"tags":["business-operations-api-controller"],"operationId":"history","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"productId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/products/units":{"get":{"tags":["business-operations-api-controller"],"operationId":"units","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/products/lookup":{"get":{"tags":["business-operations-api-controller"],"operationId":"lookup","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"code","in":"query","required":true,"schema":{"type":"string","pattern":"[0-9]{4,30}"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OpenFoodFactsProductView"}}}}}}},"/api/v1/accounts/{accountId}/products/import/template":{"get":{"tags":["product-import-api-controller"],"operationId":"template","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/api/v1/accounts/{accountId}/products/import/profiles":{"get":{"tags":["product-import-api-controller"],"operationId":"profiles","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/products/categories":{"get":{"tags":["Productos e inventario"],"summary":"Lista las categorías existentes","operationId":"categories_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/api/v1/accounts/{accountId}/products/capacity":{"get":{"tags":["Productos e inventario"],"summary":"Consulta el cupo de productos según el plan","operationId":"capacity","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiProductCapacityView"}}}}}}},"/api/v1/accounts/{accountId}/products/bulk-pricing/batches":{"get":{"tags":["Remarcación masiva"],"summary":"Lista los últimos lotes de remarcación masiva del negocio","operationId":"batches","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PriceAdjustmentBatchView"}}}}}}}},"/api/v1/accounts/{accountId}/offline/catalog":{"get":{"tags":["offline-api-controller"],"operationId":"catalog","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/accounts/{accountId}/marketplace":{"get":{"tags":["marketplace-api-controller"],"operationId":"meta_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Meta"}}}}}}},"/api/v1/accounts/{accountId}/management":{"get":{"tags":["Identidad y negocios"],"summary":"Consulta identidad, equipo, invitaciones y PINs activos del negocio","operationId":"businessManagement","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiBusinessManagementView"}}}}}}},"/api/v1/accounts/{accountId}/management/team":{"get":{"tags":["Identidad y negocios"],"operationId":"team","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiTeamView"}}}}}}},"/api/v1/accounts/{accountId}/loyalty/winback":{"get":{"tags":["Club de Clientes y Recordatorios"],"summary":"Lista clientes activos sin actividad reciente con mensaje Win-Back y promo activa","operationId":"listWinback","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WinbackCandidate"}}}}}}}},"/api/v1/accounts/{accountId}/loyalty/summary":{"get":{"tags":["Club de Clientes y Recordatorios"],"summary":"Resumen de puntos en circulación, recordatorios pendientes y Win-Back","operationId":"summary_3","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoyaltySummaryView"}}}}}}},"/api/v1/accounts/{accountId}/loyalty/debt-reminders":{"get":{"tags":["Club de Clientes y Recordatorios"],"summary":"Lista clientes con saldo deudor vencido y link de recordatorio amable por WhatsApp","operationId":"listDebtReminders_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DebtReminderCandidate"}}}}}}}},"/api/v1/accounts/{accountId}/loyalty/customers/{customerId}":{"get":{"tags":["Club de Clientes y Recordatorios"],"summary":"Consulta el saldo de puntos e historial auditable de un cliente","operationId":"customerLedger","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":30}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CustomerLoyaltyView"}}}}}}},"/api/v1/accounts/{accountId}/inventory/alerts":{"get":{"tags":["Productos e inventario"],"summary":"Lista alertas de bajo stock y productos sin stock","operationId":"inventoryAlerts_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiPageApiProductView"}}}}}}},"/api/v1/accounts/{accountId}/expenses/summary":{"get":{"tags":["Egresos"],"operationId":"summary_4","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["PROVEEDOR","GASTO_OPERATIVO","INVERSION","SUSCRIPCION","RETIRO","OTRO"]}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"includeVoided","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExpenseSummaryResponse"}}}}}}},"/api/v1/accounts/{accountId}/customers/lookup":{"get":{"tags":["customer-api-controller"],"operationId":"lookup_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":""}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerSuggestion"}}}}}}}},"/api/v1/accounts/{accountId}/customers/lookup-with-balance":{"get":{"tags":["customer-api-controller"],"operationId":"lookupWithBalance","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":""}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerBalanceSuggestion"}}}}}}}},"/api/v1/accounts/{accountId}/cash-register":{"get":{"tags":["Caja"],"summary":"Consulta la caja abierta y el efectivo esperado","operationId":"status","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiCashRegisterView"}}}}}}},"/api/v1/accounts/{accountId}/balances":{"get":{"tags":["Balances operativos"],"summary":"Resume ventas, caja y medios de pago del periodo","operationId":"balance","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApiBalanceView"}}}}}}},"/api/v1/accounts/{accountId}/activity":{"get":{"tags":["Bitácora"],"summary":"Devuelve la bitácora unificada del negocio con carga incremental","operationId":"activity_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BitacoraFeedView"}}}}}}},"/api/v1/accounts/{accountId}/activity/export":{"get":{"tags":["Bitácora"],"summary":"Descarga la bitácora filtrada como libro Excel gerencial","operationId":"export","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"byte"}}}}}}},"/.well-known/openai-apps-challenge":{"get":{"tags":["open-ai-apps-challenge-controller"],"operationId":"challenge","responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/.well-known/oauth-protected-resource/mcp":{"get":{"tags":["mcp-o-auth-metadata-controller"],"operationId":"protectedResourceMetadata","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/.well-known/oauth-protected-resource":{"get":{"tags":["mcp-o-auth-metadata-controller"],"operationId":"protectedResourceMetadata_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/promotions/{id}":{"delete":{"tags":["web-mcp-catalog-controller"],"operationId":"deletePromotion","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/webmcp/pos/cart/items/{productId}":{"delete":{"tags":["web-mcp-sales-controller"],"operationId":"removePosCartItem","parameters":[{"name":"productId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}}},"/api/v1/accounts/{accountId}/products/import/{id}":{"delete":{"tags":["product-import-api-controller"],"operationId":"cancel_1","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"}}}},"/api/v1/accounts/{accountId}/products/import/profiles/{id}":{"delete":{"tags":["product-import-api-controller"],"operationId":"deleteProfile","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"No Content"}}}},"/api/v1/accounts/{accountId}/marketplace/catalogs/{id}/products/{productId}":{"delete":{"tags":["marketplace-api-controller"],"operationId":"unpublish","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"productId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"No Content"}}}},"/api/v1/accounts/{accountId}/management/pins/{pinId}":{"delete":{"tags":["Identidad y negocios"],"operationId":"deactivatePin","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"pinId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"No Content"}}}},"/api/v1/accounts/{accountId}/management/members/{userId}":{"delete":{"tags":["Identidad y negocios"],"operationId":"revokeManager","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"204":{"description":"No Content"}}}},"/api/v1/accounts/{accountId}/integrations/applications/{id}":{"delete":{"tags":["business-operations-api-controller"],"operationId":"deleteApplication","parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"}}}}},"components":{"schemas":{"StorefrontConfigUpdateRequest":{"type":"object","properties":{"enabled":{"type":"boolean"},"slug":{"type":"string","maxLength":80,"minLength":0},"headline":{"type":"string","maxLength":160,"minLength":0},"whatsappPhone":{"type":"string","maxLength":40,"minLength":0},"pickupEnabled":{"type":"boolean"},"deliveryEnabled":{"type":"boolean"},"showOutOfStock":{"type":"boolean"}}},"StorefrontConfigView":{"type":"object","properties":{"accountId":{"type":"integer","format":"int64"},"businessName":{"type":"string"},"enabled":{"type":"boolean"},"slug":{"type":"string"},"publicPath":{"type":"string"},"headline":{"type":"string"},"whatsappPhone":{"type":"string"},"pickupEnabled":{"type":"boolean"},"deliveryEnabled":{"type":"boolean"},"showOutOfStock":{"type":"boolean"},"visualIcon":{"type":"string"},"visualColor":{"type":"string"},"visualColorDark":{"type":"string"},"googleFeedPath":{"type":"string"}}},"ProductUpdateRequest":{"type":"object","properties":{"code":{"type":"string"},"description":{"type":"string"},"category":{"type":"string"},"price":{"type":"number"},"costPrice":{"type":"number"},"targetMarginPercent":{"type":"number"},"currentStock":{"type":"integer","format":"int32"},"minimumStock":{"type":"integer","format":"int32"},"unitCode":{"type":"string"},"customUnit":{"type":"string"},"active":{"type":"boolean"}}},"ApiProductView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"code":{"type":"string"},"description":{"type":"string"},"category":{"type":"string"},"unitCode":{"type":"string"},"unitName":{"type":"string"},"customUnit":{"type":"string"},"price":{"type":"number"},"currentStock":{"type":"integer","format":"int32"},"minimumStock":{"type":"integer","format":"int32"},"stockStatus":{"type":"string"},"active":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"cost":{"type":"number"},"targetMargin":{"type":"number"},"marginPct":{"type":"number"},"imagenUrl":{"type":"string"}}},"PartialLoyaltyConfigRequest":{"type":"object","properties":{"enabled":{"type":"boolean"},"amountPerPoint":{"type":"number"},"pointValueCurrency":{"type":"number"},"minRedeemPoints":{"type":"integer","format":"int32"},"debtReminderDays":{"type":"integer","format":"int32"},"winbackInactiveDays":{"type":"integer","format":"int32"}}},"LoyaltyConfigView":{"type":"object","properties":{"enabled":{"type":"boolean"},"amountPerPoint":{"type":"number"},"pointValueCurrency":{"type":"number"},"minRedeemPoints":{"type":"integer","format":"int32"},"debtReminderDays":{"type":"integer","format":"int32"},"winbackInactiveDays":{"type":"integer","format":"int32"}}},"UpdateBusinessIdentityRequest":{"type":"object","properties":{"name":{"type":"string"},"visualIcon":{"type":"string"},"visualColor":{"type":"string"},"visualColorDark":{"type":"string"}}},"ModuleSelection":{"type":"object","properties":{"enabled":{"type":"array","items":{"type":"string","enum":["CAJA","STOCK","EGRESOS","CLIENTES","PROVEEDORES","PROMOCIONES","REPORTES","VIDRIERA","BITACORA","AGENDA","PEDIDOS"]},"uniqueItems":true},"includesCashAndStock":{"type":"boolean"}},"required":["enabled"]},"WorkspaceModuleView":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"tagline":{"type":"string"},"benefit":{"type":"string"},"category":{"type":"string"},"iconClass":{"type":"string"},"routePath":{"type":"string"},"previewTitle":{"type":"string"},"previewHighlights":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"proOnly":{"type":"boolean"},"proNote":{"type":"string"},"lockedByPlan":{"type":"boolean"},"requiredPlanLabel":{"type":"string"}}},"Subscription":{"type":"object","properties":{"url":{"type":"string"}}},"ProveedorForm":{"type":"object","properties":{"nombre":{"type":"string"},"rubro":{"type":"string"},"whatsapp":{"type":"string"},"email":{"type":"string"},"direccion":{"type":"string"},"notas":{"type":"string"}}},"ProveedorView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"nombre":{"type":"string"},"rubro":{"type":"string"},"whatsapp":{"type":"string"},"whatsappLink":{"type":"string"},"email":{"type":"string"},"mailtoLink":{"type":"string"},"direccion":{"type":"string"},"notas":{"type":"string"},"activo":{"type":"boolean"},"ordenesCount":{"type":"integer","format":"int64"}}},"OrdenCompraForm":{"type":"object","properties":{"proveedorId":{"type":"integer","format":"int64"},"proveedorNombre":{"type":"string"},"proveedorWhatsapp":{"type":"string"},"proveedorEmail":{"type":"string"},"notas":{"type":"string"},"comprobanteUrl":{"type":"string"},"marcarEnviada":{"type":"boolean"},"solicitarAprobacion":{"type":"boolean"},"items":{"type":"array","items":{"$ref":"#/components/schemas/OrdenCompraItemForm"}}}},"OrdenCompraItemForm":{"type":"object","properties":{"productoId":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"cantidadPedida":{"type":"integer","format":"int32"},"costoUnitario":{"type":"number"}}},"OrdenCompraItemView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"productoId":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"cantidadPedida":{"type":"integer","format":"int32"},"cantidadRecibida":{"type":"integer","format":"int32"},"costoUnitario":{"type":"number"},"subtotalEstimado":{"type":"number"},"enCatalogo":{"type":"boolean"},"stockActual":{"type":"integer","format":"int32"},"stockMinimo":{"type":"integer","format":"int32"}}},"OrdenCompraView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"numero":{"type":"string"},"proveedorId":{"type":"integer","format":"int64"},"proveedorNombre":{"type":"string"},"proveedorWhatsapp":{"type":"string"},"proveedorWhatsappLink":{"type":"string"},"proveedorEmail":{"type":"string"},"estado":{"type":"string","enum":["BORRADOR","PENDIENTE_APROBACION","APROBADA","RECHAZADA","ENVIADA","RECIBIDA","CANCELADA"]},"estadoEtiqueta":{"type":"string"},"editable":{"type":"boolean"},"pendiente":{"type":"boolean"},"requiereAprobacion":{"type":"boolean"},"notas":{"type":"string"},"comprobanteUrl":{"type":"string"},"totalEstimado":{"type":"number"},"totalUnidadesPedidas":{"type":"integer","format":"int32"},"totalUnidadesRecibidas":{"type":"integer","format":"int32"},"cantidadItemsCatalogo":{"type":"integer","format":"int32"},"cantidadItemsLibres":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"},"enviadaAt":{"type":"string","format":"date-time"},"recibidaAt":{"type":"string","format":"date-time"},"creadaPorNombre":{"type":"string"},"aprobadaPorNombre":{"type":"string"},"aprobadaAt":{"type":"string","format":"date-time"},"motivoRechazo":{"type":"string"},"mensajePedido":{"type":"string"},"whatsappEnviarUrl":{"type":"string"},"mailtoEnviarUrl":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/OrdenCompraItemView"}}}},"PromotionItemRequest":{"type":"object","properties":{"productId":{"type":"integer","format":"int64"},"category":{"type":"string"},"quantity":{"type":"integer","format":"int32"}}},"PromotionUpsertRequest":{"type":"object","properties":{"nombre":{"type":"string","maxLength":140,"minLength":0},"tipo":{"type":"string","enum":["LLEVA_PAGA","SEGUNDA_UNIDAD","DESCUENTO_CANTIDAD","COMBO","MEDIO_PAGO"]},"alcance":{"type":"string","enum":["PRODUCTOS","CATEGORIA","COMBO","VENTA"]},"medioPagoRequerido":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]},"categoriaObjetivo":{"type":"string"},"cantidadLleva":{"type":"integer","format":"int32"},"cantidadPaga":{"type":"integer","format":"int32"},"modoBeneficio":{"type":"string"},"descuentoPorcentaje":{"type":"number"},"descuentoMonto":{"type":"number"},"precioFijo":{"type":"number"},"activa":{"type":"boolean"},"acumulable":{"type":"boolean"},"fechaInicio":{"type":"string","format":"date"},"fechaFin":{"type":"string","format":"date"},"productoIds":{"type":"array","items":{"type":"integer","format":"int64"}},"comboItems":{"type":"array","items":{"$ref":"#/components/schemas/PromotionItemRequest"}}},"required":["nombre","tipo"]},"ItemView":{"type":"object","properties":{"productoId":{"type":"integer","format":"int64"},"productoLabel":{"type":"string"},"categoria":{"type":"string"},"cantidadRequerida":{"type":"integer","format":"int32"},"sinStock":{"type":"boolean"}}},"PromocionCardView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"nombre":{"type":"string"},"imagenUrl":{"type":"string"},"tipo":{"type":"string","enum":["LLEVA_PAGA","SEGUNDA_UNIDAD","DESCUENTO_CANTIDAD","COMBO","MEDIO_PAGO"]},"alcance":{"type":"string","enum":["PRODUCTOS","CATEGORIA","COMBO","VENTA"]},"medioPagoRequerido":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]},"medioPagoEtiqueta":{"type":"string"},"badgeBeneficio":{"type":"string"},"tipoEtiqueta":{"type":"string"},"resumenHumano":{"type":"string"},"vigenciaEtiqueta":{"type":"string"},"activa":{"type":"boolean"},"vigenteHoy":{"type":"boolean"},"acumulable":{"type":"boolean"},"categoriaObjetivo":{"type":"string"},"cantidadLleva":{"type":"integer","format":"int32"},"cantidadPaga":{"type":"integer","format":"int32"},"descuentoPorcentaje":{"type":"number"},"descuentoMonto":{"type":"number"},"precioFijo":{"type":"number"},"fechaInicio":{"type":"string","format":"date"},"fechaFin":{"type":"string","format":"date"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemView"}}}},"ApiProductCreateRequest":{"type":"object","properties":{"code":{"type":"string","maxLength":255,"minLength":0},"description":{"type":"string","maxLength":255,"minLength":0},"category":{"type":"string","maxLength":255,"minLength":0},"unitCode":{"type":"string","maxLength":50,"minLength":0},"customUnit":{"type":"string","maxLength":255,"minLength":0},"price":{"type":"number","minimum":0.01},"currentStock":{"type":"integer","format":"int32","minimum":0},"minimumStock":{"type":"integer","format":"int32","minimum":0},"active":{"type":"boolean"},"cost":{"type":"number","minimum":0.00},"targetMargin":{"type":"number","maximum":9999.99,"minimum":0.00},"imagenUrl":{"type":"string","maxLength":600,"minLength":0}},"required":["category","code","currentStock","description","minimumStock","price","unitCode"]},"BusinessLogoRequest":{"type":"object","properties":{"logoUrl":{"type":"string"}}},"ApiAccountView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"role":{"type":"string"},"plan":{"type":"string"},"subscriptionStatus":{"type":"string"},"trialEndsAt":{"type":"string","format":"date"},"paidUntil":{"type":"string","format":"date"},"active":{"type":"boolean"},"setupCompleted":{"type":"boolean"},"visualIcon":{"type":"string"},"visualColor":{"type":"string"},"visualColorDark":{"type":"string"},"owner":{"type":"boolean"},"pinRequiredForSales":{"type":"boolean"},"logoUrl":{"type":"string"}}},"LoyaltyConfigRequest":{"type":"object","properties":{"enabled":{"type":"boolean"},"amountPerPoint":{"type":"number","minimum":0.01},"pointValueCurrency":{"type":"number","minimum":0.01},"minRedeemPoints":{"type":"integer","format":"int32","maximum":1000000,"minimum":1},"debtReminderDays":{"type":"integer","format":"int32","maximum":365,"minimum":1},"winbackInactiveDays":{"type":"integer","format":"int32","maximum":365,"minimum":1}},"required":["amountPerPoint","debtReminderDays","enabled","minRedeemPoints","pointValueCurrency","winbackInactiveDays"]},"EgresoForm":{"type":"object","properties":{"modo":{"type":"string","enum":["DINERO","STOCK_INSUMO"]},"tipo":{"type":"string","enum":["PROVEEDOR","GASTO_OPERATIVO","INVERSION","SUSCRIPCION","RETIRO","OTRO"]},"motivoStock":{"type":"string","enum":["AGOTADO","USO_INTERNO","ROTURA_MERMA","VENCIMIENTO"]},"insumoNombre":{"type":"string"},"cantidadConsumida":{"type":"integer","format":"int32"},"productoEgresoId":{"type":"integer","format":"int64"},"necesitaReponer":{"type":"boolean"},"categoria":{"type":"string"},"concepto":{"type":"string"},"proveedorNombre":{"type":"string"},"monto":{"type":"number"},"medioPago":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]},"descuentaCaja":{"type":"boolean"},"fecha":{"type":"string","format":"date"},"observacion":{"type":"string"},"comprobanteReferencia":{"type":"string"},"ingresarMercaderia":{"type":"boolean"},"actualizarCostos":{"type":"boolean"},"items":{"type":"array","items":{"$ref":"#/components/schemas/EgresoMercaderiaItemForm"}}}},"EgresoMercaderiaItemForm":{"type":"object","properties":{"productoId":{"type":"integer","format":"int64"},"cantidad":{"type":"integer","format":"int32"},"costoUnitario":{"type":"number"}}},"EgresoMercaderiaItemView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"productoId":{"type":"integer","format":"int64"},"movimientoInventarioId":{"type":"integer","format":"int64"},"codigoProducto":{"type":"string"},"descripcionProducto":{"type":"string"},"cantidad":{"type":"integer","format":"int32"},"costoUnitario":{"type":"number"},"subtotal":{"type":"number"}}},"EgresoView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"fechaHora":{"type":"string","format":"date-time"},"modo":{"type":"string","enum":["DINERO","STOCK_INSUMO"]},"modoEtiqueta":{"type":"string"},"tipo":{"type":"string","enum":["PROVEEDOR","GASTO_OPERATIVO","INVERSION","SUSCRIPCION","RETIRO","OTRO"]},"tipoEtiqueta":{"type":"string"},"tipoIcono":{"type":"string"},"motivoStock":{"type":"string","enum":["AGOTADO","USO_INTERNO","ROTURA_MERMA","VENCIMIENTO"]},"motivoStockEtiqueta":{"type":"string"},"insumoNombre":{"type":"string"},"cantidadConsumida":{"type":"integer","format":"int32"},"productoEgresoId":{"type":"integer","format":"int64"},"productoEgresoCodigo":{"type":"string"},"necesitaReponer":{"type":"boolean"},"categoria":{"type":"string"},"concepto":{"type":"string"},"proveedorNombre":{"type":"string"},"monto":{"type":"number"},"medioPago":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]},"medioPagoEtiqueta":{"type":"string"},"descuentaCaja":{"type":"boolean"},"observacion":{"type":"string"},"comprobanteReferencia":{"type":"string"},"billingPaymentId":{"type":"string"},"estado":{"type":"string","enum":["ACTIVO","ANULADO"]},"usuarioNombre":{"type":"string"},"anuladoAt":{"type":"string","format":"date-time"},"anuladoPorNombre":{"type":"string"},"motivoAnulacion":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/EgresoMercaderiaItemView"}}}},"CustomerFields":{"type":"object","properties":{"name":{"type":"string","maxLength":160,"minLength":0},"dni":{"type":"string","maxLength":24,"minLength":0},"phone":{"type":"string","maxLength":60,"minLength":0},"email":{"type":"string","format":"email","maxLength":254,"minLength":0}},"required":["name"]},"Customer":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"dni":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"archived":{"type":"boolean"},"balance":{"type":"number"},"loyaltyPoints":{"type":"integer","format":"int32"},"lastReminderSentAt":{"type":"string","format":"date-time"}}},"CustomerStatus":{"type":"object","properties":{"archived":{"type":"boolean"}},"required":["archived"]},"ProductVisibilityRequest":{"type":"object","properties":{"visible":{"type":"boolean"}}},"StorefrontProductVisibilityView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"code":{"type":"string"},"description":{"type":"string"},"category":{"type":"string"},"price":{"type":"number"},"stock":{"type":"integer","format":"int32"},"visibleEnVidriera":{"type":"boolean"},"imagenUrl":{"type":"string"}}},"OrderStatusRequest":{"type":"object","properties":{"status":{"type":"string","enum":["PENDIENTE","COBRADO","CANCELADO"]}}},"StorefrontOrderItemView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"productoId":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"precioUnitario":{"type":"number"},"cantidad":{"type":"integer","format":"int32"},"subtotal":{"type":"number"}}},"StorefrontOrderView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"orderCode":{"type":"string"},"customerName":{"type":"string"},"customerPhone":{"type":"string"},"fulfillmentType":{"type":"string","enum":["PICKUP","DELIVERY"]},"notes":{"type":"string"},"grossSubtotal":{"type":"number"},"discountTotal":{"type":"number"},"total":{"type":"number"},"promotionsSummary":{"type":"string"},"status":{"type":"string","enum":["PENDIENTE","COBRADO","CANCELADO"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"$ref":"#/components/schemas/StorefrontOrderItemView"}}}},"StorefrontLoadCartResult":{"type":"object","properties":{"orderCode":{"type":"string"},"loadedCount":{"type":"integer","format":"int32"},"skippedItems":{"type":"array","items":{"type":"string"}}}},"CreateSaleRequest":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SaleItemInput"}},"paymentMethod":{"type":"string"},"customerId":{"type":"integer","format":"int64"},"collectedAmount":{"type":"number"},"observation":{"type":"string"},"pin":{"type":"string"}}},"SaleItemInput":{"type":"object","properties":{"productId":{"type":"integer","format":"int64"},"quantity":{"type":"integer","format":"int32"}}},"CreateManualSaleRequest":{"type":"object","properties":{"total":{"type":"number"},"paymentMethod":{"type":"string"},"customerId":{"type":"integer","format":"int64"},"collectedAmount":{"type":"number"},"observation":{"type":"string"},"pin":{"type":"string"}}},"PromotionCreateRequest":{"type":"object","properties":{"nombre":{"type":"string"},"tipo":{"type":"string","enum":["LLEVA_PAGA","SEGUNDA_UNIDAD","DESCUENTO_CANTIDAD","COMBO","MEDIO_PAGO"]},"alcance":{"type":"string","enum":["PRODUCTOS","CATEGORIA","COMBO","VENTA"]},"categoriaObjetivo":{"type":"string"},"cantidadLleva":{"type":"integer","format":"int32"},"cantidadPaga":{"type":"integer","format":"int32"},"modoBeneficio":{"type":"string"},"descuentoPorcentaje":{"type":"number"},"descuentoMonto":{"type":"number"},"precioFijo":{"type":"number"},"activa":{"type":"boolean"},"fechaInicio":{"type":"string","format":"date"},"fechaFin":{"type":"string","format":"date"},"productoIds":{"type":"array","items":{"type":"integer","format":"int64"}},"comboItems":{"type":"array","items":{"$ref":"#/components/schemas/PromotionItemRequest"}}}},"ProductCreateRequest":{"type":"object","properties":{"code":{"type":"string"},"description":{"type":"string"},"category":{"type":"string"},"price":{"type":"number"},"costPrice":{"type":"number"},"targetMarginPercent":{"type":"number"},"currentStock":{"type":"integer","format":"int32"},"minimumStock":{"type":"integer","format":"int32"},"unitCode":{"type":"string"},"customUnit":{"type":"string"},"active":{"type":"boolean"}}},"StockInRequest":{"type":"object","properties":{"quantity":{"type":"integer","format":"int32"},"description":{"type":"string"},"receiptUrl":{"type":"string"}}},"AddPromoCartRequest":{"type":"object","properties":{"promotionId":{"type":"integer","format":"int64"},"query":{"type":"string"}}},"AddCartItemRequest":{"type":"object","properties":{"productId":{"type":"integer","format":"int64"},"quantity":{"type":"integer","format":"int32"},"barcode":{"type":"string"},"search":{"type":"string"}}},"SendDebtReminderRequest":{"type":"object","properties":{"sendEmail":{"type":"boolean"}}},"ReminderDispatchResult":{"type":"object","properties":{"customerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"balance":{"type":"number"},"recordedAt":{"type":"string","format":"date-time"},"message":{"type":"string"},"whatsappUrl":{"type":"string"},"emailSent":{"type":"boolean"},"emailStatus":{"type":"string"}}},"RedeemPointsRequest":{"type":"object","properties":{"points":{"type":"integer","format":"int32","minimum":1},"note":{"type":"string","maxLength":255,"minLength":0}},"required":["points"]},"CustomerLoyaltyView":{"type":"object","properties":{"customerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"loyaltyPoints":{"type":"integer","format":"int32"},"pointsCurrencyValue":{"type":"number"},"loyaltyEnabled":{"type":"boolean"},"canRedeem":{"type":"boolean"},"minRedeemPoints":{"type":"integer","format":"int32"},"lastReminderSentAt":{"type":"string","format":"date-time"},"remindedToday":{"type":"boolean"},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/LoyaltyTransactionView"}}}},"LoyaltyTransactionView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"customerId":{"type":"integer","format":"int64"},"type":{"type":"string","enum":["EARN","REDEEM","ADJUST"]},"pointsDelta":{"type":"integer","format":"int32"},"currencyValue":{"type":"number"},"note":{"type":"string"},"actorUserId":{"type":"integer","format":"int64"},"createdAt":{"type":"string","format":"date-time"}}},"CreateCustomerRequest":{"type":"object","properties":{"name":{"type":"string"},"dni":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"}}},"CustomerPaymentRequest":{"type":"object","properties":{"amount":{"type":"number"},"method":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]},"operationId":{"type":"string","format":"uuid"}}},"Movement":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"kind":{"type":"string"},"amount":{"type":"number"},"paymentMethod":{"type":"string"},"saleId":{"type":"integer","format":"int64"},"manualSaleId":{"type":"integer","format":"int64"},"occurredAt":{"type":"string","format":"date-time"}}},"Statement":{"type":"object","properties":{"customer":{"$ref":"#/components/schemas/Customer"},"movements":{"type":"array","items":{"$ref":"#/components/schemas/Movement"}}}},"CashOpenRequest":{"type":"object","properties":{"openingAmount":{"type":"number"},"note":{"type":"string"},"pin":{"type":"string"}}},"CashMovementRequest":{"type":"object","properties":{"type":{"type":"string"},"amount":{"type":"number"},"reason":{"type":"string"}}},"CashCloseRequest":{"type":"object","properties":{"countedCash":{"type":"number"},"note":{"type":"string"}}},"SwitchBusinessRequest":{"type":"object","properties":{"accountId":{"type":"integer","format":"int64"}}},"BulkPricingRequest":{"type":"object","properties":{"mode":{"type":"string","enum":["PERCENTAGE","FIXED_AMOUNT","MARGIN_OVER_COST"]},"value":{"type":"number"},"roundingRule":{"type":"string","enum":["NONE","NEAREST_10","NEAREST_50","NEAREST_100","NEAREST_500","CEIL_100"]},"category":{"type":"string","maxLength":120,"minLength":0},"search":{"type":"string","maxLength":200,"minLength":0},"productIds":{"type":"array","items":{"type":"integer","format":"int64"}},"onlyActive":{"type":"boolean"},"useProductTargetMargin":{"type":"boolean"},"note":{"type":"string","maxLength":255,"minLength":0}},"required":["mode"]},"BulkPricingPreviewItemView":{"type":"object","properties":{"productId":{"type":"integer","format":"int64"},"code":{"type":"string"},"description":{"type":"string"},"category":{"type":"string"},"cost":{"type":"number"},"targetMargin":{"type":"number"},"currentPrice":{"type":"number"},"newPrice":{"type":"number"},"deltaAmount":{"type":"number"},"deltaPct":{"type":"number"},"currentMarginPct":{"type":"number"},"newMarginPct":{"type":"number"},"changed":{"type":"boolean"},"skipped":{"type":"boolean"},"skipReason":{"type":"string"}}},"BulkPricingPreviewView":{"type":"object","properties":{"mode":{"type":"string","enum":["PERCENTAGE","FIXED_AMOUNT","MARGIN_OVER_COST"]},"value":{"type":"number"},"roundingRule":{"type":"string","enum":["NONE","NEAREST_10","NEAREST_50","NEAREST_100","NEAREST_500","CEIL_100"]},"category":{"type":"string"},"search":{"type":"string"},"totalMatched":{"type":"integer","format":"int32"},"affectedCount":{"type":"integer","format":"int32"},"unchangedCount":{"type":"integer","format":"int32"},"skippedCount":{"type":"integer","format":"int32"},"averageDeltaPct":{"type":"number"},"items":{"type":"array","items":{"$ref":"#/components/schemas/BulkPricingPreviewItemView"}}}},"PriceAdjustmentBatchView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"mode":{"type":"string","enum":["PERCENTAGE","FIXED_AMOUNT","MARGIN_OVER_COST"]},"adjustmentValue":{"type":"number"},"roundingRule":{"type":"string","enum":["NONE","NEAREST_10","NEAREST_50","NEAREST_100","NEAREST_500","CEIL_100"]},"filterCategory":{"type":"string"},"filterSearch":{"type":"string"},"affectedCount":{"type":"integer","format":"int32"},"note":{"type":"string"},"usuarioNombre":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"reverted":{"type":"boolean"},"revertedAt":{"type":"string","format":"date-time"},"revertedByNombre":{"type":"string"},"canUndo":{"type":"boolean"},"resumenRegla":{"type":"string"}}},"DatosCobro":{"type":"object","properties":{"total":{"type":"number","minimum":0},"descuento":{"type":"number","minimum":0},"pagos":{"type":"object","additionalProperties":{"type":"number"}},"productos":{"type":"array","items":{"$ref":"#/components/schemas/Linea"},"maxItems":1000,"minItems":0}},"required":["pagos"]},"Linea":{"type":"object","properties":{"productoId":{"type":"integer","format":"int64","exclusiveMinimum":0},"cantidad":{"type":"integer","format":"int32","exclusiveMinimum":0},"precioUnitario":{"type":"number","minimum":0}},"required":["cantidad","precioUnitario","productoId"]},"VentaEdicionForm":{"type":"object","properties":{"revision":{"type":"string","maxLength":64,"minLength":0},"observacion":{"type":"string"},"cobro":{"$ref":"#/components/schemas/DatosCobro"}},"required":["revision"]},"Item":{"type":"object","properties":{"productoId":{"type":"integer","format":"int64"},"cantidad":{"type":"integer","format":"int32"},"precioUnitario":{"type":"number"}}},"PosOfflineSaleRequest":{"type":"object","properties":{"clientUuid":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"medioPago":{"type":"string"},"descuentoPorcentaje":{"type":"number"},"clienteId":{"type":"integer","format":"int64"},"observaciones":{"type":"string"},"queuedAt":{"type":"string"}}},"OrderItemRequest":{"type":"object","properties":{"productId":{"type":"integer","format":"int64","exclusiveMinimum":0},"quantity":{"type":"integer","format":"int32","exclusiveMinimum":0}},"required":["productId","quantity"]},"StorefrontOrderCreateRequest":{"type":"object","properties":{"customerName":{"type":"string","maxLength":120,"minLength":0},"customerPhone":{"type":"string","maxLength":40,"minLength":0},"fulfillmentType":{"type":"string","enum":["PICKUP","DELIVERY"]},"notes":{"type":"string","maxLength":500,"minLength":0},"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderItemRequest"},"maxItems":100,"minItems":0},"submissionId":{"type":"string","format":"uuid"},"turnstileToken":{"type":"string","maxLength":2048,"minLength":0}},"required":["customerName","items"]},"EvaluateCartRequest":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/EvaluateItemRequest"}}}},"EvaluateItemRequest":{"type":"object","properties":{"productId":{"type":"integer","format":"int64","exclusiveMinimum":0},"quantity":{"type":"integer","format":"int32","exclusiveMinimum":0}},"required":["productId","quantity"]},"UploadRequest":{"type":"object","properties":{"contentType":{"type":"string"},"sizeBytes":{"type":"integer","format":"int64"}}},"OrderRequest":{"type":"object","properties":{"tipo":{"type":"string","enum":["PEDIDO","PRESUPUESTO"]},"titulo":{"type":"string","maxLength":160,"minLength":0},"clienteNombre":{"type":"string","maxLength":140,"minLength":0},"clienteTelefono":{"type":"string","maxLength":40,"minLength":0},"descripcion":{"type":"string","maxLength":600,"minLength":0},"fechaEntrega":{"type":"string","format":"date"},"totalEstimado":{"type":"number","minimum":0},"senaCobrada":{"type":"number","minimum":0}},"required":["clienteNombre","tipo","titulo"]},"CustomOrder":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"accountId":{"type":"integer","format":"int64"},"tipo":{"type":"string","enum":["PEDIDO","PRESUPUESTO"]},"titulo":{"type":"string"},"clienteNombre":{"type":"string"},"clienteTelefono":{"type":"string"},"descripcion":{"type":"string"},"fechaEntrega":{"type":"string","format":"date"},"totalEstimado":{"type":"number"},"senaCobrada":{"type":"number"},"estado":{"type":"string","enum":["PENDIENTE","EN_PROCESO","LISTO","ENTREGADO","CANCELADO"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"whatsappDigits":{"type":"string"},"estadoLabel":{"type":"string"},"saldoPendiente":{"type":"number"},"saldoPorCobrar":{"type":"number"},"avanzable":{"type":"boolean"},"siguienteEstadoLabel":{"type":"string"}}},"ApiProductSaleRequest":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ApiSaleItemRequest"},"maxItems":200,"minItems":0},"paymentMethod":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]},"observation":{"type":"string","maxLength":2000,"minLength":0},"payments":{"type":"array","items":{"$ref":"#/components/schemas/ApiSalePaymentRequest"},"maxItems":3,"minItems":1},"operatorPin":{"type":"string","pattern":"[0-9]{4}"},"paymentSelectionValid":{"type":"boolean"}},"required":["items"]},"ApiSaleItemRequest":{"type":"object","properties":{"productId":{"type":"integer","format":"int64"},"quantity":{"type":"integer","format":"int32","minimum":1},"expectedUnitPrice":{"type":"number","minimum":0.00},"expectedUnitCode":{"type":"string","pattern":"[A-Z_0-9]{1,40}"}},"required":["productId","quantity"]},"ApiSalePaymentRequest":{"type":"object","properties":{"method":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]},"amount":{"type":"number","minimum":0.01}},"required":["amount","method"]},"OrderCheckout":{"type":"object","properties":{"operationId":{"type":"string","format":"uuid"},"sale":{"$ref":"#/components/schemas/ApiProductSaleRequest"}},"required":["operationId","sale"]},"ApiPaymentView":{"type":"object","properties":{"method":{"type":"string"},"amount":{"type":"number"}}},"ApiSaleDetailView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"type":{"type":"string"},"status":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"seller":{"type":"string"},"total":{"type":"number"},"observation":{"type":"string"},"payments":{"type":"array","items":{"$ref":"#/components/schemas/ApiPaymentView"}},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ApiSaleLineView"}},"customerId":{"type":"integer","format":"int64"},"financedAmount":{"type":"number"},"customer":{"$ref":"#/components/schemas/CustomerIdentity"},"grossSubtotal":{"type":"number"},"discountTotal":{"type":"number"},"promotionsSummary":{"type":"string"}}},"ApiSaleLineView":{"type":"object","properties":{"productId":{"type":"integer","format":"int64"},"productCode":{"type":"string"},"productDescription":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"unitPrice":{"type":"number"},"subtotal":{"type":"number"},"unitCode":{"type":"string"},"quantityLabel":{"type":"string"}}},"CustomerIdentity":{"type":"object","properties":{"name":{"type":"string"},"dni":{"type":"string"}}},"OrderPayment":{"type":"object","properties":{"amount":{"type":"number","minimum":0.01},"paymentMethod":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]},"operationId":{"type":"string","format":"uuid"},"cashRegisterId":{"type":"integer","format":"int64"}},"required":["amount","operationId","paymentMethod"]},"AgendaRequest":{"type":"object","properties":{"tipo":{"type":"string","enum":["TURNO","CLASE","ABONO"]},"titulo":{"type":"string","maxLength":160,"minLength":0},"clienteNombre":{"type":"string","maxLength":140,"minLength":0},"clienteTelefono":{"type":"string","maxLength":40,"minLength":0},"fechaHora":{"type":"string","format":"date-time"},"duracionMinutos":{"type":"integer","format":"int32","maximum":1440,"minimum":5},"cupoMaximo":{"type":"integer","format":"int32","maximum":500,"minimum":1},"inscriptos":{"type":"integer","format":"int32","minimum":0},"precio":{"type":"number","minimum":0},"notas":{"type":"string","maxLength":500,"minLength":0}},"required":["clienteNombre","fechaHora","tipo","titulo"]},"AgendaItem":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"accountId":{"type":"integer","format":"int64"},"tipo":{"type":"string","enum":["TURNO","CLASE","ABONO"]},"titulo":{"type":"string"},"clienteNombre":{"type":"string"},"clienteTelefono":{"type":"string"},"fechaHora":{"type":"string","format":"date-time"},"duracionMinutos":{"type":"integer","format":"int32"},"cupoMaximo":{"type":"integer","format":"int32"},"inscriptos":{"type":"integer","format":"int32"},"precio":{"type":"number"},"estado":{"type":"string","enum":["PENDIENTE","CONFIRMADO","COMPLETADO","CANCELADO"]},"cobrado":{"type":"boolean"},"notas":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"whatsappDigits":{"type":"string"}}},"WebhookSubscriptionRequest":{"type":"object","properties":{"name":{"type":"string","maxLength":160,"minLength":0},"targetUrl":{"type":"string","maxLength":2048,"minLength":0},"events":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"uniqueItems":true}},"required":["events","name","targetUrl"]},"WebhookSubscriptionView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"accountId":{"type":"integer","format":"int64"},"name":{"type":"string"},"targetUrl":{"type":"string"},"events":{"type":"array","items":{"type":"string"},"uniqueItems":true},"active":{"type":"boolean"},"lastSuccessAt":{"type":"string","format":"date-time"},"lastFailureAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"signingSecret":{"type":"string"}}},"ManualSubscriptionUpdateForm":{"type":"object","properties":{"plan":{"type":"string","enum":["FREE","BASIC","GROWTH","PRO"]},"paidUntil":{"type":"string","format":"date"},"status":{"type":"string","enum":["TRIAL","ACTIVE","PAST_DUE","EXPIRED","SUSPENDED"]}},"required":["paidUntil","plan","status"]},"Checkout":{"type":"object","properties":{"plan":{"type":"string","enum":["FREE","BASIC","GROWTH","PRO"]}},"required":["plan"]},"OrderStatusUpdateRequest":{"type":"object","properties":{"status":{"type":"string","enum":["PENDIENTE","COBRADO","CANCELADO"]}},"required":["status"]},"ApiManualSaleRequest":{"type":"object","properties":{"total":{"type":"number","minimum":0.01},"paymentMethod":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]},"observation":{"type":"string","maxLength":2000,"minLength":0},"operatorPin":{"type":"string","pattern":"[0-9]{4}"}},"required":["paymentMethod","total"]},"PurchaseForecastOrderItem":{"type":"object","properties":{"productoId":{"type":"integer","format":"int64"},"insumoNombre":{"type":"string"},"egresoInsumoId":{"type":"integer","format":"int64"},"cantidad":{"type":"integer","format":"int32"}}},"PurchaseForecastOrderRequest":{"type":"object","properties":{"proveedorId":{"type":"integer","format":"int64"},"proveedorNombre":{"type":"string"},"notas":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseForecastOrderItem"}}}},"RecepcionItem":{"type":"object","properties":{"itemId":{"type":"integer","format":"int64"},"cantidadRecibida":{"type":"integer","format":"int32"}}},"RecepcionOrdenCompraForm":{"type":"object","properties":{"notas":{"type":"string"},"comprobanteUrl":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/RecepcionItem"}}}},"PromocionAplicadaView":{"type":"object","properties":{"promocionId":{"type":"integer","format":"int64"},"nombre":{"type":"string"},"detalle":{"type":"string"},"vecesAplicada":{"type":"integer","format":"int32"},"descuento":{"type":"number"}}},"PromocionEvaluacionView":{"type":"object","properties":{"subtotalBruto":{"type":"number"},"descuentoTotal":{"type":"number"},"totalFinal":{"type":"number"},"aplicadas":{"type":"array","items":{"$ref":"#/components/schemas/PromocionAplicadaView"}}}},"ProductoImportPreviewRow":{"type":"object","properties":{"sourceRow":{"type":"integer","format":"int32"},"included":{"type":"boolean"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"categoria":{"type":"string"},"unidadCodigo":{"type":"string"},"unidadPersonalizada":{"type":"string"},"precio":{"type":"string"},"stockActual":{"type":"string"},"stockMinimo":{"type":"string"},"activoValor":{"type":"string"},"activo":{"type":"boolean"},"existingProductId":{"type":"integer","format":"int64"},"status":{"type":"string","enum":["NEW","UPDATE","NO_CHANGE","SKIPPED","REVIEW","ERROR"]},"message":{"type":"string"},"currentPrice":{"type":"string"},"currentStock":{"type":"string"},"resultingStock":{"type":"string"}}},"ProductoImportMappingForm":{"type":"object","properties":{"sheetName":{"type":"string"},"headerRow":{"type":"integer","format":"int32"},"codigoColumn":{"type":"integer","format":"int32"},"descripcionColumn":{"type":"integer","format":"int32"},"categoriaColumn":{"type":"integer","format":"int32"},"unidadColumn":{"type":"integer","format":"int32"},"unidadPersonalizadaColumn":{"type":"integer","format":"int32"},"precioColumn":{"type":"integer","format":"int32"},"stockActualColumn":{"type":"integer","format":"int32"},"stockMinimoColumn":{"type":"integer","format":"int32"},"activoColumn":{"type":"integer","format":"int32"},"defaultCategoria":{"type":"string"},"defaultUnidadCodigo":{"type":"string"},"defaultUnidadPersonalizada":{"type":"string"},"defaultStockActual":{"type":"string"},"defaultStockMinimo":{"type":"string"},"defaultActivo":{"type":"boolean"},"duplicatePolicy":{"type":"string","enum":["UPDATE","SKIP","REVIEW"]},"stockPolicy":{"type":"string","enum":["KEEP","REPLACE","ADD"]},"errorPolicy":{"type":"string","enum":["STOP_ALL","VALID_ONLY"]},"numberFormat":{"type":"string","enum":["AUTO","ARGENTINA","INTERNATIONAL"]},"saveProfile":{"type":"boolean"},"profileName":{"type":"string"}}},"Selection":{"type":"object","properties":{"sheetName":{"type":"string"},"headerRow":{"type":"integer","format":"int32"},"profileId":{"type":"integer","format":"int64"}}},"Upload":{"type":"object","properties":{"filename":{"type":"string"},"contentBase64":{"type":"string"},"delimiter":{"type":"string"},"charset":{"type":"string"}}},"UploadUrl":{"type":"object","properties":{"uploadUrl":{"type":"string"},"publicUrl":{"type":"string"},"expiresInSeconds":{"type":"integer","format":"int32"}}},"ApiProductBulkCreateRequest":{"type":"object","properties":{"products":{"type":"array","items":{"$ref":"#/components/schemas/ApiProductCreateRequest"},"maxItems":200,"minItems":0}},"required":["products"]},"Ids":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"integer","format":"int64","exclusiveMinimum":0},"maxItems":200,"minItems":0}},"required":["ids"]},"ParseBarcodeRequest":{"type":"object","properties":{"barcode":{"type":"string","minLength":1}},"required":["barcode"]},"ParseBarcodeResponse":{"type":"object","properties":{"barcode":{"type":"string"},"isScaleLabel":{"type":"boolean"},"pluCode":{"type":"string"},"pluCodeNormalized":{"type":"string"},"mode":{"type":"string"},"weightGrams":{"type":"integer","format":"int32"},"weightKg":{"type":"number"},"embeddedPrice":{"type":"number"},"suggestedQuantity":{"type":"integer","format":"int32"},"product":{"$ref":"#/components/schemas/ApiProductView"},"warning":{"type":"string"}}},"Submission":{"type":"object","properties":{"operationId":{"type":"string","minLength":1,"pattern":"[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"},"capturedAt":{"type":"string","format":"date-time"},"type":{"type":"string","minLength":1,"pattern":"VENTA|MANUAL"},"total":{"type":"number","minimum":0.01},"productSale":{"$ref":"#/components/schemas/ApiProductSaleRequest"},"manualSale":{"$ref":"#/components/schemas/ApiManualSaleRequest"}},"required":["capturedAt","operationId","total","type"]},"MobileDeviceRequest":{"type":"object","properties":{"expoPushToken":{"type":"string","maxLength":255,"minLength":0,"pattern":"^(Expo|Exponent)PushToken\\[[A-Za-z0-9_-]+]$"},"platform":{"type":"string","minLength":1,"pattern":"^(ios|android)$"},"deviceName":{"type":"string","maxLength":160,"minLength":0},"eventTypes":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"uniqueItems":true}},"required":["eventTypes","expoPushToken","platform"]},"MobileDeviceView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"accountId":{"type":"integer","format":"int64"},"platform":{"type":"string"},"deviceName":{"type":"string"},"enabled":{"type":"boolean"},"eventTypes":{"type":"array","items":{"type":"string"},"uniqueItems":true},"lastSeenAt":{"type":"string","format":"date-time"}}},"Key":{"type":"object","properties":{"key":{"type":"string","minLength":1,"pattern":"[A-Za-z0-9_-]{22}"}},"required":["key"]},"Publish":{"type":"object","properties":{"visibility":{"type":"string","enum":["PUBLIC","PRIVATE"]},"productIds":{"type":"array","items":{"type":"integer","format":"int64","exclusiveMinimum":0},"maxItems":24,"minItems":0}},"required":["productIds","visibility"]},"Publication":{"type":"object","properties":{"catalogId":{"type":"integer","format":"int64"},"added":{"type":"integer","format":"int32"},"newKey":{"type":"string"}}},"Copy":{"type":"object","properties":{"catalogId":{"type":"integer","format":"int64"},"ids":{"type":"array","items":{"type":"integer","format":"int64","exclusiveMinimum":0},"maxItems":24,"minItems":0},"prices":{"type":"object","additionalProperties":{"type":"string"}},"stocks":{"type":"object","additionalProperties":{"type":"string"}},"keys":{"type":"array","items":{"type":"string","pattern":"[A-Za-z0-9_-]{22}"},"maxItems":32,"minItems":0}},"required":["ids","prices"]},"CopyResult":{"type":"object","properties":{"created":{"type":"integer","format":"int32"},"duplicates":{"type":"integer","format":"int32"}}},"Browse":{"type":"object","properties":{"mode":{"type":"string","enum":["PUBLIC","PRIVATE","INVENTORY"]},"q":{"type":"string","maxLength":120,"minLength":0},"page":{"type":"integer","format":"int32","minimum":0},"catalogId":{"type":"integer","format":"int64"},"keys":{"type":"array","items":{"type":"string","pattern":"[A-Za-z0-9_-]{22}"},"maxItems":32,"minItems":0}},"required":["mode"]},"CatalogView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"business":{"type":"string"},"privateCatalog":{"type":"boolean"},"own":{"type":"boolean"}}},"Page":{"type":"object","properties":{"products":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}},"page":{"type":"integer","format":"int32"},"hasNext":{"type":"boolean"},"hasPrevious":{"type":"boolean"},"catalog":{"$ref":"#/components/schemas/CatalogView"}}},"ProductView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"code":{"type":"string"},"category":{"type":"string"},"unit":{"type":"string"},"available":{"type":"boolean"},"imagenUrl":{"type":"string"}}},"SearchResult":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"product":{"$ref":"#/components/schemas/ProductView"},"business":{"type":"string"},"own":{"type":"boolean"}}},"ApiBusinessSettingsRequest":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"minLength":0},"visualIcon":{"type":"string","maxLength":32,"minLength":0},"visualColor":{"type":"string","maxLength":16,"minLength":0},"visualColorDark":{"type":"string","maxLength":16,"minLength":0},"pinRequiredForSales":{"type":"boolean"}},"required":["name","visualColor","visualIcon"]},"ApiPinCreateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"pin":{"type":"string","minLength":1,"pattern":"\\d{4}"}},"required":["name","pin"]},"ApiPinView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"reference":{"type":"string"}}},"MemberPermissions":{"type":"object","properties":{"permissions":{"type":"array","items":{"type":"string","enum":["POS_OPERATE","SALES_HISTORY_VIEW","SALES_VOID","FISCAL_ISSUE","EXPENSES_MANAGE","CUSTOMERS_MANAGE","INVENTORY_VIEW","INVENTORY_EDIT","PROMOTIONS_MANAGE","PURCHASING_VIEW","PURCHASING_CREATE","PURCHASING_APPROVE","PURCHASING_RECEIVE","STOREFRONT_MANAGE","ACTIVITY_VIEW","REPORTS_VIEW"]}}},"required":["permissions"]},"ApiInviteManagerRequest":{"type":"object","properties":{"email":{"type":"string","format":"email","minLength":1},"role":{"type":"string","pattern":"MANAGER|CASHIER|STOCK_CLERK"}},"required":["email"]},"EarnOrAdjustRequest":{"type":"object","properties":{"purchaseAmount":{"type":"number","minimum":0.01},"pointsDelta":{"type":"integer","format":"int32"},"note":{"type":"string","maxLength":255,"minLength":0}}},"ApiInventoryMovementRequest":{"type":"object","properties":{"productId":{"type":"integer","format":"int64"},"units":{"type":"integer","format":"int32","minimum":1},"description":{"type":"string","maxLength":280,"minLength":0},"receiptUrl":{"type":"string","maxLength":600,"minLength":0,"pattern":"^(https?://.*)?$"}},"required":["productId","units"]},"ApiInventoryMovementView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"occurredAt":{"type":"string","format":"date-time"},"productId":{"type":"integer","format":"int64"},"productCode":{"type":"string"},"productDescription":{"type":"string"},"incomingUnits":{"type":"integer","format":"int32"},"description":{"type":"string"},"receiptUrl":{"type":"string"},"performedBy":{"type":"string"}}},"StockBatch":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/StockLine"},"maxItems":200,"minItems":0},"description":{"type":"string","maxLength":280,"minLength":0},"receiptUrl":{"type":"string","maxLength":600,"minLength":0,"pattern":"^(https?://.*)?$"}},"required":["items"]},"StockLine":{"type":"object","properties":{"code":{"type":"string","maxLength":255,"minLength":0},"units":{"type":"integer","format":"int32","exclusiveMinimum":0}},"required":["code","units"]},"Application":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"minLength":3},"applicationType":{"type":"string","minLength":1},"redirectUris":{"type":"string","maxLength":8000,"minLength":0}},"required":["applicationType","name","redirectUris"]},"ApiClientRegistrationView":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"clientId":{"type":"string"},"applicationType":{"type":"string","enum":["CONFIDENTIAL","PUBLIC"]},"redirectUris":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"}}},"CreatedApiClientView":{"type":"object","properties":{"application":{"$ref":"#/components/schemas/ApiClientRegistrationView"},"clientSecret":{"type":"string"}}},"VoidRequest":{"type":"object","properties":{"motivo":{"type":"string"},"revertirStock":{"type":"boolean"}}},"ImportSubscriptionResponse":{"type":"object","properties":{"imported":{"type":"integer","format":"int32"}}},"CustomerSaleRequest":{"type":"object","properties":{"operationId":{"type":"string","format":"uuid"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ApiSaleItemRequest"},"maxItems":200,"minItems":0},"payments":{"type":"array","items":{"$ref":"#/components/schemas/ApiSalePaymentRequest"},"maxItems":3,"minItems":0},"financedAmount":{"type":"number","minimum":0.00},"observation":{"type":"string","maxLength":2000,"minLength":0},"operatorPin":{"type":"string","pattern":"[0-9]{4}"}},"required":["financedAmount","items","operationId","payments"]},"CollectionRequest":{"type":"object","properties":{"operationId":{"type":"string","format":"uuid"},"method":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]},"amount":{"type":"number","minimum":0.01}},"required":["amount","method","operationId"]},"ApiCashOpenRequest":{"type":"object","properties":{"pin":{"type":"string","pattern":"^(?:\\d{4})?$"},"openingCash":{"type":"number","minimum":0.00}}},"ApiCashRegisterView":{"type":"object","properties":{"open":{"type":"boolean"},"id":{"type":"integer","format":"int64"},"operator":{"type":"string"},"openedAt":{"type":"string","format":"date-time"},"openingCash":{"type":"number"},"cashSales":{"type":"number"},"cashExpenses":{"type":"number"},"expectedCash":{"type":"number"},"countedCash":{"type":"number"},"difference":{"type":"number"}}},"ApiCashCloseRequest":{"type":"object","properties":{"countedCash":{"type":"number","minimum":0.00},"note":{"type":"string","maxLength":2000,"minLength":0}},"required":["countedCash"]},"OrderState":{"type":"object","properties":{"estado":{"type":"string","enum":["PENDIENTE","EN_PROCESO","LISTO","ENTREGADO","CANCELADO"]}},"required":["estado"]},"AgendaState":{"type":"object","properties":{"estado":{"type":"string","enum":["PENDIENTE","CONFIRMADO","COMPLETADO","CANCELADO"]}},"required":["estado"]},"WebhookSubscriptionUpdateRequest":{"type":"object","properties":{"name":{"type":"string","maxLength":160,"minLength":0},"targetUrl":{"type":"string","maxLength":2048,"minLength":0},"events":{"type":"array","items":{"type":"string"},"uniqueItems":true},"active":{"type":"boolean"}}},"Price":{"type":"object","properties":{"price":{"type":"number","minimum":0.01}},"required":["price"]},"MobileDeviceUpdateRequest":{"type":"object","properties":{"enabled":{"type":"boolean"},"eventTypes":{"type":"array","items":{"type":"string"},"uniqueItems":true}}},"CustomerEmail":{"type":"object","properties":{"email":{"type":"string","format":"email","maxLength":254,"minLength":0}},"required":["email"]},"Anulacion":{"type":"object","properties":{"fechaHora":{"type":"string","format":"date-time"},"actor":{"type":"string"}}},"Pago":{"type":"object","properties":{"medio":{"type":"string"},"importe":{"type":"number"}}},"VentaRegistroDetalleView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"tipo":{"type":"string"},"fechaHora":{"type":"string","format":"date-time"},"vendedor":{"type":"string"},"estado":{"type":"string"},"total":{"type":"number"},"observacion":{"type":"string"},"productos":{"type":"array","items":{"$ref":"#/components/schemas/Linea"}},"pagos":{"type":"array","items":{"$ref":"#/components/schemas/Pago"}},"clienteId":{"type":"integer","format":"int64"},"cliente":{"type":"string"},"importeAFinanciar":{"type":"number"},"saldoCliente":{"type":"number"},"movimientoId":{"type":"integer","format":"int64"},"paginaMovimiento":{"type":"integer","format":"int64"},"anulacion":{"$ref":"#/components/schemas/Anulacion"},"subtotalBruto":{"type":"number"},"descuentoTotal":{"type":"number"},"promocionesResumen":{"type":"string"}}},"ReceiptLine":{"type":"object","properties":{"description":{"type":"string"},"code":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"quantityLabel":{"type":"string"},"unitPrice":{"type":"number"},"subtotal":{"type":"number"}}},"ReceiptPayment":{"type":"object","properties":{"method":{"type":"string"},"label":{"type":"string"},"amount":{"type":"number"}}},"ReceiptView":{"type":"object","properties":{"saleId":{"type":"integer","format":"int64"},"saleType":{"type":"string"},"receiptNumber":{"type":"string"},"status":{"type":"string"},"businessName":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"sellerName":{"type":"string"},"customerName":{"type":"string"},"customerPhone":{"type":"string"},"observation":{"type":"string"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReceiptLine"}},"payments":{"type":"array","items":{"$ref":"#/components/schemas/ReceiptPayment"}},"grossSubtotal":{"type":"number"},"discountTotal":{"type":"number"},"promotionsSummary":{"type":"string"},"total":{"type":"number"},"receiptText":{"type":"string"},"whatsappUrl":{"type":"string"},"thermalHtmlUrl":{"type":"string"}}},"ApiPageApiProductView":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ApiProductView"}},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"totalItems":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"first":{"type":"boolean"},"last":{"type":"boolean"}}},"WinbackCandidate":{"type":"object","properties":{"customerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"loyaltyPoints":{"type":"integer","format":"int32"},"lastActivityAt":{"type":"string","format":"date-time"},"daysInactive":{"type":"integer","format":"int64"},"activePromotionSummary":{"type":"string"},"message":{"type":"string"},"whatsappUrl":{"type":"string"},"canSendEmail":{"type":"boolean"}}},"LoyaltySummaryView":{"type":"object","properties":{"enabled":{"type":"boolean"},"totalPointsInCirculation":{"type":"integer","format":"int64"},"totalLiabilityCurrency":{"type":"number"},"customersWithPoints":{"type":"integer","format":"int64"},"debtRemindersPendingCount":{"type":"integer","format":"int64"},"winbackCandidatesCount":{"type":"integer","format":"int64"}}},"DebtReminderCandidate":{"type":"object","properties":{"customerId":{"type":"integer","format":"int64"},"customerName":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"balance":{"type":"number"},"lastMovementAt":{"type":"string","format":"date-time"},"daysSinceLastMovement":{"type":"integer","format":"int64"},"lastReminderSentAt":{"type":"string","format":"date-time"},"remindedToday":{"type":"boolean"},"message":{"type":"string"},"whatsappUrl":{"type":"string"},"canSendEmail":{"type":"boolean"}}},"ApiPageApiInventoryMovementView":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ApiInventoryMovementView"}},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"totalItems":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"first":{"type":"boolean"},"last":{"type":"boolean"}}},"BitacoraEventView":{"type":"object","properties":{"key":{"type":"string"},"category":{"type":"string"},"type":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"title":{"type":"string"},"detail":{"type":"string"},"actorName":{"type":"string"},"amount":{"type":"number"},"status":{"type":"string"},"reference":{"type":"string"},"paymentMethod":{"type":"string"},"documentUrl":{"type":"string"},"products":{"type":"array","items":{"$ref":"#/components/schemas/BitacoraProductView"}}}},"BitacoraFeedView":{"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"items":{"type":"array","items":{"$ref":"#/components/schemas/BitacoraEventView"}},"nextOffset":{"type":"integer","format":"int32"},"hasMore":{"type":"boolean"}}},"BitacoraProductView":{"type":"object","properties":{"productId":{"type":"integer","format":"int64"},"code":{"type":"string"},"description":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"quantityLabel":{"type":"string"},"unitPrice":{"type":"number"},"subtotal":{"type":"number"}}},"Producto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"descripcion":{"type":"string"},"codigo":{"type":"string"},"precio":{"type":"number"},"unidadCantidad":{"type":"string"},"unidadPrecio":{"type":"string"},"divisor":{"type":"integer","format":"int32"}}},"DetalleRegistroWeb":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"tipo":{"type":"string"},"fechaHora":{"type":"string","format":"date-time"},"vendedor":{"type":"string"},"estado":{"type":"string"},"total":{"type":"number"},"observacion":{"type":"string"},"productos":{"type":"array","items":{"$ref":"#/components/schemas/Linea"}},"pagos":{"type":"array","items":{"$ref":"#/components/schemas/Pago"}},"clienteId":{"type":"integer","format":"int64"},"cliente":{"type":"string"},"importeAFinanciar":{"type":"number"},"saldoCliente":{"type":"number"},"movimientoId":{"type":"integer","format":"int64"},"paginaMovimiento":{"type":"integer","format":"int64"},"anulacion":{"$ref":"#/components/schemas/Anulacion"},"subtotalBruto":{"type":"number"},"descuentoTotal":{"type":"number"},"promocionesResumen":{"type":"string"},"editada":{"type":"boolean"}}},"PosCatalogoItemView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"categoria":{"type":"string"},"precio":{"type":"number"},"stockActual":{"type":"integer","format":"int32"},"unidadCodigo":{"type":"string"},"unidadEtiqueta":{"type":"string"},"etiqueta":{"type":"string"},"imagenUrl":{"type":"string"}}},"PosCatalogoResponse":{"type":"object","properties":{"accountId":{"type":"integer","format":"int64"},"etag":{"type":"string"},"total":{"type":"integer","format":"int32"},"productos":{"type":"array","items":{"$ref":"#/components/schemas/PosCatalogoItemView"}}}},"ProductoBusquedaItemView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"etiqueta":{"type":"string"},"imagenUrl":{"type":"string"}}},"CustomerSuggestion":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"dni":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"}}},"CustomerBalanceSuggestion":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"dni":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"balance":{"type":"number"}}},"ProyeccionCompraItemView":{"type":"object","properties":{"productoId":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"categoria":{"type":"string"},"unidad":{"type":"string"},"stockActual":{"type":"integer","format":"int32"},"stockMinimo":{"type":"integer","format":"int32"},"vendidosVentana":{"type":"integer","format":"int32"},"consumoDiario":{"type":"number"},"diasCobertura":{"type":"integer","format":"int32"},"demandaProyectada":{"type":"integer","format":"int32"},"cantidadSugerida":{"type":"integer","format":"int32"},"costoUnitario":{"type":"number"},"inversionEstimada":{"type":"number"},"urgencia":{"type":"string"},"detalleCorto":{"type":"string"}}},"ProyeccionCompraView":{"type":"object","properties":{"ventanaDias":{"type":"integer","format":"int32"},"horizonteDias":{"type":"integer","format":"int32"},"margenSeguridadPct":{"type":"integer","format":"int32"},"productosAReponer":{"type":"integer","format":"int32"},"productosUrgentes":{"type":"integer","format":"int32"},"unidadesSugeridas":{"type":"integer","format":"int32"},"inversionEstimadaTotal":{"type":"number"},"productosSinCosto":{"type":"integer","format":"int32"},"insumosAReponerCount":{"type":"integer","format":"int32"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ProyeccionCompraItemView"}},"insumos":{"type":"array","items":{"$ref":"#/components/schemas/ProyeccionInsumoReponerView"}}}},"ProyeccionInsumoReponerView":{"type":"object","properties":{"egresoId":{"type":"integer","format":"int64"},"nombre":{"type":"string"},"cantidad":{"type":"integer","format":"int32"},"motivo":{"type":"string"},"costoEstimado":{"type":"number"},"fechaHora":{"type":"string","format":"date-time"}}},"SugerenciaReposicionView":{"type":"object","properties":{"productoId":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"categoria":{"type":"string"},"unidad":{"type":"string"},"stockActual":{"type":"integer","format":"int32"},"stockMinimo":{"type":"integer","format":"int32"},"vendidosUltimos30Dias":{"type":"integer","format":"int32"},"cantidadSugerida":{"type":"integer","format":"int32"},"costo":{"type":"number"},"precio":{"type":"number"},"motivo":{"type":"string"},"prioridad":{"type":"integer","format":"int32"}}},"ProductoSelectorView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"categoria":{"type":"string"},"stockActual":{"type":"integer","format":"int32"},"stockMinimo":{"type":"integer","format":"int32"},"costo":{"type":"number"},"precio":{"type":"number"},"unidad":{"type":"string"},"cantidadSugerida":{"type":"integer","format":"int32"}}},"ProductoOpcionView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"categoria":{"type":"string"},"precio":{"type":"number"},"sinStock":{"type":"boolean"}}},"ResultadoBusqueda":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"precio":{"type":"number"},"stockActual":{"type":"integer","format":"int32"}}},"ProductoCompraOpcionView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"codigo":{"type":"string"},"descripcion":{"type":"string"},"categoria":{"type":"string"},"stockActual":{"type":"integer","format":"int32"},"costo":{"type":"number"},"precio":{"type":"number"}}},"ApiUserView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"email":{"type":"string"},"pictureUrl":{"type":"string"},"accounts":{"type":"array","items":{"$ref":"#/components/schemas/ApiAccountView"}}}},"PendingActions":{"type":"object","properties":{"deliveries":{"type":"integer","format":"int64"},"appointments":{"type":"integer","format":"int64"},"collections":{"type":"integer","format":"int64"},"purchases":{"type":"integer","format":"int64"}}},"CobroView":{"type":"object","properties":{"monto":{"type":"number"},"medioPago":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]},"fechaHora":{"type":"string","format":"date-time"}}},"ApiPageWebhookDeliveryView":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryView"}},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"totalItems":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"first":{"type":"boolean"},"last":{"type":"boolean"}}},"WebhookDeliveryView":{"type":"object","properties":{"id":{"type":"string"},"eventId":{"type":"string"},"eventType":{"type":"string"},"status":{"type":"string"},"attemptCount":{"type":"integer","format":"int32"},"responseStatus":{"type":"integer","format":"int32"},"responseBody":{"type":"string"},"lastError":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"lastAttemptAt":{"type":"string","format":"date-time"},"nextAttemptAt":{"type":"string","format":"date-time"},"deliveredAt":{"type":"string","format":"date-time"},"payload":{"type":"string"}}},"DailyPulsePoint":{"type":"object","properties":{"fecha":{"type":"string","format":"date"},"etiqueta":{"type":"string"},"total":{"type":"number"}}},"DashboardSummary":{"type":"object","properties":{"productosActivos":{"type":"integer","format":"int64"},"productosBajoStock":{"type":"integer","format":"int64"},"ventasHoy":{"type":"integer","format":"int64"},"totalVendidoHoy":{"type":"number"},"pinesActivos":{"type":"integer","format":"int64"},"egresosHoy":{"type":"number"},"netoHoy":{"type":"number"},"ordenesPendientes":{"type":"integer","format":"int64"},"totalVendidoAyer":{"type":"number"},"variacionVsAyerPct":{"type":"number"},"ticketPromedioHoy":{"type":"number"},"pulsoUltimos7Dias":{"type":"array","items":{"$ref":"#/components/schemas/DailyPulsePoint"}}}},"VisibleProductsPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/StorefrontProductVisibilityView"}},"hasNext":{"type":"boolean"}}},"ApiAccountStatusView":{"type":"object","properties":{"accountId":{"type":"integer","format":"int64"},"operational":{"type":"boolean"},"accountStatus":{"type":"string"},"subscriptionStatus":{"type":"string"},"plan":{"type":"string"},"activeProducts":{"type":"integer","format":"int64"},"lowStockProducts":{"type":"integer","format":"int64"},"members":{"type":"integer","format":"int64"},"generatedAt":{"type":"string","format":"date-time"}}},"ApiPageVentaResumenView":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/VentaResumenView"}},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"totalItems":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"first":{"type":"boolean"},"last":{"type":"boolean"}}},"VentaResumenView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"fechaHora":{"type":"string","format":"date-time"},"medioPago":{"type":"string"},"total":{"type":"number"},"vendedorNombre":{"type":"string"},"cantidadItems":{"type":"integer","format":"int64"},"observacion":{"type":"string"},"tipo":{"type":"string"},"estado":{"type":"string"},"promocionesResumen":{"type":"string"},"descuentoTotal":{"type":"number"}}},"ApiSalesTotalsView":{"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"salesCount":{"type":"integer","format":"int64"},"grossSales":{"type":"number"},"averageTicket":{"type":"number"},"paymentMethods":{"type":"object","additionalProperties":{"type":"number"}}}},"DailyTotalView":{"type":"object","properties":{"fecha":{"type":"string","format":"date"},"total":{"type":"number"}}},"EgresoResumenView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"fechaHora":{"type":"string","format":"date-time"},"tipoEtiqueta":{"type":"string"},"categoria":{"type":"string"},"concepto":{"type":"string"},"proveedorNombre":{"type":"string"},"medioPago":{"type":"string"},"descuentaCaja":{"type":"boolean"},"monto":{"type":"number"},"cantidadItemsMercaderia":{"type":"integer","format":"int32"}}},"PaymentTotalView":{"type":"object","properties":{"medioPago":{"type":"string","enum":["EFECTIVO","TRANSFERENCIA","TARJETA"]},"total":{"type":"number"}}},"ReporteAlertaView":{"type":"object","properties":{"nivel":{"type":"string"},"titulo":{"type":"string"},"detalle":{"type":"string"},"accion":{"type":"string"}}},"ReporteCajaView":{"type":"object","properties":{"efectivoEsperado":{"type":"number"},"totalDigital":{"type":"number"},"participacionEfectivoPct":{"type":"number"},"ventasMixtas":{"type":"integer","format":"int64"},"ventasSoloEfectivo":{"type":"integer","format":"int64"},"ventasDigitales":{"type":"integer","format":"int64"}}},"ReporteCategoriaComparativaView":{"type":"object","properties":{"categoria":{"type":"string"},"totalActual":{"type":"number"},"totalAnterior":{"type":"number"},"variacionPct":{"type":"number"},"cantidadVendidaActual":{"type":"integer","format":"int64"}}},"ReporteCategoriaExploracionView":{"type":"object","properties":{"categoria":{"type":"string"},"totalVendido":{"type":"number"},"cantidadVentas":{"type":"integer","format":"int64"},"serieVentas":{"type":"array","items":{"$ref":"#/components/schemas/ReporteSerieView"}},"horasPico":{"type":"array","items":{"$ref":"#/components/schemas/ReporteHoraView"}},"topProductos":{"type":"array","items":{"$ref":"#/components/schemas/TopProductoView"}}}},"ReporteEgresoGrupoView":{"type":"object","properties":{"clave":{"type":"string"},"etiqueta":{"type":"string"},"cantidad":{"type":"integer","format":"int64"},"total":{"type":"number"},"participacionPct":{"type":"number"}}},"ReporteEgresosView":{"type":"object","properties":{"totalPeriodo":{"type":"number"},"totalPeriodoAnterior":{"type":"number"},"variacionTotalPct":{"type":"number"},"cantidadEgresosPeriodo":{"type":"integer","format":"int64"},"totalHoy":{"type":"number"},"cantidadEgresosHoy":{"type":"integer","format":"int64"},"resultadoNeto":{"type":"number"},"resultadoNetoAnterior":{"type":"number"},"margenNetoPct":{"type":"number"},"egresosEfectivo":{"type":"number"},"egresosEfectivoCaja":{"type":"number"},"egresosDigital":{"type":"number"},"efectivoNetoCaja":{"type":"number"},"porTipo":{"type":"array","items":{"$ref":"#/components/schemas/ReporteEgresoGrupoView"}},"porCategoria":{"type":"array","items":{"$ref":"#/components/schemas/ReporteEgresoGrupoView"}},"porMedioPago":{"type":"array","items":{"$ref":"#/components/schemas/PaymentTotalView"}},"serieFlujo":{"type":"array","items":{"$ref":"#/components/schemas/ReporteFlujoSerieView"}},"egresosRecientes":{"type":"array","items":{"$ref":"#/components/schemas/EgresoResumenView"}}}},"ReporteFlujoSerieView":{"type":"object","properties":{"etiqueta":{"type":"string"},"ingresos":{"type":"number"},"egresos":{"type":"number"},"neto":{"type":"number"}}},"ReporteHistoriaDiaView":{"type":"object","properties":{"fecha":{"type":"string","format":"date"},"total":{"type":"number"},"cantidadVentas":{"type":"integer","format":"int64"},"topProductos":{"type":"array","items":{"$ref":"#/components/schemas/TopProductoView"}}}},"ReporteHoraView":{"type":"object","properties":{"franja":{"type":"string"},"cantidadVentas":{"type":"integer","format":"int64"},"totalVendido":{"type":"number"}}},"ReporteInventarioView":{"type":"object","properties":{"productosActivos":{"type":"integer","format":"int64"},"productosBajoStock":{"type":"integer","format":"int64"},"productosSinStock":{"type":"integer","format":"int64"},"productosSinVentas":{"type":"integer","format":"int64"}}},"ReporteProductoAccionView":{"type":"object","properties":{"codigo":{"type":"string"},"descripcion":{"type":"string"},"accion":{"type":"string"},"motivo":{"type":"string"},"stockActual":{"type":"integer","format":"int32"},"stockMinimo":{"type":"integer","format":"int32"},"cantidadVendida":{"type":"string"}}},"ReporteRentabilidadView":{"type":"object","properties":{"ventasConCosto":{"type":"number"},"costoEstimadoVentas":{"type":"number"},"gananciaBruta":{"type":"number"},"margenPromedioPct":{"type":"number"},"productosVendidosConCosto":{"type":"integer","format":"int64"},"productosVendidosSinCosto":{"type":"integer","format":"int64"},"unidadesVendidasSinCosto":{"type":"integer","format":"int64"},"tieneDatosDeCosto":{"type":"boolean"}}},"ReporteResumenView":{"type":"object","properties":{"totalPeriodo":{"type":"number"},"totalPeriodoAnterior":{"type":"number"},"variacionTotalPct":{"type":"number"},"cantidadVentasPeriodo":{"type":"integer","format":"int64"},"cantidadVentasPeriodoAnterior":{"type":"integer","format":"int64"},"ticketPromedio":{"type":"number"},"ticketPromedioAnterior":{"type":"number"},"variacionTicketPromedioPct":{"type":"number"},"promedioDiario":{"type":"number"},"promedioDiarioAnterior":{"type":"number"},"variacionPromedioDiarioPct":{"type":"number"},"totalHoy":{"type":"number"},"cantidadVentasHoy":{"type":"integer","format":"int64"},"mejorDiaEtiqueta":{"type":"string"},"mejorDiaTotal":{"type":"number"},"mejorVendedor":{"type":"string"},"mejorVendedorTotal":{"type":"number"}}},"ReporteSerieView":{"type":"object","properties":{"etiqueta":{"type":"string"},"totalVendido":{"type":"number"},"cantidadVentas":{"type":"integer","format":"int64"}}},"ReporteVendedorView":{"type":"object","properties":{"nombre":{"type":"string"},"cantidadVentas":{"type":"integer","format":"int64"},"totalVendido":{"type":"number"},"ticketPromedio":{"type":"number"}}},"ReporteView":{"type":"object","properties":{"fechaDesde":{"type":"string","format":"date"},"fechaHasta":{"type":"string","format":"date"},"agrupacion":{"type":"string"},"resumen":{"$ref":"#/components/schemas/ReporteResumenView"},"caja":{"$ref":"#/components/schemas/ReporteCajaView"},"inventario":{"$ref":"#/components/schemas/ReporteInventarioView"},"totalesPorMedioPago":{"type":"array","items":{"$ref":"#/components/schemas/PaymentTotalView"}},"serieVentas":{"type":"array","items":{"$ref":"#/components/schemas/ReporteSerieView"}},"categoriasComparativas":{"type":"array","items":{"$ref":"#/components/schemas/ReporteCategoriaComparativaView"}},"categoriasExplorables":{"type":"array","items":{"$ref":"#/components/schemas/ReporteCategoriaExploracionView"}},"vendedores":{"type":"array","items":{"$ref":"#/components/schemas/ReporteVendedorView"}},"horasPico":{"type":"array","items":{"$ref":"#/components/schemas/ReporteHoraView"}},"topProductos":{"type":"array","items":{"$ref":"#/components/schemas/TopProductoView"}},"productosAccionables":{"type":"array","items":{"$ref":"#/components/schemas/ReporteProductoAccionView"}},"alertas":{"type":"array","items":{"$ref":"#/components/schemas/ReporteAlertaView"}},"totalesPorDia":{"type":"array","items":{"$ref":"#/components/schemas/DailyTotalView"}},"historiaDiaria":{"type":"array","items":{"$ref":"#/components/schemas/ReporteHistoriaDiaView"}},"ventasDelDia":{"type":"array","items":{"$ref":"#/components/schemas/VentaResumenView"}},"ventasRecientes":{"type":"array","items":{"$ref":"#/components/schemas/VentaResumenView"}},"rentabilidad":{"$ref":"#/components/schemas/ReporteRentabilidadView"},"egresos":{"$ref":"#/components/schemas/ReporteEgresosView"}}},"TopProductoView":{"type":"object","properties":{"codigo":{"type":"string"},"descripcion":{"type":"string"},"cantidadVendida":{"type":"string"},"cantidadVendidaValor":{"type":"integer","format":"int64"},"totalVendido":{"type":"number"}}},"OpenFoodFactsProductView":{"type":"object","properties":{"codigo":{"type":"string"},"descripcion":{"type":"string"},"categoria":{"type":"string"},"cantidad":{"type":"string"},"marca":{"type":"string"}}},"Capability":{"type":"object","properties":{"enabled":{"type":"boolean"}}},"ApiProductCapacityView":{"type":"object","properties":{"accountId":{"type":"integer","format":"int64"},"plan":{"type":"string"},"activeProducts":{"type":"integer","format":"int64"},"maximumActiveProducts":{"type":"integer","format":"int32"},"remainingActiveProductSlots":{"type":"integer","format":"int32"},"maximumProductsPerBulkRequest":{"type":"integer","format":"int32"}}},"Meta":{"type":"object","properties":{"canCopy":{"type":"boolean"},"canPublish":{"type":"boolean"},"catalogs":{"type":"array","items":{"$ref":"#/components/schemas/CatalogView"}}}},"AccountInvitationView":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"accountName":{"type":"string"},"invitedEmail":{"type":"string"},"inviterName":{"type":"string"},"roleLabel":{"type":"string"},"statusLabel":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"pendingAction":{"type":"boolean"}}},"AccountMemberView":{"type":"object","properties":{"userId":{"type":"integer","format":"int64"},"nombre":{"type":"string"},"email":{"type":"string"},"fotoUrl":{"type":"string"},"roleCode":{"type":"string"},"roleLabel":{"type":"string"},"owner":{"type":"boolean"},"permissionCodes":{"type":"array","items":{"type":"string"},"uniqueItems":true},"grantedPermissions":{"type":"array","items":{"type":"string"}},"restrictedPermissions":{"type":"array","items":{"type":"string"}}}},"ApiBusinessManagementView":{"type":"object","properties":{"account":{"$ref":"#/components/schemas/ApiAccountView"},"visualIcons":{"type":"array","items":{"type":"string"}},"visualColors":{"type":"array","items":{"type":"string"}},"members":{"type":"array","items":{"$ref":"#/components/schemas/AccountMemberView"}},"sentInvitations":{"type":"array","items":{"$ref":"#/components/schemas/AccountInvitationView"}},"receivedInvitations":{"type":"array","items":{"$ref":"#/components/schemas/AccountInvitationView"}},"activePins":{"type":"array","items":{"$ref":"#/components/schemas/ApiPinView"}}}},"ApiTeamView":{"type":"object","properties":{"members":{"type":"array","items":{"$ref":"#/components/schemas/AccountMemberView"}},"invitations":{"type":"array","items":{"$ref":"#/components/schemas/AccountInvitationView"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/Preset"}},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/Permission"}}}},"Permission":{"type":"object","properties":{"code":{"type":"string","enum":["POS_OPERATE","SALES_HISTORY_VIEW","SALES_VOID","FISCAL_ISSUE","EXPENSES_MANAGE","CUSTOMERS_MANAGE","INVENTORY_VIEW","INVENTORY_EDIT","PROMOTIONS_MANAGE","PURCHASING_VIEW","PURCHASING_CREATE","PURCHASING_APPROVE","PURCHASING_RECEIVE","STOREFRONT_MANAGE","ACTIVITY_VIEW","REPORTS_VIEW"]},"label":{"type":"string"},"group":{"type":"string"}}},"Preset":{"type":"object","properties":{"code":{"type":"string"},"label":{"type":"string"},"permissions":{"type":"array","items":{"type":"string","enum":["POS_OPERATE","SALES_HISTORY_VIEW","SALES_VOID","FISCAL_ISSUE","EXPENSES_MANAGE","CUSTOMERS_MANAGE","INVENTORY_VIEW","INVENTORY_EDIT","PROMOTIONS_MANAGE","PURCHASING_VIEW","PURCHASING_CREATE","PURCHASING_APPROVE","PURCHASING_RECEIVE","STOREFRONT_MANAGE","ACTIVITY_VIEW","REPORTS_VIEW"]},"uniqueItems":true}}},"EgresoPeriodoResumen":{"type":"object","properties":{"totalActivo":{"type":"number"},"cantidadActivos":{"type":"integer","format":"int64"},"cantidadDinero":{"type":"integer","format":"int64"},"cantidadStockInsumo":{"type":"integer","format":"int64"},"insumosPendientesReponer":{"type":"integer","format":"int64"},"totalProveedores":{"type":"number"},"totalOperativosEInversion":{"type":"number"},"totalEfectivoCaja":{"type":"number"},"totalDigital":{"type":"number"}}},"ExpenseSummaryResponse":{"type":"object","properties":{"resumen":{"$ref":"#/components/schemas/EgresoPeriodoResumen"},"categoriasSugeridas":{"type":"array","items":{"type":"string"}},"insumosSugeridos":{"type":"array","items":{"type":"string"}},"categoriasUsadas":{"type":"array","items":{"type":"string"}},"proveedoresUsados":{"type":"array","items":{"type":"string"}},"suscripcionSugerida":{"$ref":"#/components/schemas/SuscripcionSugeridaView"}}},"SuscripcionSugeridaView":{"type":"object","properties":{"planNombre":{"type":"string"},"montoSugerido":{"type":"number"},"pagosPendientesImportar":{"type":"integer","format":"int64"}}},"ApiBalanceView":{"type":"object","properties":{"currency":{"type":"string"},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"salesCount":{"type":"integer","format":"int64"},"grossSales":{"type":"number"},"averageTicket":{"type":"number"},"expectedCash":{"type":"number"},"digitalSales":{"type":"number"},"paymentMethods":{"type":"object","additionalProperties":{"type":"number"}}}}},"securitySchemes":{"espinaOAuth":{"type":"oauth2","description":"OAuth 2.1 Authorization Code con PKCE","flows":{"authorizationCode":{"authorizationUrl":"https://www.espinacomercial.com/oauth2/authorize","tokenUrl":"https://www.espinacomercial.com/oauth2/token","refreshUrl":"https://www.espinacomercial.com/oauth2/token","scopes":{"openid":"Identidad OpenID Connect","profile":"Nombre y perfil del usuario","email":"Email del usuario","accounts:read":"Consultar negocios y estado","accounts:write":"Administrar identidad, equipo y caja del negocio","products:read":"Consultar productos","products:write":"Crear productos","inventory:read":"Consultar stock y movimientos","inventory:write":"Registrar ingresos de stock","sales:read":"Consultar ventas","sales:write":"Registrar ventas","reports:read":"Consultar reportes y bitácora operativa","notifications:manage":"Administrar dispositivos y notificaciones","webhooks:manage":"Administrar webhooks"}}}}}}}