Árvore de páginas

Objetivo

A finalidade deste método é, possibilitar a consulta referente a última compra do produto.

Chamada

GET api/v2/sm_products/product-purchase

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

Parâmetros URI (URI Parameters)

Nome (Name)Descrição (Description)Tipo (Type)Informações Adicionais (Adittional Information)
number_companyNumber Company – RequiredintegerNão há.
seq_productProduct Sequence – RequiredCollection of decimal numberRequerido
_pageNo
integerNão há.
_pageSize
integerNão há.

Parâmetros do Corpo (Body Parameters)

Não há.

Informações para Resposta (Response Information)

Descrição do Recurso (Resource Description)

ProductPurchaseResponseDTO – Lista da ultima compra do produto

Collection of ProductPurchaseResponseDTO

Nome (Name)Descrição (Description)Tipo (Type)Informações Adicionais (Adittional Information)
base_calculation_icmsICMS Calculation Base – (ICMS = Tax on the Movement of Goods and Services)decimal numberNão há.
date_last_inputLast Input DatedateNão há.
date_last_purchaseLast Purchase DatedateNão há.
invoice_numberInvoice NumberintegerNão há.
general_operation_codeGeneral Operation CodeintegerNão há.
subsidiary_companySubsidiary Company NumberintegerNão há.
percent_aliquot_icmsPercentage of the ICMS Aliquot – (ICMS = Tax on the Movement of Goods and Services)decimal numberNão há.
seq_invoiceInvoice SequenceintegerNão há.
seq_productProduct Sequencedecimal numberNão há.
value_freightValue of Freight Knowledgedecimal numberNão há.
value_icms_fobPercentage of ICMS on FOB Freight – (ICMS = Tax on the Movement of Goods and Services, FOB = Free on Board)decimal numberNão há.
value_icms_stValue of Tax Situation – (ST = Tax Situation)decimal numberNão há.
value_itemValue of Itemdecimal numberNão há.
value_total_itemValue Total of Itemdecimal numberNão há.

Formatos de Resposta (Response Formats)

application/json, text/json

Exemplo (Sample):

[
  {
    "base_calculation_icms": 1.1,
    "date_last_input": "2019-10-15T17:36:31.534459-03:00",
    "date_last_purchase": "2019-10-15T17:36:31.534459-03:00",
    "invoice_number": 2,
    "general_operation_code": 3,
    "subsidiary_company": 4,
    "percent_aliquot_icms": 5.1,
    "seq_invoice": 6,
    "seq_product": 7.0,
    "value_freight": 1.1,
    "value_icms_fob": 1.1,
    "value_icms_st": 8.1,
    "value_item": 9.1,
    "value_total_item": 1.1
  },
  {
    "base_calculation_icms": 1.1,
    "date_last_input": "2019-10-15T17:36:31.534459-03:00",
    "date_last_purchase": "2019-10-15T17:36:31.534459-03:00",
    "invoice_number": 2,
    "general_operation_code": 3,
    "subsidiary_company": 4,
    "percent_aliquot_icms": 5.1,
    "seq_invoice": 6,
    "seq_product": 7.0,
    "value_freight": 1.1,
    "value_icms_fob": 1.1,
    "value_icms_st": 8.1,
    "value_item": 9.1,
    "value_total_item": 1.1
  }
]

application/xml, text/xml

Exemplo (Sample):

<ArrayOfProductPurchaseResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SMProductsV3.Business.DTOs.Products">
  <ProductPurchaseResponseDTO>
    <BASE_CALCULATION_ICMS>1.1</BASE_CALCULATION_ICMS>
    <DATE_LAST_INPUT>2019-10-15T17:36:31.534459-03:00</DATE_LAST_INPUT>
    <DATE_LAST_PURCHASE>2019-10-15T17:36:31.534459-03:00</DATE_LAST_PURCHASE>
    <GENERAL_OPERATION_CODE>3</GENERAL_OPERATION_CODE>
    <INVOICE_NUMBER>2</INVOICE_NUMBER>
    <NUMBER_COMPANY>4</NUMBER_COMPANY>
    <PERCENT_ALIQUOT_ICMS>5.1</PERCENT_ALIQUOT_ICMS>
    <SEQ_INVOICE>6</SEQ_INVOICE>
    <SEQ_PRODUCT>7</SEQ_PRODUCT>
    <VALUE_FREIGHT>1.1</VALUE_FREIGHT>
    <VALUE_ICMS_FOB>1.1</VALUE_ICMS_FOB>
    <VALUE_ICMS_ST>8.1</VALUE_ICMS_ST>
    <VALUE_ITEM>9.1</VALUE_ITEM>
    <VALUE_TOTAL_ITEM>1.1</VALUE_TOTAL_ITEM>
  </ProductPurchaseResponseDTO>
  <ProductPurchaseResponseDTO>
    <BASE_CALCULATION_ICMS>1.1</BASE_CALCULATION_ICMS>
    <DATE_LAST_INPUT>2019-10-15T17:36:31.534459-03:00</DATE_LAST_INPUT>
    <DATE_LAST_PURCHASE>2019-10-15T17:36:31.534459-03:00</DATE_LAST_PURCHASE>
    <GENERAL_OPERATION_CODE>3</GENERAL_OPERATION_CODE>
    <INVOICE_NUMBER>2</INVOICE_NUMBER>
    <NUMBER_COMPANY>4</NUMBER_COMPANY>
    <PERCENT_ALIQUOT_ICMS>5.1</PERCENT_ALIQUOT_ICMS>
    <SEQ_INVOICE>6</SEQ_INVOICE>
    <SEQ_PRODUCT>7</SEQ_PRODUCT>
    <VALUE_FREIGHT>1.1</VALUE_FREIGHT>
    <VALUE_ICMS_FOB>1.1</VALUE_ICMS_FOB>
    <VALUE_ICMS_ST>8.1</VALUE_ICMS_ST>
    <VALUE_ITEM>9.1</VALUE_ITEM>
    <VALUE_TOTAL_ITEM>1.1</VALUE_TOTAL_ITEM>
  </ProductPurchaseResponseDTO>
</ArrayOfProductPurchaseResponseDTO>