# Associação de Produto e Grupo

Associa um produto á um ou mais grupos de produtos no Portal de Classificação Fiscal.

# Observações da funcionalidade

O nome do grupo pode ser criado da forma que melhor represente o agrupamento de produtos do cliente, mas recomendamos que seja criado conforme o padrão abaixo:

- UFORIGEM-UFDESTINO-NATUREZADEOPERACAO-PERFILORIGEM-PERFILDESTINACAO-FINALIDADE

*<span style="text-decoration: underline;">Exemplo: SP-SP-120-1-140-569. Essa notação permite que os grupos sejam facilmente associados aos seus respectivos cenários.</span>*

A opção "Finalidade" não é obrigatória e será utilizada somente para cenários de entrada.

É importante frisar que a não associação de produtos a grupos determina que sejam criadas regras tributárias para todos os cenários sem grupos disponíveis, o que nem sempre é necessário.

# Descrição dos campos de chamada e retorno

**Chamada**

<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="bkmrk-pai-campo-tipo-descr" style="width: 497.0pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 3.5pt 0cm 3.5pt;" width="663"><tbody><tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; height: 16.5pt;"><td style="width: 130.0pt; border: solid black 1.0pt; mso-border-alt: solid black .5pt; background: #DDDDDD; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="173">**<span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Pai</span>**

</td><td style="width: 107.0pt; border: solid black 1.0pt; border-left: none; mso-border-top-alt: solid black .5pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: #DDDDDD; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="143">**<span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Campo</span>**

</td><td style="width: 52.0pt; border: solid black 1.0pt; border-left: none; mso-border-top-alt: solid black .5pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: #DDDDDD; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="69">**<span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Tipo</span>**

</td><td style="width: 127.0pt; border: solid black 1.0pt; border-left: none; mso-border-top-alt: solid black .5pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: #DDDDDD; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="169">**<span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Descrição</span>**

</td><td style="width: 81.0pt; border: solid black 1.0pt; border-left: none; mso-border-top-alt: solid black .5pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: #DDDDDD; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="108">**<span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Obrigatório</span>**

</td></tr><tr style="mso-yfti-irow: 1; height: 16.5pt;"><td style="width: 130.0pt; border: solid black 1.0pt; border-top: none; mso-border-left-alt: solid black .5pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="173"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">associarProdutoGrupos</span>

</td><td style="width: 107.0pt; border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="143"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">usuário</span>

</td><td style="width: 52.0pt; border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="69"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">String</span>

</td><td style="width: 127.0pt; border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="169"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Usuário do Portal CFM</span>

</td><td style="width: 81.0pt; border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="108"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Sim</span>

</td></tr><tr style="mso-yfti-irow: 2; height: 16.5pt;"><td style="width: 130.0pt; border: solid black 1.0pt; border-top: none; mso-border-left-alt: solid black .5pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="173"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">associarProdutoGrupos</span>

</td><td style="width: 107.0pt; border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="143"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">senha</span>

</td><td style="width: 52.0pt; border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="69"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">String</span>

</td><td style="width: 127.0pt; border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="169"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Senha</span>

</td><td style="width: 81.0pt; border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="108"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Sim</span>

</td></tr><tr style="mso-yfti-irow: 3; mso-yfti-lastrow: yes; height: 16.5pt;"><td style="width: 130.0pt; border: solid black 1.0pt; border-top: none; mso-border-left-alt: solid black .5pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="173"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">associarProdutoGrupos</span>

</td><td style="width: 107.0pt; border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="143"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">xmlGrupoProdutos</span>

</td><td style="width: 52.0pt; border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="69"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">String</span>

</td><td style="width: 127.0pt; border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="169"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">XML</span>

</td><td style="width: 81.0pt; border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; mso-border-bottom-alt: solid black .5pt; mso-border-right-alt: solid black .5pt; background: white; padding: 0cm 3.5pt 0cm 3.5pt; height: 16.5pt;" width="108"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Sim</span>

</td></tr></tbody></table>

**Retorno**

<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="bkmrk-pai-campo-descri%C3%A7%C3%A3o-" style="width: 338.0pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 3.5pt 0cm 3.5pt;" width="451"><tbody><tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; height: 16.5pt;"><td style="width: 69.321px; border: 1pt solid black; background: rgb(221, 221, 221); padding: 0cm 3.5pt; height: 16.5pt;" width="61">**<span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Pai</span>**

</td><td style="width: 92px; border-top: 1pt solid black; border-right: 1pt solid black; border-bottom: 1pt solid black; border-image: initial; border-left: none; background: rgb(221, 221, 221); padding: 0cm 3.5pt; height: 16.5pt;" width="100">**<span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Campo</span>**

</td><td style="width: 289.332px; border-top: 1pt solid black; border-right: 1pt solid black; border-bottom: 1pt solid black; border-image: initial; border-left: none; background: rgb(221, 221, 221); padding: 0cm 3.5pt; height: 16.5pt;" width="289">**<span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Descrição</span>**

</td></tr><tr style="mso-yfti-irow: 1; height: 16.5pt;"><td style="width: 69.321px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="61"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">produto</span>

</td><td style="width: 92px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="100"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">cProd</span>

</td><td style="width: 289.332px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="289"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Código de produto</span>

</td></tr><tr style="mso-yfti-irow: 2; height: 16.5pt;"><td style="width: 69.321px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="61"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">produto</span>

</td><td style="width: 92px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="100"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">codigo</span>

</td><td style="width: 289.332px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="289"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Código da mensagem de retorno</span>

</td></tr><tr style="mso-yfti-irow: 3; height: 16.5pt;"><td style="width: 69.321px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="61"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">grupo</span>

</td><td style="width: 92px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="100"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">ID</span>

</td><td style="width: 289.332px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="289"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">ID do grupo</span>

</td></tr><tr style="mso-yfti-irow: 4; height: 16.5pt;"><td style="width: 69.321px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="61"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">grupo</span>

</td><td style="width: 92px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="100"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">codigo</span>

</td><td style="width: 289.332px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="289"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Código da mensagem de retorno</span>

</td></tr><tr style="mso-yfti-irow: 5; height: 16.5pt;"><td style="width: 69.321px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="61"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">grupo</span>

</td><td style="width: 92px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="100"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">mensagem</span>

</td><td style="width: 289.332px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="289"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Mensagem de retorno</span>

</td></tr><tr style="mso-yfti-irow: 6; mso-yfti-lastrow: yes; height: 16.5pt;"><td style="width: 69.321px; border-right: 1pt solid black; border-bottom: 1pt solid black; border-left: 1pt solid black; border-image: initial; border-top: none; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="61"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">grupo</span>

</td><td style="width: 92px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="100"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">nomeGrupo</span>

</td><td style="width: 289.332px; border-top: none; border-left: none; border-bottom: 1pt solid black; border-right: 1pt solid black; background: white; padding: 0cm 3.5pt; height: 16.5pt;" width="289"><span style="font-size: 11.0pt; font-family: 'Segoe UI',sans-serif; mso-fareast-font-family: 'Times New Roman'; color: #212529; mso-font-kerning: 0pt; mso-ligatures: none; mso-fareast-language: PT-BR;">Nome do grupo de produto</span>

</td></tr></tbody></table>

# Exemplo de chamada e retorno

**Chamada**

&lt;soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:sys="http://systax.com.br"&gt;  
 &lt;soap:Header/&gt;  
 &lt;soap:Body&gt;  
 &lt;sys:associarProdutoGrupo&gt;  
 &lt;sys:usuario&gt;superdemo&lt;/sys:usuario&gt;  
 &lt;sys:senha&gt;systax741&lt;/sys:senha&gt;  
 &lt;sys:xmlGrupoProdutos&gt;&lt;!\[CDATA\[  
 &lt;systaxCadastro&gt;  
 &lt;produto&gt;  
 &lt;cProd&gt;94394394&lt;/cProd&gt;  
 &lt;orig&gt;0&lt;/orig&gt;  
 &lt;grupos&gt;  
 &lt;grupo&gt;MG-MG-121-3,134-140&lt;/grupo&gt;  
 &lt;grupo&gt;MG-AC-121-3,134-140&lt;/grupo&gt;  
 &lt;/grupos&gt;  
 &lt;/produto&gt;   
 &lt;/systaxCadastro&gt;\]\]&gt;&lt;/sys:xmlGrupoProdutos&gt;  
 &lt;/sys:associarProdutoGrupo&gt;  
 &lt;/soap:Body&gt;  
&lt;/soap:Envelope&gt;

<span style="text-decoration: underline;">***Observação**: A tag &lt;grupo&gt; pode ser adicionada de acordo com a quantidadade necessária pelo cliente.*</span>

**Retorno**

&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;  
 &lt;soapenv:Body&gt;  
 &lt;ns:associarProdutoGrupoResponse xmlns:ns="http://systax.com.br"&gt;  
 &lt;ns:return xsi:type="ax21:SystaxCadastroResp" xmlns:ax21="http://retorno.systax.com.br/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;  
 &lt;ax21:grupo xsi:nil="true"/&gt;  
 &lt;ax21:produto xsi:type="ax21:Produto"&gt;  
 &lt;ax21:ID xsi:nil="true"/&gt;  
 &lt;ax21:cProd&gt;P0123&lt;/ax21:cProd&gt;  
 &lt;ax21:codigo&gt;128&lt;/ax21:codigo&gt;  
 &lt;ax21:grupos xsi:type="ax21:Grupos"&gt;  
 &lt;ax21:grupo xsi:type="ax21:Grupo"&gt;  
 &lt;ax21:ID&gt;82393179&lt;/ax21:ID&gt;  
 &lt;ax21:codigo&gt;128&lt;/ax21:codigo&gt;  
 &lt;ax21:mensagem&gt;Grupo associado com sucesso. Cenário já existente.&lt;/ax21:mensagem&gt;  
 &lt;ax21:nomeGrupo&gt;grupoABC&lt;/ax21:nomeGrupo&gt;  
 &lt;/ax21:grupo&gt;  
 &lt;ax21:grupo xsi:type="ax21:Grupo"&gt;  
 &lt;ax21:ID&gt;82393180&lt;/ax21:ID&gt;  
 &lt;ax21:codigo&gt;128&lt;/ax21:codigo&gt;  
 &lt;ax21:mensagem&gt;Grupo associado com sucesso. Cenário já existente.&lt;/ax21:mensagem&gt;  
 &lt;ax21:nomeGrupo&gt;grupoDEF&lt;/ax21:nomeGrupo&gt;  
 &lt;/ax21:grupo&gt;  
 &lt;ax21:grupo xsi:type="ax21:Grupo"&gt;  
 &lt;ax21:ID&gt;82393181&lt;/ax21:ID&gt;  
 &lt;ax21:codigo&gt;128&lt;/ax21:codigo&gt;  
 &lt;ax21:mensagem&gt;Grupo associado com sucesso. Cenário já existente.&lt;/ax21:mensagem&gt;  
 &lt;ax21:nomeGrupo&gt;grupoGHI&lt;/ax21:nomeGrupo&gt;  
 &lt;/ax21:grupo&gt;  
 &lt;/ax21:grupos&gt;  
 &lt;ax21:mensagem&gt;Grupo associado com sucesso. Cenário já existente.&lt;/ax21:mensagem&gt;  
 &lt;ax21:orig&gt;0&lt;/ax21:orig&gt;  
 &lt;/ax21:produto&gt;  
 &lt;/ns:return&gt;  
 &lt;/ns:associarProdutoGrupoResponse&gt;  
 &lt;/soapenv:Body&gt;  
&lt;/soapenv:Envelope&gt;

**Obs.:**

Quando a chamada possuí mais de um grupo associado ao produto, é criado um código de retorno para cada grupo envolvido na requisição (em verde), e também, um código de retorno isolado (em amarelo). Veja abaixo:

[![Assoc_Prod_Grupo_001.PNG](https://documentacao.systax.com.br/uploads/images/gallery/2025-07/scaled-1680-/assoc-prod-grupo-001.PNG)](https://documentacao.systax.com.br/uploads/images/gallery/2025-07/assoc-prod-grupo-001.PNG)

Quando há apenas um único grupo envolvido na requisição, os códigos de retorno são iguais conforme na imagem:

[![Assoc_Prod_Grupo_002.PNG](https://documentacao.systax.com.br/uploads/images/gallery/2025-07/scaled-1680-/assoc-prod-grupo-002.PNG)](https://documentacao.systax.com.br/uploads/images/gallery/2025-07/assoc-prod-grupo-002.PNG)

Para fins de integração, recomenda-se obter sempre os códigos de retorno envolvidos nos grupos (em verde). O código de retorno (em amarelo) é usado apenas por integrações desenvolvidas anteriormente.