A finalidade deste método é, possibilitar a consulta dos custos associados aos produtos.
GET api/v2/sm_products/product-cost
Nome (Name) | Descrição (Description) | Tipo (Type) | Informações Adicionais (Adittional Information) |
number_company | Number Company – Required | integer | Não há. |
seq_product | Product Sequence – Required | Collection of decimal number | Requerido |
_pageNo | integer | Não há. | |
_pageSize | integer | Não há. |
Não há.
ProductCostResponseDTO – Lista custos dos produtos
Collection of ProductCostResponseDTO
Nome (Name) | Descrição (Description) | Tipo (Type) | Informações Adicionais (Adittional Information) |
fiscal_cost | Fiscal Cost | decimal number | Não há. |
invoice_cost | Invoice Cost | decimal number | Não há. |
indicates_increase_cost_relationed_product | Indicate if will be used extra in the cost of the relationed product. – N – No, S – Yes | string | Não há. |
maximum_sales_price_company | Maximum Sales Price by Company | decimal number | Não há. |
net_cost_value | Net Cost Value | decimal number | Não há. |
percentage_increase_cost_relative | Percentage of extra cost relative | decimal number | Não há. |
seq_product | Product sequence | decimal number | Não há. |
seq_product_base | Sequence base product | decimal number | Não há. |
standard_sales_packaging | Standard Sales Packaging | decimal number | Não há. |
normal_margin | Standard Sales Packaging | string | Não há. |
promo_margin | Standard Sales Packaging | string | Não há. |
Exemplo (Sample):
[
{
"fiscal_cost": 1.0,
"invoice_cost": 1.0,
"indicates_increase_cost_relationed_product": "sample string 1",
"maximum_sales_price_company": 1.1,
"net_cost_value": 1.0,
"percentage_increase_cost_relative": 1.0,
"seq_product": 2.0,
"seq_product_base": 1.0,
"standard_sales_packaging": 3.0,
"normal_margin": "sample string 4",
"promo_margin": "sample string 5"
},
{
"fiscal_cost": 1.0,
"invoice_cost": 1.0,
"indicates_increase_cost_relationed_product": "sample string 1",
"maximum_sales_price_company": 1.1,
"net_cost_value": 1.0,
"percentage_increase_cost_relative": 1.0,
"seq_product": 2.0,
"seq_product_base": 1.0,
"standard_sales_packaging": 3.0,
"normal_margin": "sample string 4",
"promo_margin": "sample string 5"
}
]
Exemplo (Sample):
<ArrayOfProductCostResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.datacontract.org/2004/07/SMProductsV3.Business.DTOs.Products">
<ProductCostResponseDTO>
<FISCAL_COST>1</FISCAL_COST>
<INDICATES_INCREASE_COST_RELATIONED_PRODUCT>sample string 1</INDICATES_INCREASE_COST_RELATIONED_PRODUCT>
<INVOICE_COST>1</INVOICE_COST>
<MAXIMUM_SALES_PRICE_COMPANY>1.1</MAXIMUM_SALES_PRICE_COMPANY>
<NET_COST_VALUE>1</NET_COST_VALUE>
<NORMAL_MARGIN>sample string 4</NORMAL_MARGIN>
<PERCENTAGE_INCREASE_COST_RELATIVE>1</PERCENTAGE_INCREASE_COST_RELATIVE>
<PROMO_MARGIN>sample string 5</PROMO_MARGIN>
<SEQ_PRODUCT>2</SEQ_PRODUCT>
<SEQ_PRODUCT_BASE>1</SEQ_PRODUCT_BASE>
<STANDARD_SALES_PACKAGING>3</STANDARD_SALES_PACKAGING>
</ProductCostResponseDTO>
<ProductCostResponseDTO>
<FISCAL_COST>1</FISCAL_COST>
<INDICATES_INCREASE_COST_RELATIONED_PRODUCT>sample string 1</INDICATES_INCREASE_COST_RELATIONED_PRODUCT>
<INVOICE_COST>1</INVOICE_COST>
<MAXIMUM_SALES_PRICE_COMPANY>1.1</MAXIMUM_SALES_PRICE_COMPANY>
<NET_COST_VALUE>1</NET_COST_VALUE>
<NORMAL_MARGIN>sample string 4</NORMAL_MARGIN>
<PERCENTAGE_INCREASE_COST_RELATIVE>1</PERCENTAGE_INCREASE_COST_RELATIVE>
<PROMO_MARGIN>sample string 5</PROMO_MARGIN>
<SEQ_PRODUCT>2</SEQ_PRODUCT>
<SEQ_PRODUCT_BASE>1</SEQ_PRODUCT_BASE>
<STANDARD_SALES_PACKAGING>3</STANDARD_SALES_PACKAGING>
</ProductCostResponseDTO>
</ArrayOfProductCostResponseDTO>