API
Docs and API's for Weasy.io
Product variations template
Manage all the product variations template.Accepts GET
All requests to the API must be authenticated with an API key on the HTTP Authorization header.
GET
Get all the product variations template
GET/variationstemplate{?limit,page}
Request example
~ curl -i -X GET \
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
https://api.weasy.io/v1/variationstemplate
-H 'X-API-KEY:xsFPVLn7aOllXixPDaGBgCZpyTmyX7G6CniNtKD' \
-H 'Content-Type:application/json' \
https://api.weasy.io/v1/variationstemplate
Body response example [ HTTP CODE: 200 ]
{
"pt":[
{
"id":"2",
"category_id":"2",
"category":"Cor",
"title":"Branco",
"hexcolor":"#ffffff",
"order":"1"
},
{
"id":"3",
"category_id":"2",
"category":"Cor",
"title":"Preto",
"hexcolor":"#000000",
"order":"2"
},
{
"id":"4",
"category_id":"2",
"category":"Cor",
"title":"Azul",
"hexcolor":"#0240ff",
"order":"3"
},
{
"id":"62",
"category_id":"5",
"category":"Tamanho",
"title":"L",
"hexcolor":"",
"order":"1"
},
{
"id":"63",
"category_id":"5",
"category":"Tamanho",
"title":"S",
"hexcolor":"",
"order":"2"
},
{
"id":"64",
"category_id":"5",
"category":"Tamanho",
"title":"M",
"hexcolor":"",
"order":"3"
}
],
"br":[
{
"id":"2",
"category_id":"2",
"category":"Cor",
"title":"Branco",
"hexcolor":"#ffffff",
"order":"1"
},
{
"id":"3",
"category_id":"2",
"category":"Cor",
"title":"Preto",
"hexcolor":"#000000",
"order":"2"
},
{
"id":"4",
"category_id":"2",
"category":"Cor",
"title":"Azul",
"hexcolor":"#0240ff",
"order":"3"
},
{
"id":"62",
"category_id":"5",
"category":"Tamano",
"title":"L",
"hexcolor":"",
"order":"1"
},
{
"id":"63",
"category_id":"5",
"category":"Tamano",
"title":"S",
"hexcolor":"",
"order":"2"
},
{
"id":"64",
"category_id":"5",
"category":"Tamano",
"title":"M",
"hexcolor":"",
"order":"3"
}
],
"cn":[
{
"id":"2",
"category_id":"2",
"category":"Cor",
"title":"Branco",
"hexcolor":"#ffffff",
"order":"1"
},
{
"id":"3",
"category_id":"2",
"category":"Cor",
"title":"Preto",
"hexcolor":"#000000",
"order":"2"
},
{
"id":"4",
"category_id":"2",
"category":"Cor",
"title":"Azul",
"hexcolor":"#0240ff",
"order":"3"
},
{
"id":"62",
"category_id":"5",
"category":"Tamano",
"title":"L",
"hexcolor":"",
"order":"1"
},
{
"id":"63",
"category_id":"5",
"category":"Tamano",
"title":"S",
"hexcolor":"",
"order":"2"
},
{
"id":"64",
"category_id":"5",
"category":"Tamano",
"title":"M",
"hexcolor":"",
"order":"3"
}
],
"de":[
{
"id":"2",
"category_id":"2",
"category":"Cor",
"title":"Branco",
"hexcolor":"#ffffff",
"order":"1"
},
{
"id":"3",
"category_id":"2",
"category":"Cor",
"title":"Preto",
"hexcolor":"#000000",
"order":"2"
},
{
"id":"4",
"category_id":"2",
"category":"Cor",
"title":"Azul",
"hexcolor":"#0240ff",
"order":"3"
},
{
"id":"62",
"category_id":"5",
"category":"Tamano",
"title":"L",
"hexcolor":"",
"order":"1"
},
{
"id":"63",
"category_id":"5",
"category":"Tamano",
"title":"S",
"hexcolor":"",
"order":"2"
},
{
"id":"64",
"category_id":"5",
"category":"Tamano",
"title":"M",
"hexcolor":"",
"order":"3"
}
],
"en":[
{
"id":"2",
"category_id":"2",
"category":"Color",
"title":"White",
"hexcolor":"#ffffff",
"order":"1"
},
{
"id":"3",
"category_id":"2",
"category":"Color",
"title":"Black 2",
"hexcolor":"#000000",
"order":"2"
},
{
"id":"4",
"category_id":"2",
"category":"Color",
"title":"Blue",
"hexcolor":"#0240ff",
"order":"3"
},
{
"id":"62",
"category_id":"5",
"category":"Tamano",
"title":"L",
"hexcolor":"",
"order":"1"
},
{
"id":"63",
"category_id":"5",
"category":"Tamano",
"title":"S",
"hexcolor":"",
"order":"2"
},
{
"id":"64",
"category_id":"5",
"category":"Tamano",
"title":"M",
"hexcolor":"",
"order":"3"
}
],
"es":[
{
"id":"2",
"category_id":"2",
"category":"Colour",
"title":"Blanco",
"hexcolor":"#ffffff",
"order":"1"
},
{
"id":"3",
"category_id":"2",
"category":"Colour",
"title":"Prieto",
"hexcolor":"#000000",
"order":"2"
},
{
"id":"4",
"category_id":"2",
"category":"Colour",
"title":"Azule",
"hexcolor":"#0240ff",
"order":"3"
},
{
"id":"62",
"category_id":"5",
"category":"Tamano",
"title":"L",
"hexcolor":"",
"order":"1"
},
{
"id":"63",
"category_id":"5",
"category":"Tamano",
"title":"S",
"hexcolor":"",
"order":"2"
},
{
"id":"64",
"category_id":"5",
"category":"Tamano",
"title":"M",
"hexcolor":"",
"order":"3"
}
],
"fr":[
{
"id":"2",
"category_id":"2",
"category":"Cor",
"title":"Branco",
"hexcolor":"#ffffff",
"order":"1"
},
{
"id":"3",
"category_id":"2",
"category":"Cor",
"title":"Preto",
"hexcolor":"#000000",
"order":"2"
},
{
"id":"4",
"category_id":"2",
"category":"Cor",
"title":"Azul",
"hexcolor":"#0240ff",
"order":"3"
},
{
"id":"62",
"category_id":"5",
"category":"Tamano",
"title":"L",
"hexcolor":"",
"order":"1"
},
{
"id":"63",
"category_id":"5",
"category":"Tamano",
"title":"S",
"hexcolor":"",
"order":"2"
},
{
"id":"64",
"category_id":"5",
"category":"Tamano",
"title":"M",
"hexcolor":"",
"order":"3"
}
],
"it":[
{
"id":"2",
"category_id":"2",
"category":"Cor",
"title":"Branco",
"hexcolor":"#ffffff",
"order":"1"
},
{
"id":"3",
"category_id":"2",
"category":"Cor",
"title":"Preto",
"hexcolor":"#000000",
"order":"2"
},
{
"id":"4",
"category_id":"2",
"category":"Cor",
"title":"Azul",
"hexcolor":"#0240ff",
"order":"3"
},
{
"id":"62",
"category_id":"5",
"category":"Tamano",
"title":"L",
"hexcolor":"",
"order":"1"
},
{
"id":"63",
"category_id":"5",
"category":"Tamano",
"title":"S",
"hexcolor":"",
"order":"2"
},
{
"id":"64",
"category_id":"5",
"category":"Tamano",
"title":"M",
"hexcolor":"",
"order":"3"
}
],
"ru":[
{
"id":"2",
"category_id":"2",
"category":"Cor",
"title":"Branco",
"hexcolor":"#ffffff",
"order":"1"
},
{
"id":"3",
"category_id":"2",
"category":"Cor",
"title":"Preto",
"hexcolor":"#000000",
"order":"2"
},
{
"id":"4",
"category_id":"2",
"category":"Cor",
"title":"Azul",
"hexcolor":"#0240ff",
"order":"3"
},
{
"id":"62",
"category_id":"5",
"category":"Tamano",
"title":"L",
"hexcolor":"",
"order":"1"
},
{
"id":"63",
"category_id":"5",
"category":"Tamano",
"title":"S",
"hexcolor":"",
"order":"2"
},
{
"id":"64",
"category_id":"5",
"category":"Tamano",
"title":"M",
"hexcolor":"",
"order":"3"
}
],
"paging":{
"total":"92",
"totalpages":92,
"next":"https://api.weasy.io/v1/variationstemplate?limit=1&page=2"
}
}
Path parameters
| NAME | TYPE | REQUIRED | DESCRIPTION |
|---|---|---|---|
| limit | integer | optional | define items per page |
| page | integer | optional | define page to display |