A finalidade deste método é Consulta cenários de Base Composição.
POST [URLAPI]/SMIntTributAPI/api/v1/integracao-tributaria/base-composicao
Nenhum.
Collection of POSTBaseComposicaoRequestDTO
Nome | Descrição | Tipo | Informações Adicionais |
---|---|---|---|
Tributos | Tipo de Tributação e suas respectivas fórmulas, sendo os tributos: COFINS, ICMS, ICMSANT, IPI, PIS | TipoTributoDTO | None. |
Indicador | Número indicador do cenário | integer | Required |
Descricao | Descrição do cenário | string | Required String length: inclusive between 0 and 1000 |
VigenciaDe | Data Início da Vigência da fórmula – Formatos: dd/mm/yyyy hh:mm ou ddmmyyyyhhmm | string | None. |
VigenciaAte | Data Final da Vigência da fórmula – Formatos: dd/mm/yyyy hh:mm ou ddmmyyyyhhmm | string | None. |
application/json, text/json
[ { "Tributos": { "COFINS": { "FormulaBase": "sample string 1", "FormulaValor": "sample string 2" }, "ICMS": { "FormulaBase": "sample string 1", "FormulaValor": "sample string 2" }, "ICMSANT": { "FormulaBase": "sample string 1", "FormulaValor": "sample string 2" }, "IPI": { "FormulaBase": "sample string 1", "FormulaValor": "sample string 2" }, "PIS": { "FormulaBase": "sample string 1", "FormulaValor": "sample string 2" } }, "Indicador": 1, "Descricao": "sample string 2", "VigenciaDe": "sample string 3", "VigenciaAte": "sample string 4" }, { "Tributos": { "COFINS": { "FormulaBase": "sample string 1", "FormulaValor": "sample string 2" }, "ICMS": { "FormulaBase": "sample string 1", "FormulaValor": "sample string 2" }, "ICMSANT": { "FormulaBase": "sample string 1", "FormulaValor": "sample string 2" }, "IPI": { "FormulaBase": "sample string 1", "FormulaValor": "sample string 2" }, "PIS": { "FormulaBase": "sample string 1", "FormulaValor": "sample string 2" } }, "Indicador": 1, "Descricao": "sample string 2", "VigenciaDe": "sample string 3", "VigenciaAte": "sample string 4" } ]
application/xml, text/xml
Exemplo (Sample):
<ArrayOfPOSTBaseComposicaoRequestDTO xmlns:i=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://schemas.datacontract.org/2004/07/SMIntegracaoTributaria.Common.Entities.Dto.Entities.v1.Composicao”>
<POSTBaseComposicaoRequestDTO>
<Descricao xmlns=”http://schemas.datacontract.org/2004/07/SMIntegracaoTributaria.Common.Entities.Dto.Entities.v1.Common”>sample string 2</Descricao>
<Indicador xmlns=”http://schemas.datacontract.org/2004/07/SMIntegracaoTributaria.Common.Entities.Dto.Entities.v1.Common”>1</Indicador>
<VigenciaAte xmlns=”http://schemas.datacontract.org/2004/07/SMIntegracaoTributaria.Common.Entities.Dto.Entities.v1.Common”>sample string 4</VigenciaAte>
<VigenciaDe xmlns=”http://schemas.datacontract.org/2004/07/SMIntegracaoTributaria.Common.Entities.Dto.Entities.v1.Common”>sample string 3</VigenciaDe>
<Tributos xmlns:d3p1=”http://schemas.datacontract.org/2004/07/SMIntegracaoTributaria.Common.Entities.Dto.Entities.v1.Common”>
<d3p1:COFINS>
<d3p1:FormulaBase>sample string 1</d3p1:FormulaBase>
<d3p1:FormulaValor>sample string 2</d3p1:FormulaValor>
</d3p1:COFINS>
<d3p1:ICMS>
<d3p1:FormulaBase>sample string 1</d3p1:FormulaBase>
<d3p1:FormulaValor>sample string 2</d3p1:FormulaValor>
</d3p1:ICMS>
<d3p1:ICMSANT>
<d3p1:FormulaBase>sample string 1</d3p1:FormulaBase>
<d3p1:FormulaValor>sample string 2</d3p1:FormulaValor>
</d3p1:ICMSANT>
<d3p1:IPI>
<d3p1:FormulaBase>sample string 1</d3p1:FormulaBase>
<d3p1:FormulaValor>sample string 2</d3p1:FormulaValor>
</d3p1:IPI>
<d3p1:PIS>
<d3p1:FormulaBase>sample string 1</d3p1:FormulaBase>
<d3p1:FormulaValor>sample string 2</d3p1:FormulaValor>
</d3p1:PIS>
</Tributos>
</POSTBaseComposicaoRequestDTO>
<POSTBaseComposicaoRequestDTO>
<Descricao xmlns=”http://schemas.datacontract.org/2004/07/SMIntegracaoTributaria.Common.Entities.Dto.Entities.v1.Common”>sample string 2</Descricao>
<Indicador xmlns=”http://schemas.datacontract.org/2004/07/SMIntegracaoTributaria.Common.Entities.Dto.Entities.v1.Common”>1</Indicador>
<VigenciaAte xmlns=”http://schemas.datacontract.org/2004/07/SMIntegracaoTributaria.Common.Entities.Dto.Entities.v1.Common”>sample string 4</VigenciaAte>
<VigenciaDe xmlns=”http://schemas.datacontract.org/2004/07/SMIntegracaoTributaria.Common.Entities.Dto.Entities.v1.Common”>sample string 3</VigenciaDe>
<Tributos xmlns:d3p1=”http://schemas.datacontract.org/2004/07/SMIntegracaoTributaria.Common.Entities.Dto.Entities.v1.Common”>
<d3p1:COFINS>
<d3p1:FormulaBase>sample string 1</d3p1:FormulaBase>
<d3p1:FormulaValor>sample string 2</d3p1:FormulaValor>
</d3p1:COFINS>
<d3p1:ICMS>
<d3p1:FormulaBase>sample string 1</d3p1:FormulaBase>
<d3p1:FormulaValor>sample string 2</d3p1:FormulaValor>
</d3p1:ICMS>
<d3p1:ICMSANT>
<d3p1:FormulaBase>sample string 1</d3p1:FormulaBase>
<d3p1:FormulaValor>sample string 2</d3p1:FormulaValor>
</d3p1:ICMSANT>
<d3p1:IPI>
<d3p1:FormulaBase>sample string 1</d3p1:FormulaBase>
<d3p1:FormulaValor>sample string 2</d3p1:FormulaValor>
</d3p1:IPI>
<d3p1:PIS>
<d3p1:FormulaBase>sample string 1</d3p1:FormulaBase>
<d3p1:FormulaValor>sample string 2</d3p1:FormulaValor>
</d3p1:PIS>
</Tributos>
</POSTBaseComposicaoRequestDTO>
</ArrayOfPOSTBaseComposicaoRequestDTO>
application/x-www-form-urlencoded
Não há.
Status Code 201 – Created
IntegracaoTributariaResponseDTO
Nome | Descrição | Tipo | Informações Adicionais |
---|---|---|---|
CallbackURL | Endpoint para consulta do item manipulado | string | None. |
application/json, text/json
{ "CallbackURL": "sample string 1" }
application/xml, text/xml
<IntegracaoTributariaResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SMIntegracaoTributaria.Common.Entities.Dto.Entities.v1.Common"> <CallbackURL>sample string 1</CallbackURL> </IntegracaoTributariaResponseDTO>