A finalidade deste método é executar cálculo do pedido de venda por empresa, segmento e cliente.
POST api/v2/sm_products/product-price-customer
Não há.
ProductPriceRecalculationDTO
ProductPriceCustomerDTO
Nome (Name) | Descrição (Description) | Tipo (Type) | Informações Adicionais (Adittional Information) |
last_update_date | string | Não há. | |
number_company | integer | Não há. | |
number_payment_condition | integer | Não há. | |
number_sales_table | string | Não há. | |
number_segment | integer | Não há. | |
reg_number | string | Não há. | |
sales_table_number | string | Tamanho da string: inclusive between 0 and 3 | |
seq_customer | integer | Não há. | |
seq_products | Collection of decimal number | Não há. | |
access_code | Collection of string | Não há. | |
_pageNo | integer | Não há. | |
_pageSize | integer | Não há. |
application/json, text/json
Exemplo (Sample):
{
"last_update_date": "sample string 1",
"number_company": 1,
"number_payment_condition": 1,
"number_sales_table": "sample string 2",
"number_segment": 1,
"reg_number": "sample string 3",
"sales_table_number": "sample string 4",
"seq_customer": 5,
"seq_products": [
1.0,
1.0
],
"access_code": [
"sample string 1",
"sample string 2"
],
"_pageNo": 6,
"_pageSize": 7
}
application/xml, text/xml
Exemplo (Sample):
<ProductPriceCustomerDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Consinco.SM.API.Entities.Entities.v2.Products">
<_pageNo xmlns="http://schemas.datacontract.org/2004/07/Kike.Web.Api.Dto">6</_pageNo>
<_pageSize xmlns="http://schemas.datacontract.org/2004/07/Kike.Web.Api.Dto">7</_pageSize>
<ACCESS_CODES xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ACCESS_CODES>
<LAST_UPDATE_DATE>sample string 1</LAST_UPDATE_DATE>
<NUMBER_COMPANY>1</NUMBER_COMPANY>
<NUMBER_PAYMENT_CONDITION>1</NUMBER_PAYMENT_CONDITION>
<NUMBER_SALES_TABLE>sample string 2</NUMBER_SALES_TABLE>
<NUMBER_SEGMENT>1</NUMBER_SEGMENT>
<REG_NUMBER>sample string 3</REG_NUMBER>
<SALES_TABLE_NUMBER>sample string 4</SALES_TABLE_NUMBER>
<SEQ_CUSTOMER>5</SEQ_CUSTOMER>
<SEQ_PRODUCTS xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:decimal>1</d2p1:decimal>
<d2p1:decimal>1</d2p1:decimal>
</SEQ_PRODUCTS>
</ProductPriceCustomerDTO>
application/x-www-form-urlencoded
Exemplo (Sample):
Não há.
ProductPriceRecalculationResponseDTO
Collection of ProductPriceCustomerResponseDTO
Nome (Name) | Descrição (Description) | Tipo (Type) | Informações Adicionais (Adittional Information) |
code_ean | string | Não há. | |
date_end_promotion | date | Não há. | |
date_start_promotion | date | Não há. | |
lower_sale_price | decimal number | Não há. | |
normal_base_price | decimal number | Não há. | |
number_company | integer | Não há. | |
number_segment | integer | Não há. | |
packing | string | Não há. | |
packing_quantity | decimal number | Não há. | |
promotional_price | decimal number | Não há. | |
seq_customer | integer | Não há. | |
seq_product | decimal number | Não há. | |
sales_table | Collection of SalesTableResponseDTO | Não há. |
application/json, text/json
Exemplo (Sample):
[
{
"code_ean": "sample string 4",
"date_end_promotion": "2019-10-23T14:28:10.0918912-03:00",
"date_start_promotion": "2019-10-23T14:28:10.0918912-03:00",
"lower_sale_price": 1.0,
"normal_base_price": 1.0,
"number_company": 1,
"number_segment": 1,
"packing": "sample string 5",
"packing_quantity": 1.0,
"promotional_price": 1.0,
"seq_customer": 6,
"seq_product": 7.0,
"sales_table": [
{
"description_sales_table": "sample string 1",
"number_sales_table": "sample string 2",
"payment_condition": [
{
"description_payment_condition": "sample string 1",
"number_payment_condition": 2,
"price": 1.0
},
{
"description_payment_condition": "sample string 1",
"number_payment_condition": 2,
"price": 1.0
}
]
},
{
"description_sales_table": "sample string 1",
"number_sales_table": "sample string 2",
"payment_condition": [
{
"description_payment_condition": "sample string 1",
"number_payment_condition": 2,
"price": 1.0
},
{
"description_payment_condition": "sample string 1",
"number_payment_condition": 2,
"price": 1.0
}
]
}
]
},
{
"code_ean": "sample string 4",
"date_end_promotion": "2019-10-23T14:28:10.0918912-03:00",
"date_start_promotion": "2019-10-23T14:28:10.0918912-03:00",
"lower_sale_price": 1.0,
"normal_base_price": 1.0,
"number_company": 1,
"number_segment": 1,
"packing": "sample string 5",
"packing_quantity": 1.0,
"promotional_price": 1.0,
"seq_customer": 6,
"seq_product": 7.0,
"sales_table": [
{
"description_sales_table": "sample string 1",
"number_sales_table": "sample string 2",
"payment_condition": [
{
"description_payment_condition": "sample string 1",
"number_payment_condition": 2,
"price": 1.0
},
{
"description_payment_condition": "sample string 1",
"number_payment_condition": 2,
"price": 1.0
}
]
},
{
"description_sales_table": "sample string 1",
"number_sales_table": "sample string 2",
"payment_condition": [
{
"description_payment_condition": "sample string 1",
"number_payment_condition": 2,
"price": 1.0
},
{
"description_payment_condition": "sample string 1",
"number_payment_condition": 2,
"price": 1.0
}
]
}
]
}
]
application/xml, text/xml
Exemplo (Sample):
<ArrayOfProductPriceCustomerResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Consinco.SM.API.Entities.Entities.v2.Products">
<ProductPriceCustomerResponseDTO>
<CODE_EAN>sample string 4</CODE_EAN>
<COUNT>1</COUNT>
<DATE_END_PROMOTION>2019-10-23T14:28:10.0918912-03:00</DATE_END_PROMOTION>
<DATE_PRICE_VALIDATITON>2019-10-23T14:28:10.0918912-03:00</DATE_PRICE_VALIDATITON>
<DATE_START_PROMOTION>2019-10-23T14:28:10.0918912-03:00</DATE_START_PROMOTION>
<DESCRIPTION_PAYMENT_CONDITION>sample string 1</DESCRIPTION_PAYMENT_CONDITION>
<DESCRIPTION_SALES_TABLE>sample string 2</DESCRIPTION_SALES_TABLE>
<LOWER_SALE_PRICE>1</LOWER_SALE_PRICE>
<NORMAL_BASE_PRICE>1</NORMAL_BASE_PRICE>
<NUMBER_COMPANY>1</NUMBER_COMPANY>
<NUMBER_PAYMENT_CONDITION>1</NUMBER_PAYMENT_CONDITION>
<NUMBER_SALES_TABLE>sample string 3</NUMBER_SALES_TABLE>
<NUMBER_SEGMENT>1</NUMBER_SEGMENT>
<PACKING>sample string 5</PACKING>
<PACKING_QUANTITY>1</PACKING_QUANTITY>
<PRICE>1</PRICE>
<PROMOTIONAL_PRICE>1</PROMOTIONAL_PRICE>
<SEQ_CUSTOMER>6</SEQ_CUSTOMER>
<SEQ_PRODUCT>7</SEQ_PRODUCT>
<SalesTableResponseDTO>
<SalesTableResponseDTO>
<DESCRIPTION_SALES_TABLE>sample string 1</DESCRIPTION_SALES_TABLE>
<NUMBER_SALES_TABLE>sample string 2</NUMBER_SALES_TABLE>
<PaymentConditionResponseDTO>
<PaymentConditionResponseDTO>
<DESCRIPTION_PAYMENT_CONDITION>sample string 1</DESCRIPTION_PAYMENT_CONDITION>
<NUMBER_PAYMENT_CONDITION>2</NUMBER_PAYMENT_CONDITION>
<PRICE>1</PRICE>
</PaymentConditionResponseDTO>
<PaymentConditionResponseDTO>
<DESCRIPTION_PAYMENT_CONDITION>sample string 1</DESCRIPTION_PAYMENT_CONDITION>
<NUMBER_PAYMENT_CONDITION>2</NUMBER_PAYMENT_CONDITION>
<PRICE>1</PRICE>
</PaymentConditionResponseDTO>
</PaymentConditionResponseDTO>
</SalesTableResponseDTO>
<SalesTableResponseDTO>
<DESCRIPTION_SALES_TABLE>sample string 1</DESCRIPTION_SALES_TABLE>
<NUMBER_SALES_TABLE>sample string 2</NUMBER_SALES_TABLE>
<PaymentConditionResponseDTO>
<PaymentConditionResponseDTO>
<DESCRIPTION_PAYMENT_CONDITION>sample string 1</DESCRIPTION_PAYMENT_CONDITION>
<NUMBER_PAYMENT_CONDITION>2</NUMBER_PAYMENT_CONDITION>
<PRICE>1</PRICE>
</PaymentConditionResponseDTO>
<PaymentConditionResponseDTO>
<DESCRIPTION_PAYMENT_CONDITION>sample string 1</DESCRIPTION_PAYMENT_CONDITION>
<NUMBER_PAYMENT_CONDITION>2</NUMBER_PAYMENT_CONDITION>
<PRICE>1</PRICE>
</PaymentConditionResponseDTO>
</PaymentConditionResponseDTO>
</SalesTableResponseDTO>
</SalesTableResponseDTO>
</ProductPriceCustomerResponseDTO>
<ProductPriceCustomerResponseDTO>
<CODE_EAN>sample string 4</CODE_EAN>
<COUNT>1</COUNT>
<DATE_END_PROMOTION>2019-10-23T14:28:10.0918912-03:00</DATE_END_PROMOTION>
<DATE_PRICE_VALIDATITON>2019-10-23T14:28:10.0918912-03:00</DATE_PRICE_VALIDATITON>
<DATE_START_PROMOTION>2019-10-23T14:28:10.0918912-03:00</DATE_START_PROMOTION>
<DESCRIPTION_PAYMENT_CONDITION>sample string 1</DESCRIPTION_PAYMENT_CONDITION>
<DESCRIPTION_SALES_TABLE>sample string 2</DESCRIPTION_SALES_TABLE>
<LOWER_SALE_PRICE>1</LOWER_SALE_PRICE>
<NORMAL_BASE_PRICE>1</NORMAL_BASE_PRICE>
<NUMBER_COMPANY>1</NUMBER_COMPANY>
<NUMBER_PAYMENT_CONDITION>1</NUMBER_PAYMENT_CONDITION>
<NUMBER_SALES_TABLE>sample string 3</NUMBER_SALES_TABLE>
<NUMBER_SEGMENT>1</NUMBER_SEGMENT>
<PACKING>sample string 5</PACKING>
<PACKING_QUANTITY>1</PACKING_QUANTITY>
<PRICE>1</PRICE>
<PROMOTIONAL_PRICE>1</PROMOTIONAL_PRICE>
<SEQ_CUSTOMER>6</SEQ_CUSTOMER>
<SEQ_PRODUCT>7</SEQ_PRODUCT>
<SalesTableResponseDTO>
<SalesTableResponseDTO>
<DESCRIPTION_SALES_TABLE>sample string 1</DESCRIPTION_SALES_TABLE>
<NUMBER_SALES_TABLE>sample string 2</NUMBER_SALES_TABLE>
<PaymentConditionResponseDTO>
<PaymentConditionResponseDTO>
<DESCRIPTION_PAYMENT_CONDITION>sample string 1</DESCRIPTION_PAYMENT_CONDITION>
<NUMBER_PAYMENT_CONDITION>2</NUMBER_PAYMENT_CONDITION>
<PRICE>1</PRICE>
</PaymentConditionResponseDTO>
<PaymentConditionResponseDTO>
<DESCRIPTION_PAYMENT_CONDITION>sample string 1</DESCRIPTION_PAYMENT_CONDITION>
<NUMBER_PAYMENT_CONDITION>2</NUMBER_PAYMENT_CONDITION>
<PRICE>1</PRICE>
</PaymentConditionResponseDTO>
</PaymentConditionResponseDTO>
</SalesTableResponseDTO>
<SalesTableResponseDTO>
<DESCRIPTION_SALES_TABLE>sample string 1</DESCRIPTION_SALES_TABLE>
<NUMBER_SALES_TABLE>sample string 2</NUMBER_SALES_TABLE>
<PaymentConditionResponseDTO>
<PaymentConditionResponseDTO>
<DESCRIPTION_PAYMENT_CONDITION>sample string 1</DESCRIPTION_PAYMENT_CONDITION>
<NUMBER_PAYMENT_CONDITION>2</NUMBER_PAYMENT_CONDITION>
<PRICE>1</PRICE>
</PaymentConditionResponseDTO>
<PaymentConditionResponseDTO>
<DESCRIPTION_PAYMENT_CONDITION>sample string 1</DESCRIPTION_PAYMENT_CONDITION>
<NUMBER_PAYMENT_CONDITION>2</NUMBER_PAYMENT_CONDITION>
<PRICE>1</PRICE>
</PaymentConditionResponseDTO>
</PaymentConditionResponseDTO>
</SalesTableResponseDTO>
</SalesTableResponseDTO>
</ProductPriceCustomerResponseDTO>
</ArrayOfProductPriceCustomerResponseDTO>