Supported Formats

json

GET /api/productos/todos
Devuelve todos los productos

### Ejemplo cURL

curl -X GET -H "Cache-Control: no-cache" -H "Postman-Token: ad901786-ef54-d490-f7b7-b51cbe2e7d97" 'http://localhost:3000/api/productos/todos.json'

### Ejemplo Retorno

[
  {
    "id": 259657,
    "width": "20.0",
    "height": "179.0",
    "uso": "Porcelanico Técnico",
    "descripcion": ".3WOOD BEIGE 20X179 PRIMERA",
    "colores_id": 285,
    "colores_genericos_id": 30,
    "color_generico_name": "Beige",
    "color_name": "Beige",
    "acabado_name": "Mate",
    "formatos_id": 50,
    "formato_name": "Tablón",
    "estilo_id": 4,
    "estilo_name": "Madera",
    "lineas_id": 4865,
    "rectificado": 0,
    "seccion_id": 20,
    "seccion_name": "Piso / Formatos",
    "linea_name": ".3Wood",
    "thumbnail_url": "https://interceramic.com/application/public/images/thumb-productos/PS.3WOD.BEIG.1066.1001.1.jpg",
    "modelo_name": "",
    "imagen_grande_url": "https://interceramic.com/application/public/uploads/PS.3WOD.BEIG.1066.1001.1F_2048X1536.jpg"
  },
  {
    "id": 263690,
    "width": "20.0",
    "height": "179.0",
    "uso": "Porcelanico Técnico",
    "descripcion": ".3WOOD TAUPE 20X179 B45 PRIMERA",
    "colores_id": 641,
    "colores_genericos_id": 90,
    "color_generico_name": "Naranja",
    "color_name": "Taupe",
    "acabado_name": "Mate",
    "formatos_id": 50,
    "formato_name": "Tablón",
    "estilo_id": 4,
    "estilo_name": "Madera",
    "lineas_id": 4865,
    "rectificado": 0,
    "seccion_id": 20,
    "seccion_name": "Piso / Formatos",
    "linea_name": ".3Wood",
    "thumbnail_url": "https://interceramic.com/application/public/images/thumb-productos/PS.3WOD.TAUP.1066.1001B45.1.jpg",
    "modelo_name": "",
    "imagen_grande_url": "https://interceramic.com/application/public/uploads/PS.3WOD.TAUP.1066.1001B45.1F_2048X1536.jpg"
  }
]

Supported Formats

json

Errors

401 Unauthorized - Returned when authentication can't be achieved via login or missing/expired api token

GET /api/productos/por_uso
Devuelve los productos filtrados por uso

### Ejemplo cURL

curl -X GET -H "Cache-Control: no-cache" -H "Postman-Token: 7121d0f6-2cd3-2e27-8b17-1a9409dc6bd8" 'http://localhost:3000/api/productos/por_uso.json?uso=azulejo'

### Ejemplo Retorno

[
  {
    "id": 82123,
    "width": "20.0",
    "height": "30.0",
    "uso": "Azulejo",
    "descripcion": "ASTRATTO BLANCO 20X30 P25 PRIMERA",
    "colores_id": 845,
    "colores_genericos_id": 40,
    "color_generico_name": "Blanco",
    "color_name": "Blanco",
    "acabado_name": "Esmaltado",
    "formatos_id": 10,
    "formato_name": "Chico",
    "estilo_id": 8,
    "estilo_name": "Sólido",
    "lineas_id": 360,
    "rectificado": 0,
    "seccion_id": 50,
    "seccion_name": "Azulejo / Formatos",
    "linea_name": "Astratto",
    "thumbnail_url": "https://interceramic.com/application/public/images/thumb-productos/IN.ASTR.BLAN.051.3001P25.1.jpg",
    "modelo_name": "",
    "imagen_grande_url": "https://interceramic.com/application/public/uploads/IN.ASTR.BLAN.051.3001P25.1F_2048X1536.jpg"
  },
  {
    "id": 82128,
    "width": "20.0",
    "height": "20.0",
    "uso": "Azulejo",
    "descripcion": "ASTRATTO BLANCO 20X20 PRIMERA",
    "colores_id": 845,
    "colores_genericos_id": 40,
    "color_generico_name": "Blanco",
    "color_name": "Blanco",
    "acabado_name": "Esmaltado",
    "formatos_id": 10,
    "formato_name": "Chico",
    "estilo_id": 8,
    "estilo_name": "Sólido",
    "lineas_id": 360,
    "rectificado": 0,
    "seccion_id": 50,
    "seccion_name": "Azulejo / Formatos",
    "linea_name": "Astratto",
    "thumbnail_url": "https://interceramic.com/application/public/images/thumb-productos/IN.ASTR.BLAN.182.3001.1.jpg",
    "modelo_name": "",
    "imagen_grande_url": "https://interceramic.com/application/public/uploads/IN.ASTR.BLAN.182.3001.1F_2048X1536.jpg"
  }
]

Supported Formats

json

Errors

401 Unauthorized - Returned when authentication can't be achieved via login or missing/expired api token

Params

Param Name Description
uso
Required

Posibles valores: “Azulejo” ó “Piso”


Value:

Must be String


GET /api/productos/por_estilo
Devuelve los productos filtrados por estilo

### Ejemplo cURL

curl -X GET -H "Cache-Control: no-cache" -H "Postman-Token: 45bca10d-d4c5-76f4-0f61-4268fceb013e" 'http://localhost:3000/api/productos/por_estilo.json?estilo_id=1'

### Ejemplo Retorno

[
  {
    "id": 160151,
    "width": "40.0",
    "height": "40.0",
    "uso": "Piso Decorado",
    "descripcion": "HABITAT OYSTER 40X40 MOSAICO UNDULATED PRIMERA",
    "colores_id": 299,
    "colores_genericos_id": 30,
    "color_generico_name": "Beige",
    "color_name": "Oyster",
    "acabado_name": "Esmaltado",
    "formatos_id": 20,
    "formato_name": "Mediano",
    "estilo_id": 1,
    "estilo_name": "Cemento",
    "lineas_id": 1930,
    "rectificado": 0,
    "seccion_id": 30,
    "seccion_name": "Piso / Decos",
    "linea_name": "Habitat",
    "thumbnail_url": "https://interceramic.com/application/public/images/thumb-productos/IN.HABI.OYSR.188.2045UNDU.1.jpg",
    "modelo_name": "Mosaico",
    "imagen_grande_url": "https://interceramic.com/application/public/uploads/IN.HABI.OYSR.188.2045UNDU.1F_2048X1536.jpg"
  },
  {
    "id": 160152,
    "width": "40.0",
    "height": "40.0",
    "uso": "Piso Decorado",
    "descripcion": "HABITAT SMOKE 40X40 MOSAICO UNDULATED PRIMERA",
    "colores_id": 576,
    "colores_genericos_id": 60,
    "color_generico_name": "Gris",
    "color_name": "Smoke",
    "acabado_name": "Esmaltado",
    "formatos_id": 20,
    "formato_name": "Mediano",
    "estilo_id": 1,
    "estilo_name": "Cemento",
    "lineas_id": 1930,
    "rectificado": 0,
    "seccion_id": 30,
    "seccion_name": "Piso / Decos",
    "linea_name": "Habitat",
    "thumbnail_url": "https://interceramic.com/application/public/images/thumb-productos/IN.HABI.SMOK.188.2045UNDU.1.jpg",
    "modelo_name": "Mosaico",
    "imagen_grande_url": "https://interceramic.com/application/public/uploads/IN.HABI.SMOK.188.2045UNDU.1F_2048X1536.jpg"
  }
]

Supported Formats

json

Errors

401 Unauthorized - Returned when authentication can't be achieved via login or missing/expired api token

Params

Param Name Description
estilo_id
Required

El ID del estilo


Value:

Must be String


GET /api/productos/por_linea
Devuelve los productos filtrados por linea

### Ejemplo cURL

curl -X GET -H "Cache-Control: no-cache" -H "Postman-Token: 82d580ac-75e6-b03a-b55b-ff95c1ea94dc" 'http://localhost:3000/api/productos/por_linea.json?lineas_id=10'

### Ejemplo Retorno

[
  {
    "id": 165239,
    "width": "33.0",
    "height": "33.0",
    "uso": "Piso Decorado",
    "descripcion": "3D ACCENTS FUJI CANVAS 33X33 MOSAICO PRIMERA",
    "colores_id": 266,
    "colores_genericos_id": 30,
    "color_generico_name": "Beige",
    "color_name": "Fuji Canvas",
    "acabado_name": "Esmaltado",
    "formatos_id": 20,
    "formato_name": "Mediano",
    "estilo_id": 2,
    "estilo_name": "Decorado",
    "lineas_id": 10,
    "rectificado": 0,
    "seccion_id": 40,
    "seccion_name": "Piso / Piezas Especiales",
    "linea_name": "3D Accents",
    "thumbnail_url": "https://interceramic.com/application/public/images/thumb-productos/IN.3DAC.FUCA.186.2045.1.jpg",
    "modelo_name": "Mosaico",
    "imagen_grande_url": "https://interceramic.com/application/public/uploads/IN.3DAC.FUCA.186.2045.1F_2048X1536.jpg"
  },
  {
    "id": 165240,
    "width": "33.0",
    "height": "33.0",
    "uso": "Piso Decorado",
    "descripcion": "3D ACCENTS FUJI MARRONE 33X33 MOSAICO PRIMERA",
    "colores_id": 555,
    "colores_genericos_id": 50,
    "color_generico_name": "Café",
    "color_name": "Fuji Marrone",
    "acabado_name": "Esmaltado",
    "formatos_id": 20,
    "formato_name": "Mediano",
    "estilo_id": 2,
    "estilo_name": "Decorado",
    "lineas_id": 10,
    "rectificado": 0,
    "seccion_id": 40,
    "seccion_name": "Piso / Piezas Especiales",
    "linea_name": "3D Accents",
    "thumbnail_url": "https://interceramic.com/application/public/images/thumb-productos/IN.3DAC.FUMA.186.2045.1.jpg",
    "modelo_name": "Mosaico",
    "imagen_grande_url": "https://interceramic.com/application/public/uploads/IN.3DAC.FUMA.186.2045.1F_2048X1536.jpg"
  }
]

Supported Formats

json

Errors

401 Unauthorized - Returned when authentication can't be achieved via login or missing/expired api token

Params

Param Name Description
lineas_id
Required

El ID de la linea


Value:

Must be String


GET /api/productos/por_formato
Devuelve los productos filtrados por formato

### Ejemplo cURL

curl -X GET -H "Cache-Control: no-cache" -H "Postman-Token: 102a7dd8-2742-0cfb-40a7-755473e170f5" 'http://localhost:3000/api/productos/por_formato.json?formatos_id=10'

### Ejemplo Retorno

[
  {
    "id": 79103,
    "width": "16.5",
    "height": "16.5",
    "uso": "Piso Decorado",
    "descripcion": "ACCENTO MEDIEVAL 16.5X16.5 ESQUINA PRIMERA",
    "colores_id": 732,
    "colores_genericos_id": 70,
    "color_generico_name": "Marrón",
    "color_name": "Medieval",
    "acabado_name": "Esmaltado",
    "formatos_id": 10,
    "formato_name": "Chico",
    "estilo_id": 2,
    "estilo_name": "Decorado",
    "lineas_id": 40,
    "rectificado": 0,
    "seccion_id": 30,
    "seccion_name": "Piso / Decos",
    "linea_name": "Floor Accents",
    "thumbnail_url": "https://interceramic.com/application/public/images/thumb-productos/IN.ACCN.MEDA.281.2007.1.jpg",
    "modelo_name": "Esquina",
    "imagen_grande_url": "https://interceramic.com/application/public/uploads/IN.ACCN.MEDA.281.2007.1F_2048X1536.jpg"
  },
  {
    "id": 79469,
    "width": "30.0",
    "height": "30.0",
    "uso": "Cuerpo Rojo",
    "descripcion": "METALLIC II PEWTER 30X30 PRIMERA",
    "colores_id": 976,
    "colores_genericos_id": 60,
    "color_generico_name": "Gris",
    "color_name": "Pewter",
    "acabado_name": "Esmaltado",
    "formatos_id": 10,
    "formato_name": "Chico",
    "estilo_id": 3,
    "estilo_name": "Granito",
    "lineas_id": 4642,
    "rectificado": 0,
    "seccion_id": 20,
    "seccion_name": "Piso / Formatos",
    "linea_name": "Metallic",
    "thumbnail_url": "https://interceramic.com/application/public/images/thumb-productos/IN.MEL2.PEWT.184.1001.1.jpg",
    "modelo_name": "",
    "imagen_grande_url": "https://interceramic.com/application/public/uploads/IN.MEL2.PEWT.184.1001.1F_2048X1536.jpg"
  }
]

Supported Formats

json

Errors

401 Unauthorized - Returned when authentication can't be achieved via login or missing/expired api token

Params

Param Name Description
formatos_id
Required

El ID del formato


Value:

Must be String


GET /api/productos/por_color
Devuelve los productos filtrados por color

### Ejemplo cURL

curl -X GET -H "Cache-Control: no-cache" -H "Postman-Token: 2556c5c4-9c7d-a21e-07f1-7c284b5f7efa" 'http://localhost:3000/api/productos/por_color.json?colores_id=60'

### Ejemplo Retorno

[
  {
    "id": 210229,
    "width": "31.8",
    "height": "31.8",
    "uso": "Azulejo Decorado",
    "descripcion": "INTERGLASS MURANO WHITE-BLUE 31.8X31.8 MOSAICO PRIMERA",
    "colores_id": 60,
    "colores_genericos_id": 20,
    "color_generico_name": "Azul",
    "color_name": "White-Blue",
    "acabado_name": "Brillante",
    "formatos_id": 20,
    "formato_name": "Mediano",
    "estilo_id": 10,
    "estilo_name": "Vidrio",
    "lineas_id": 4697,
    "rectificado": 0,
    "seccion_id": 70,
    "seccion_name": "Azulejo / Piezas Especiales",
    "linea_name": "Interglass Murano",
    "thumbnail_url": "https://interceramic.com/application/public/images/thumb-productos/PS.INTM.WHIB.1040.4045.1.jpg",
    "modelo_name": "Mosaico",
    "imagen_grande_url": "https://interceramic.com/application/public/uploads/PS.INTM.WHIB.1040.4045.1F_2048X1536.jpg"
  }
]

Supported Formats

json

Errors

401 Unauthorized - Returned when authentication can't be achieved via login or missing/expired api token

Params

Param Name Description
colores_id
Required

El ID del color


Value:

Must be String


GET /api/productos/get_date
Devuelve la fecha del servidor

### Ejemplo cURL

curl -X GET -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 88aa64d3-d7e1-bf83-73a9-af205685cb35" "http://localhost:3000/api/productos/get_date.json"

### Ejemplo Retorno

{
  "slash_format": "09/01/2017",
  "dash_format": "2017-01-09"
}

Supported Formats

json

Errors

401 Unauthorized - Returned when authentication can't be achieved via login or missing/expired api token

POST /api/productos/create_pdf
Devuelve un archivo PDF

###Example cURL

curl -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 40710476-7ff3-0383-e3b8-006c378fa4bb" -d
'{
    "clientEmail": "email",
    "clientName":"Nombre",
    "clientPhone":"667788",
    "date":"stringDeFecha",
    "originalImage":"base64ImageString",
    "projectName": "Nombre",
    "resultImage":"base64ImageString",
    "materials":[
      {
        "areaName":"name",
        "type":"type",
        "image":"base64ImgageString",
        "linea":"linea",
        "color":"Color",
        "medidas":"Medidas"
      }
    ],
    "boquillas":[
      {
        "areaName":"name",
        "name":"name",
        "hexColor":"#FF0000"
      }
    ]
}' "http://localhost:3000/api/productos/create_pdf.json"

Supported Formats

json

Errors

401 Unauthorized - Returned when authentication can't be achieved via login or missing/expired api token

Params

Param Name Description
projectName
Optional

Nombre del proyecto


Value:

Must be String

clientEmail
Optional

Email del cliente


Value:

Must be String

clientName
Optional

Nombre del cliente


Value:

Must be String

clientPhone
Optional

Teléfono del cliente


Value:

Must be String

resultImage
Optional

Imágen del proyecto en base64


Value:

Must be String

date
Optional

Fecha del proyecto


Value:

Must be String

materials
Optional

Array con información de los materiales utilizados en el proyecto


Value:

Must be an array of any type

boquillas
Optional

Array con información de las boquillas utilizadas en el proyecto


Value:

Must be an array of any type