Consultar atributos por categoria
Nesta seção indicaremos como realizar a consulta nos atributos de categorias da Americanas.
Last updated
https://api.skyhub.com.br/categories/{id}/attributes[
{
"marketplace": "string",
"id": "string", // id do atributo
"name": "string",
"group": "string",
"groupId": "string",
"type": "string", // tipo do atributo
"typeId": "string",
"toSKU": "boolean", // define se o atributo deve ser enviado no PAI ou Variação
"variant": "boolean",
"binary": "boolean",
"active": "boolean",
"required": "boolean",
"valueData": []
}
]curl --location -g --request GET 'https://api.skyhub.com.br/categories/55/attributes' \
--header 'X-User-Email: email_de_usuario' \
--header 'X-Api-Key: token_de_integracao de sua conta SkyHub' \
--header 'X-Accountmanager-Key: token_account único de cada Plataforma/ERP' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'// Atributo de preenchimento Livre
[
{
"marketplace": "TALD00776574000660",
"id": "22066",
"name": "Cor",
"group": "Especificações - Caixas e embalagens para delivery",
"groupId": "15401",
"type": "Texto",
"typeId": "1",
"toSKU": false,
"variant": false,
"binary": false,
"active": true,
"required": false,
"valueData": []
}
]// Atributo com valores pré-determinados
[
{
"marketplace": "TALD00776574000660",
"id": "28966",
"name": "É kit",
"group": "Especificações - Agro, indústria e comércio",
"groupId": "19785",
"type": "Radio",
"typeId": "6",
"toSKU": false,
"variant": false,
"binary": false,
"active": true,
"required": false,
"valueData": [
{
"id": "49068",
"value": "Sim",
"descriptionValue": "Sim",
"name": "Sim",
"code": "49068",
"active": true
},
{
"id": "49069",
"value": "Não",
"descriptionValue": "Não",
"name": "Não",
"code": "49069",
"active": true
}
]
}
]