A finalidade deste método é possibilitar a consulta de Impostos sobre Produtos.
POST api/v2/sm_products/tax
Não há.
TaxDTO
Nome (Name) | Descrição (Description) | Tipo (Type) | Informações Adicionais (Adittional Information) |
company_division_number | Company Division Number (Optional, but necessary for generating some taxes) | integer | Não há. |
number_company | Company Number | integer | Requerido |
number_customer | Destination Customer Number (Optional) | integer | Não há. |
products | Product Information | Collection of Product | Requerido |
reg_number_legal_entity | Legal Entity – Brazilian Registry of Corporate Taxpayers – (00.000.000/0001-00 or 00000000000000) – (Optional) | string | Não há. |
reg_number_physical_person | Physical Person – Individual Taxpayers – (000.000.000-00 or 00000000000) – (Optional) | string | Não há. |
state_customer | State Customer Acronym (Optional: if it is not passed, the client state will be used and if the client is not passed the state will be used) Valid States: AC, AL, AP, AM, BA, CE, DF, ES, GO, MA, MT, MS, MG, PA, PB, PR, PE, PI, RJ, RN, RS, RO, RR, SC, SP, SE, TO | string | Tamanho da String: inclusive between 0 and 2 |
type_tax | Type tax (Optional) – ED = Distributor Entry, EI = Industry Entry, EM = Microenterprise Entry, EX = Exterior Entry, SD = Output Return Distributor, SI = Industry Return Delivery, SM = Microenterprise Return Delivery, SN = Non Contributing Output Default – “SN” | string | Tamanho da String: inclusive between 0 and 2 |
application/json, text/json
Exemplo (Sample):
{
"company_division_number": 3,
"number_company": 4,
"number_customer": 5,
"products": [
{
"number_product": 1.0,
"packing_quantity": 2.1,
"sale_price": 3.1,
"quantity": 4.1
},
{
"number_product": 1.0,
"packing_quantity": 2.1,
"sale_price": 3.1,
"quantity": 4.1
}
],
"reg_number_legal_entity": "sample string 6",
"reg_number_physical_person": "sample string 7",
"state_customer": "sample string 8",
"type_tax": "sample string 9"
}
application/xml, text/xml
Exemplo (Sample):
<TaxDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.datacontract.org/2004/07/SMProductsV3.Business.DTOs.Tax">
<_pageNo xmlns="http://schemas.datacontract.org/2004/07/Kike.Web.Api.Dto">1</_pageNo>
<_pageSize xmlns="http://schemas.datacontract.org/2004/07/Kike.Web.Api.Dto">2</_pageSize>
<company_division_number>3</company_division_number>
<number_company>4</number_company>
<number_customer>5</number_customer>
<products>
<Product>
<number_product>1</number_product>
<packaging_quantity>2.1</packaging_quantity>
<quantity>4.1</quantity>
<sale_price>3.1</sale_price>
</Product>
<Product>
<number_product>1</number_product>
<packaging_quantity>2.1</packaging_quantity>
<quantity>4.1</quantity>
<sale_price>3.1</sale_price>
</Product>
</products>
<reg_number_legal_entity>sample string 6</reg_number_legal_entity>
<reg_number_physical_person>sample string 7</reg_number_physical_person>
<state>sample string 8</state>
<type_tax>sample string 9</type_tax>
</TaxDTO>
application/x-www-form-urlencoded
Exemplo (Sample):
Não há.
TaxResponseDTO – Lista de produtos de acordo com os dados de entrada
Collection of TaxResponseDTO
Nome (Name) | Descrição (Description) | Tipo (Type) | Informações Adicionais (Adittional Information) |
number_product | Product Number | decimal number | Não há. |
number_taxation | Number Taxation – Note: This Taxation is in Accordance with [SEQ_FAMILY] of Product and [NUMBER_DIVISION] of Company | integer | Não há. |
packing_quantity | Packing Quantity | decimal number | Não há. |
sale_price | Sale Price | decimal number | Não há. |
icms_st_value | ICMS ST | decimal number | Não há. |
ipi_value | IPI | decimal number | Não há. |
percent_icms | % ICMS | decimal number | Não há. |
percent_pis | % PIS | decimal number | Não há. |
percent_cofins | % COFINS | decimal number | Não há. |
type_tax | Type tax | string | Não há. |
application/json, text/json
Exemplo (Sample):
[
{
"number_product": 1.0,
"number_taxation": 2,
"packing_quantity": 3.1,
"sale_price": 4.1,
"icms_st_value": 1.1,
"ipi_value": 1.1,
"percent_icms": 1.1,
"percent_pis": 1.1,
"percent_cofins": 1.1,
"type_tax": "sample string 5"
},
{
"number_product": 1.0,
"number_taxation": 2,
"packing_quantity": 3.1,
"sale_price": 4.1,
"icms_st_value": 1.1,
"ipi_value": 1.1,
"percent_icms": 1.1,
"percent_pis": 1.1,
"percent_cofins": 1.1,
"type_tax": "sample string 5"
}
]
application/xml, text/xml
Exemplo (Sample):
<ArrayOfTaxResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.datacontract.org/2004/07/SMProductsV3.Business.DTOs.Tax">
<TaxResponseDTO>
<icms_st_value>1.1</icms_st_value>
<ipi_value>1.1</ipi_value>
<number_company>8</number_company>
<number_customer>9</number_customer>
<number_product>1</number_product>
<number_taxation>2</number_taxation>
<packing_quantity>3.1</packing_quantity>
<percent_cofins>1.1</percent_cofins>
<percent_icms>1.1</percent_icms>
<percent_pis>1.1</percent_pis>
<quantity>7.1</quantity>
<sale_price>4.1</sale_price>
<state>sample string 6</state>
<type_tax>sample string 5</type_tax>
</TaxResponseDTO>
<TaxResponseDTO>
<icms_st_value>1.1</icms_st_value>
<ipi_value>1.1</ipi_value>
<number_company>8</number_company>
<number_customer>9</number_customer>
<number_product>1</number_product>
<number_taxation>2</number_taxation>
<packing_quantity>3.1</packing_quantity>
<percent_cofins>1.1</percent_cofins>
<percent_icms>1.1</percent_icms>
<percent_pis>1.1</percent_pis>
<quantity>7.1</quantity>
<sale_price>4.1</sale_price>
<state>sample string 6</state>
<type_tax>sample string 5</type_tax>
</TaxResponseDTO>
</ArrayOfTaxResponseDTO>