Árvore de páginas

Objetivo

A finalidade deste método é executar cálculo do pedido de venda por empresa, segmento e cliente.

Chamada

POST api/v2/sm_products/product-price-customer

Informações para Requisição (Request Information)

Parâmetros URI (URI Parameters)

Não há.

Parâmetros do Corpo (Body Parameters)

ProductPriceRecalculationDTO

ProductPriceCustomerDTO

Nome (Name)Descrição (Description)Tipo (Type)Informações Adicionais (Adittional Information)
last_update_date
stringNão há.
number_company
integerNão há.
number_payment_condition
integerNão há.
number_sales_table
stringNão há.
number_segment
integerNão há.
reg_number
stringNão há.
sales_table_number
stringTamanho da string: inclusive between 0 and 3
seq_customer
integerNão há.
seq_products
Collection of decimal numberNão há.
access_code
Collection of stringNão há.
_pageNo
integerNão há.
_pageSize
integerNão há.

Formatos para Requisição (Request Formats)

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á.

Informações para Resposta (Response Information)

Descrição do Recurso (Resource Description)

ProductPriceRecalculationResponseDTO

Collection of ProductPriceCustomerResponseDTO

Nome (Name)Descrição (Description)Tipo (Type)Informações Adicionais (Adittional Information)
code_ean
stringNão há.
date_end_promotion
dateNão há.
date_start_promotion
dateNão há.
lower_sale_price
decimal numberNão há.
normal_base_price
decimal numberNão há.
number_company
integerNão há.
number_segment
integerNão há.
packing
stringNão há.
packing_quantity
decimal numberNão há.
promotional_price
decimal numberNão há.
seq_customer
integerNão há.
seq_product
decimal numberNão há.
sales_table
Collection of SalesTableResponseDTONão há.

Formatos de Resposta (Response Formats)

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>