Páginas filhas
  • DR VA - API Ecommerce - Specification - Especificação de Produto

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.


CONTEÚDO

  1. Visão Geral
  2. Exemplo de utilização


01. VISÃO GERAL

Criação da API para disponibilizar informações de cadastro de especificação de produto para a Vtex referente a requisição ECommerceProductSpecification: Espeficicação de produtos para compor catálogo de produtos na Plataforma de E-Commerce VTEX.

Parâmetro para configuração da classificação de produto que fará parte da lista de marca DS_LST_ECOMMERCE_VA_MARCA.


LAYOUT JSON

https://github.com/totvs/ttalk-standard-message/blob/master/jsonschema/schemas/ECommerceProductSpecification_1_000.json

DOCUMENTAÇÃO API

https://github.com/totvs/ttalk-standard-message/blob/master/jsonschema/apis/ECommerceProductSpecification_v1_000.json

REFERENTE API

https://api.totvs.com.br/apidetails/ECommerceProductSpecification_v1_000.json


02. EXEMPLO DE UTILIZAÇÃO


Bloco de código
languagejs
titleExemplo requisição
https://www30.bhan.com.br:12443/api/ecommerce/v1/productspecifications?companyId=1&branchId=1
Bloco de código
languagejs
titleExemplo de resposta
collapsetrue
{
    "hasNext": false,
    "items": [
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42429-1",
            "createDate": "2017-03-14T14:06:25",
            "lastChange": "2017-03-14T14:06:25",
            "productSKUId": "14",
            "name": null,
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "3970-3",
            "createDate": "2017-04-20T10:59:59",
            "lastChange": "2017-04-20T10:59:59",
            "productSKUId": "100",
            "name": "teste",
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "3970-1",
            "createDate": "2017-04-20T10:59:58",
            "lastChange": "2017-04-20T10:59:58",
            "productSKUId": "100",
            "name": "teste titulo",
            "listOfAvailableValues": null
        },
        {
            "companyId": "1",
            "branchId": "1",
            "productSpecificationId": "42425-1",
            "createDate": "2017-05-02T15:06:16",
            "lastChange": "2017-05-02T15:06:16",
            "productSKUId": "1",
            "name": null,
            "listOfAvailableValues": null
        }
    ]
}
HTML
<!-- esconder o menu --> 


<style>
div.theme-default .ia-splitter #main {
    margin-left: 0px;
}
.ia-fixed-sidebar, .ia-splitter-left {
    display: none;
}
#main {
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
}

.aui-header-primary .aui-nav,  .aui-page-panel {
    margin-left: 0px !important;
}
.aui-header-primary .aui-nav {
    margin-left: 0px !important;
}
</style>