{
  "openapi": "3.0.3",
  "info": {
    "title": "Waclis Core Public API (Tienda Online, Catálogo, Impresión y Pedidos)",
    "version": "1.1.0-verified-2026-11-11",
    "description": "Especificación OpenAPI 3.0.3 verificada contra el código productivo de **Waclis Core** (`panel.waclis.com`, `application/controllers/Apis.php`).\n\n### Dominios y URL Base Oficial\n- **URL Base Canónica Oficial:** `https://panel.waclis.com` (responde directamente en JSON bajo `/apis/...` sin redirecciones).\n- **Dominio Histórico de Compatibilidad (`https://nextiendas.com/apis/...`):** Responde con redirección permanente `HTTP 301 Moved Permanently` hacia `https://panel.waclis.com/apis/...`. Para nuevas integraciones se recomienda utilizar directamente `https://panel.waclis.com/apis`.\n- **Sitio Institucional (`https://waclis.com`):** Portal institucional de presentación (`404 Not Found` en `/apis/...`).\n\n### Autenticación y Planes Comerciales\n- **Parámetro query obligatorio:** `?token=<TU_TOKEN>` obtenido en `Configuraciones > Editar sitio > Mi perfil > API Desarrollador`.\n- **Planes habilitados:** Plan Premium, Plan Evolución y Prueba de 14 días (no incluido en Plan Gratis ni en Plan Estándar).\n- **Modalidad:** 100 % solo lectura (`GET`).",
    "contact": {
      "name": "Centro de Documentación para Desarrolladores Waclis",
      "url": "https://waclis.app/ayuda"
    }
  },
  "servers": [
    {
      "url": "https://panel.waclis.com",
      "description": "Servidor productivo oficial de Waclis Core"
    }
  ],
  "security": [
    {
      "StoreQueryToken": []
    }
  ],
  "tags": [
    {
      "name": "Productos",
      "description": "Maestro de productos, detalle, variantes, stock e imágenes"
    },
    {
      "name": "Métodos de impresión",
      "description": "Catálogo general de técnicas de impresión y asignación por producto"
    },
    {
      "name": "Pedidos y cotizaciones",
      "description": "Órdenes de compra, pedidos mayoristas, cotizaciones y comprador asociado"
    }
  ],
  "paths": {
    "/apis/productos/getProducts": {
      "get": {
        "tags": [
          "Productos"
        ],
        "operationId": "getProducts",
        "summary": "Consultar listado maestro de productos",
        "description": "Devuelve todos los productos estándar activos (`type = 1`, `active = 1`) de la tienda autenticada, incluyendo SKU (`code`), imagen principal, stock general, dimensiones, precios y categorías. Excluye kits (`type = 4`) y no utiliza paginación. Para conocer la visibilidad web (`status`: `1` publicado / `0` oculto) o el desglose de variantes, consultar `GET /apis/productos/getProductDetail/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/StoreTokenQuery"
          }
        ],
        "responses": {
          "200": {
            "description": "Listado de productos activos de la tienda",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductListResponse"
                },
                "example": {
                  "products": [
                    {
                      "id_product": "104520",
                      "name": "Botella Térmica Acero Inoxidable 750ml",
                      "code": "BOT-750-INOX",
                      "image": "https://panel.waclis.com/uploads/img_productos/ejemplo_botella_750.jpg",
                      "stock": "150",
                      "height": "26.50",
                      "width": "7.50",
                      "depth": "7.50",
                      "weight": "420.00",
                      "stock_min": "10",
                      "stock_critical": "5",
                      "price": "18500.00",
                      "cost_price": "11000.00",
                      "production_days": "5",
                      "minimum_recommended_quantity": "20",
                      "categories": [
                        {
                          "id": 812,
                          "name": "Hidratación y Tiempo Libre"
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          }
        }
      }
    },
    "/apis/productos/getProductDetail/{id}": {
      "get": {
        "tags": [
          "Productos"
        ],
        "operationId": "getProductDetail",
        "summary": "Consultar detalle completo, stock, moneda y variantes de un producto",
        "description": "Devuelve la ficha completa de un producto perteneciente a la tienda (`id_store`), incluyendo descripción, visibilidad web (`status`), oferta, configuración multimoneda (`currency_type`, `code_currency`, `symbol`), modo de disponibilidad (`stock_type_store`: `1` stock numérico, `2` Disponible, `3` A consultar), kits y el arreglo `product_variations` con SKU, stock, precio, imagen y escalas por cantidad de cada variante.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProductIdPath"
          },
          {
            "$ref": "#/components/parameters/StoreTokenQuery"
          }
        ],
        "responses": {
          "200": {
            "description": "Detalle completo del producto y sus variantes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductDetailResponse"
                },
                "example": {
                  "product": {
                    "id_product": "104520",
                    "id_store": "99901",
                    "name": "Botella Térmica Acero Inoxidable 750ml",
                    "description": "<p>Botella térmica doble capa apta grabado láser y serigrafía.</p>",
                    "code": "BOT-750-INOX",
                    "image": "https://panel.waclis.com/uploads/img_productos/ejemplo_botella_750.jpg",
                    "stock": "150",
                    "stock_min": "10",
                    "stock_critical": "5",
                    "stock_type_store": "1",
                    "status": "1",
                    "active": "1",
                    "price": "18500.00",
                    "offer": "0",
                    "price_offer": "0.00",
                    "cost_price": "11000.00",
                    "currency_type": "NORMAL",
                    "code_currency": "ARS",
                    "symbol": "$",
                    "production_days": "5",
                    "minimum_recommended_quantity": "20",
                    "variations": "1",
                    "habilitar_precios_por_cantidad": "1",
                    "categories": [
                      {
                        "id": 812,
                        "name": "Hidratación y Tiempo Libre"
                      }
                    ],
                    "product_variations": [
                      {
                        "id_product_variation": "502110",
                        "attribute_name": "Color",
                        "attribute_value": "Negro Mate",
                        "color": "#1A1A1A",
                        "sku": "BOT-750-INOX-BLK",
                        "stock": "90",
                        "price": "18500.00",
                        "offer": "0",
                        "offer_price": "0.00",
                        "cost_price": "11000.00",
                        "image": "https://panel.waclis.com/uploads/img_productos/ejemplo_botella_negra.jpg",
                        "precios_por_cantidad_json": "[{\"desde\":50,\"hasta\":199,\"precio\":17200}]"
                      },
                      {
                        "id_product_variation": "502111",
                        "attribute_name": "Color",
                        "attribute_value": "Plata",
                        "color": "#C0C0C0",
                        "sku": "BOT-750-INOX-SLV",
                        "stock": "60",
                        "price": "18500.00",
                        "offer": "0",
                        "offer_price": "0.00",
                        "cost_price": "11000.00",
                        "image": "https://panel.waclis.com/uploads/img_productos/ejemplo_botella_plata.jpg",
                        "precios_por_cantidad_json": "[]"
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          },
          "404": {
            "description": "El producto no existe, está inactivo o no pertenece a la tienda autenticada",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundResponse"
                }
              }
            }
          }
        }
      }
    },
    "/apis/productos/getProduct/{id}": {
      "get": {
        "tags": [
          "Productos"
        ],
        "operationId": "getProductSummaryVariations",
        "summary": "Consultar vista resumida de categorías y variantes de un producto",
        "description": "Endpoint complementario liviano que devuelve únicamente `id_product`, `categories` y `attributes` (arreglo con las variantes del producto). Nota: no devuelve nombre, descripción ni precio base general; para obtener la ficha integral aislada por tienda se recomienda `GET /apis/productos/getProductDetail/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProductIdPath"
          },
          {
            "$ref": "#/components/parameters/StoreTokenQuery"
          }
        ],
        "responses": {
          "200": {
            "description": "Categorías y variantes del producto (o `null` si el ID no existe)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductLightResponse"
                },
                "example": {
                  "product": {
                    "id_product": "104520",
                    "categories": [
                      {
                        "id": 812,
                        "name": "Hidratación y Tiempo Libre"
                      }
                    ],
                    "attributes": [
                      {
                        "id_product_variation": "502110",
                        "attribute_name": "Color",
                        "attribute_value": "Negro Mate",
                        "sku": "BOT-750-INOX-BLK",
                        "stock": "90",
                        "price": "18500.00"
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          }
        }
      }
    },
    "/apis/productos/getImages/{id}": {
      "get": {
        "tags": [
          "Productos"
        ],
        "operationId": "getProductImages",
        "summary": "Consultar galería secundaria de imágenes de un producto",
        "description": "Devuelve las URLs de las imágenes adicionales activas (`product_images`) cargadas en la galería de un producto. La imagen principal de portada se obtiene en el campo `image` de `getProducts` o `getProductDetail/{id}`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProductIdPath"
          },
          {
            "$ref": "#/components/parameters/StoreTokenQuery"
          }
        ],
        "responses": {
          "200": {
            "description": "Galería de imágenes secundarias del producto",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductImagesResponse"
                },
                "example": {
                  "product": {
                    "id_product": "104520",
                    "images": [
                      "https://panel.waclis.com/uploads/img_productos/ejemplo_botella_detalle_tapa.jpg",
                      "https://panel.waclis.com/uploads/img_productos/ejemplo_botella_packaging.jpg"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          }
        }
      }
    },
    "/apis/metodos/getPrintMethods": {
      "get": {
        "tags": [
          "Métodos de impresión"
        ],
        "operationId": "getPrintMethods",
        "summary": "Consultar catálogo general de métodos de impresión, rangos y submétodos",
        "description": "Lista todos los métodos de impresión activos configurados en la tienda (`printing_methods`), incluyendo su identificador `id_metodo_impresion`, modalidad de cálculo (`tipo`), costo fijo `precio_base` y tramos de cantidad (`rangos_cantidad[]` con `desde`, `hasta` y `submetodos[]`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/StoreTokenQuery"
          }
        ],
        "responses": {
          "200": {
            "description": "Listado de métodos de impresión activos con escalas y submétodos",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintMethodsResponse"
                },
                "example": {
                  "metodos_impresion": [
                    {
                      "id_metodo_impresion": "24",
                      "tipo": "PRECIO_VARIABLE_POR_IMPRESION",
                      "nombre_metodo": "Serigrafía Cilíndrica",
                      "referencia": "SER-CIL",
                      "nombre_mostrar": "Estampado Serigráfico",
                      "precio_base": 15000,
                      "metodo_defecto": "1",
                      "rangos_cantidad": [
                        {
                          "desde": "20",
                          "hasta": "99",
                          "submetodos": [
                            {
                              "nombre": "1 Color",
                              "valor": 950
                            },
                            {
                              "nombre": "2 Colores",
                              "valor": 1650
                            }
                          ]
                        },
                        {
                          "desde": "100",
                          "hasta": "500",
                          "submetodos": [
                            {
                              "nombre": "1 Color",
                              "valor": 720
                            },
                            {
                              "nombre": "2 Colores",
                              "valor": 1290
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          }
        }
      }
    },
    "/apis/productos/getPrintMethodsProduct/{id}": {
      "get": {
        "tags": [
          "Métodos de impresión"
        ],
        "operationId": "getPrintMethodsProduct",
        "summary": "Consultar métodos de impresión y áreas asignadas a un producto",
        "description": "Devuelve los métodos de impresión compatibles asignados a un producto específico junto con las imágenes y medidas máximas en centímetros (`width_cm`, `height_cm`) de cada área de personalización. Importante: este endpoint no incluye `submetodos` ni `rangos_cantidad`; para obtener las tarifas por escala, cruzar `impresion_methods[].id` contra `id_metodo_impresion` de `GET /apis/metodos/getPrintMethods`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProductIdPath"
          },
          {
            "$ref": "#/components/parameters/StoreTokenQuery"
          }
        ],
        "responses": {
          "200": {
            "description": "Métodos de impresión y áreas físicas asignadas al producto",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductPrintMethodsResponse"
                },
                "example": {
                  "product": {
                    "id_product": "104520",
                    "impresion_methods": [
                      {
                        "id": "24",
                        "type": "PRECIO_VARIABLE_POR_IMPRESION",
                        "name": "Serigrafía Cilíndrica",
                        "precio_base": "15000.00",
                        "referencia": "SER-CIL",
                        "id_products_printing_methods": "3901",
                        "images": [
                          {
                            "image": "https://panel.waclis.com/uploads/tiendas/metodos_impresion/ejemplo_frente.png",
                            "height": "120",
                            "width": "80",
                            "top": "145",
                            "left": "90",
                            "type": "1",
                            "width_cm": "6.50",
                            "height_cm": "10.00"
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          }
        }
      }
    },
    "/apis/ordenes/getOrdersByStore": {
      "get": {
        "tags": [
          "Pedidos y cotizaciones"
        ],
        "operationId": "getOrdersByStore",
        "summary": "Consultar pedidos, compras y cotizaciones de la tienda",
        "description": "Devuelve en orden descendente (`id_order DESC`) todas las órdenes activas de la tienda autenticada, incluyendo compras online, pedidos y solicitudes del carrito cotizador (`status: 'Cotizado'`), junto con los datos básicos del comprador (`customer`) y los renglones solicitados (`items[]`). Endpoint exclusivamente de lectura.",
        "parameters": [
          {
            "$ref": "#/components/parameters/StoreTokenQuery"
          }
        ],
        "responses": {
          "200": {
            "description": "Listado de órdenes, pedidos y cotizaciones de la tienda",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrdersByStoreResponse"
                },
                "example": {
                  "orders": [
                    {
                      "id_order": "880412",
                      "created_at": "2026-11-10 14:25:00",
                      "type_order": "WEB",
                      "status": "Nuevo",
                      "subtotal": "370000.00",
                      "shipping_cost": "8500.00",
                      "payment_method": "Transferencia Bancaria",
                      "shipping_method": "Envío a domicilio",
                      "customer": {
                        "id": "44109",
                        "name": "María",
                        "last_name": "González Demo",
                        "email": "compras@empresa-sintetica.com.ar",
                        "phone": "+5491155550101",
                        "dni": "30712345679"
                      },
                      "items": [
                        {
                          "id_product": "104520",
                          "name": "Botella Térmica Acero Inoxidable 750ml",
                          "code": "BOT-750-INOX",
                          "quantity": "20",
                          "unit_price": "18500.00",
                          "variation_id": "502110",
                          "attributes": [
                            {
                              "attribute": "Color",
                              "value": "Negro Mate"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "StoreQueryToken": {
        "type": "apiKey",
        "in": "query",
        "name": "token",
        "description": "Token de tienda (`Configuraciones > Editar sitio > Mi perfil > API Desarrollador`)."
      }
    },
    "parameters": {
      "StoreTokenQuery": {
        "name": "token",
        "in": "query",
        "required": true,
        "description": "Token de 40 caracteres hexadecimales de la tienda obtenido en el panel principal (`Configuraciones > Editar sitio > Mi perfil > API Desarrollador`). Importante: debe enviarse exclusivamente como parámetro query `?token=` (el encabezado `Authorization` no es leído por estos endpoints).",
        "schema": {
          "type": "string",
          "minLength": 40,
          "maxLength": 40,
          "example": "<TU_TOKEN_API_DESARROLLADOR>"
        }
      },
      "ProductIdPath": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "Identificador numérico único del producto (`id_product`).",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "example": 104520
        }
      }
    },
    "responses": {
      "UnauthorizedError": {
        "description": "Falta el parámetro `?token=`, el token es inválido o el plan comercial de la tienda no habilita la API.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "missing_token": {
                "summary": "Sin parámetro token",
                "value": {
                  "error": "El token es requerido"
                }
              },
              "invalid_or_plan": {
                "summary": "Token inexistente o plan comercial no habilitado",
                "value": {
                  "error": "Token inválido"
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "example": "El token es requerido",
            "description": "Mensaje de error de autenticación o plan comercial ('El token es requerido' o 'Token inválido')."
          }
        }
      },
      "NotFoundResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "example": "Producto no encontrado"
          }
        }
      },
      "CategoryItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 812
          },
          "name": {
            "type": "string",
            "example": "Hidratación y Tiempo Libre"
          }
        }
      },
      "ProductSummaryItem": {
        "type": "object",
        "properties": {
          "id_product": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "image": {
            "type": "string"
          },
          "stock": {
            "type": "string"
          },
          "height": {
            "type": "string",
            "nullable": true
          },
          "width": {
            "type": "string",
            "nullable": true
          },
          "depth": {
            "type": "string",
            "nullable": true
          },
          "weight": {
            "type": "string",
            "nullable": true
          },
          "stock_min": {
            "type": "string",
            "nullable": true
          },
          "stock_critical": {
            "type": "string",
            "nullable": true
          },
          "price": {
            "type": "string"
          },
          "cost_price": {
            "type": "string",
            "nullable": true
          },
          "production_days": {
            "type": "string",
            "nullable": true
          },
          "minimum_recommended_quantity": {
            "type": "string",
            "nullable": true
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CategoryItem"
            }
          }
        }
      },
      "ProductListResponse": {
        "type": "object",
        "required": [
          "products"
        ],
        "properties": {
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductSummaryItem"
            }
          }
        }
      },
      "ProductVariationItem": {
        "type": "object",
        "properties": {
          "id_product_variation": {
            "type": "string"
          },
          "attribute_name": {
            "type": "string",
            "nullable": true
          },
          "attribute_value": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "sku": {
            "type": "string",
            "nullable": true
          },
          "stock": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "offer": {
            "type": "string",
            "nullable": true
          },
          "offer_price": {
            "type": "string",
            "nullable": true
          },
          "cost_price": {
            "type": "string",
            "nullable": true
          },
          "image": {
            "type": "string",
            "nullable": true
          },
          "precios_por_cantidad_json": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "ProductDetailResponse": {
        "type": "object",
        "required": [
          "product"
        ],
        "properties": {
          "product": {
            "type": "object",
            "properties": {
              "id_product": {
                "type": "string"
              },
              "id_store": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "type": "string",
                "nullable": true
              },
              "code": {
                "type": "string",
                "nullable": true
              },
              "image": {
                "type": "string"
              },
              "stock": {
                "type": "string"
              },
              "stock_min": {
                "type": "string",
                "nullable": true
              },
              "stock_critical": {
                "type": "string",
                "nullable": true
              },
              "stock_type_store": {
                "type": "string",
                "description": "1 = stock numérico real; 2 = mostrar siempre Disponible; 3 = mostrar A consultar."
              },
              "status": {
                "type": "string",
                "description": "1 = publicado en vidriera web; 0 = oculto/pausado."
              },
              "active": {
                "type": "string"
              },
              "price": {
                "type": "string"
              },
              "offer": {
                "type": "string"
              },
              "price_offer": {
                "type": "string",
                "nullable": true
              },
              "cost_price": {
                "type": "string",
                "nullable": true
              },
              "currency_type": {
                "type": "string",
                "enum": [
                  "NORMAL",
                  "MULTIMONEDA"
                ]
              },
              "code_currency": {
                "type": "string",
                "nullable": true
              },
              "symbol": {
                "type": "string",
                "nullable": true
              },
              "production_days": {
                "type": "string",
                "nullable": true
              },
              "minimum_recommended_quantity": {
                "type": "string",
                "nullable": true
              },
              "variations": {
                "type": "string",
                "description": "1 = con variantes; 2 = sin variantes."
              },
              "habilitar_precios_por_cantidad": {
                "type": "string",
                "nullable": true
              },
              "integracion_tipo": {
                "type": "string",
                "nullable": true
              },
              "integracion_id": {
                "type": "string",
                "nullable": true
              },
              "printing_method_zecat": {
                "type": "string",
                "nullable": true
              },
              "categories": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CategoryItem"
                }
              },
              "product_variations": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductVariationItem"
                }
              }
            }
          }
        }
      },
      "ProductLightResponse": {
        "type": "object",
        "nullable": true,
        "properties": {
          "product": {
            "type": "object",
            "properties": {
              "id_product": {
                "type": "string"
              },
              "categories": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CategoryItem"
                }
              },
              "attributes": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductVariationItem"
                }
              }
            }
          }
        }
      },
      "ProductImagesResponse": {
        "type": "object",
        "nullable": true,
        "properties": {
          "product": {
            "type": "object",
            "properties": {
              "id_product": {
                "type": "string"
              },
              "images": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "PrintSubmethod": {
        "type": "object",
        "properties": {
          "nombre": {
            "type": "string"
          },
          "valor": {
            "type": "number"
          }
        }
      },
      "PrintQuantityRange": {
        "type": "object",
        "properties": {
          "desde": {
            "type": "string"
          },
          "hasta": {
            "type": "string"
          },
          "submetodos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PrintSubmethod"
            }
          }
        }
      },
      "PrintMethodsResponse": {
        "type": "object",
        "required": [
          "metodos_impresion"
        ],
        "properties": {
          "metodos_impresion": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id_metodo_impresion": {
                  "type": "string"
                },
                "tipo": {
                  "type": "string"
                },
                "nombre_metodo": {
                  "type": "string"
                },
                "referencia": {
                  "type": "string",
                  "nullable": true
                },
                "nombre_mostrar": {
                  "type": "string",
                  "nullable": true
                },
                "precio_base": {
                  "type": "number"
                },
                "metodo_defecto": {
                  "type": "string"
                },
                "rangos_cantidad": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PrintQuantityRange"
                  }
                }
              }
            }
          }
        }
      },
      "ProductPrintMethodsResponse": {
        "type": "object",
        "nullable": true,
        "properties": {
          "product": {
            "type": "object",
            "properties": {
              "id_product": {
                "type": "string"
              },
              "impresion_methods": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "precio_base": {
                      "type": "string"
                    },
                    "referencia": {
                      "type": "string",
                      "nullable": true
                    },
                    "id_products_printing_methods": {
                      "type": "string"
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "image": {
                            "type": "string"
                          },
                          "height": {
                            "type": "string"
                          },
                          "width": {
                            "type": "string"
                          },
                          "top": {
                            "type": "string"
                          },
                          "left": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "width_cm": {
                            "type": "string"
                          },
                          "height_cm": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "OrdersByStoreResponse": {
        "type": "object",
        "required": [
          "orders"
        ],
        "properties": {
          "orders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id_order": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string"
                },
                "type_order": {
                  "type": "string",
                  "enum": [
                    "WEB",
                    "POS"
                  ]
                },
                "status": {
                  "type": "string"
                },
                "subtotal": {
                  "type": "string"
                },
                "shipping_cost": {
                  "type": "string",
                  "nullable": true
                },
                "payment_method": {
                  "type": "string",
                  "nullable": true
                },
                "shipping_method": {
                  "type": "string",
                  "nullable": true
                },
                "customer": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "last_name": {
                      "type": "string",
                      "nullable": true
                    },
                    "email": {
                      "type": "string"
                    },
                    "phone": {
                      "type": "string",
                      "nullable": true
                    },
                    "dni": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id_product": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "code": {
                        "type": "string",
                        "nullable": true
                      },
                      "quantity": {
                        "type": "string"
                      },
                      "unit_price": {
                        "type": "string"
                      },
                      "variation_id": {
                        "type": "string",
                        "nullable": true
                      },
                      "attributes": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "attribute": {
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
