Demander API - Product Groups
This article is part of the REST Integration API documentation.
Documentation for querying, inserting, updating and deleting product groups.
Consultation
Section titled “Consultation”Lists the company’s product groups. Without filter, considers dataAlteracao from the last 6 months.
Rota: {host}/public/v1/grupos-de-produto?pagina={pagina}&limite={limite}&filtroDataAlteracao={data}&operadorFiltro={operador}Método: GETReturn:
{ "gruposDeProduto": [ { "codigo": "1", "descricao": "ENLATADOS", "ativo": 1, "codGrupoPai": null, "ocultarNaLojaVirtual": 0, "dataAlteracao": "2026-07-15 10:00:00" } ]}Insert or update
Section titled “Insert or update”POST upsert by key codigo.
Rota: {host}/public/v1/grupos-de-produtoMétodo: POSTBody: json| Property | Type | Size | Mandatory | Description |
|---|---|---|---|---|
| code | string | 30 | ✓ | Group code. Unique identifier used to insert or update (upsert). |
| description | string | 255 | ✓ | Product group name. |
| active | int | Values: 0 or 1. Default on inclusion: 1. |
||
| codGrupoPai | string | 30 | Parent group code (hierarchy). | |
| ocultarNaLojaVirtual | int | Values: 0 or 1. Default on inclusion: 0. If omitted in the update, it maintains the current value. |
Body:
{ "codigo": "1", "descricao": "ENLATADOS", "ativo": 1, "codGrupoPai": null, "ocultarNaLojaVirtual": 0}Return:
{ "codigo": "1", "descricao": "ENLATADOS", "ativo": 1, "codGrupoPai": null, "ocultarNaLojaVirtual": 0, "dataAlteracao": "2026-07-15 10:00:00"}Delete
Section titled “Delete”Removes the product group.
Rota: {host}/public/v1/grupos-de-produto?codigo={codigo}Método: DELETEReturn:
{ "mensagem": "Registro excluído com sucesso."}