A finalidade deste método é, possibilitar a consulta referente a última compra do produto.
GET api/v2/sm_products/product-purchase
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á.
ProductPurchaseResponseDTO – Lista da ultima compra do produto
Collection of ProductPurchaseResponseDTO
Nome (Name) | Descrição (Description) | Tipo (Type) | Informações Adicionais (Adittional Information) |
base_calculation_icms | ICMS Calculation Base – (ICMS = Tax on the Movement of Goods and Services) | decimal number | Não há. |
date_last_input | Last Input Date | date | Não há. |
date_last_purchase | Last Purchase Date | date | Não há. |
invoice_number | Invoice Number | integer | Não há. |
general_operation_code | General Operation Code | integer | Não há. |
subsidiary_company | Subsidiary Company Number | integer | Não há. |
percent_aliquot_icms | Percentage of the ICMS Aliquot – (ICMS = Tax on the Movement of Goods and Services) | decimal number | Não há. |
seq_invoice | Invoice Sequence | integer | Não há. |
seq_product | Product Sequence | decimal number | Não há. |
value_freight | Value of Freight Knowledge | decimal number | Não há. |
value_icms_fob | Percentage of ICMS on FOB Freight – (ICMS = Tax on the Movement of Goods and Services, FOB = Free on Board) | decimal number | Não há. |
value_icms_st | Value of Tax Situation – (ST = Tax Situation) | decimal number | Não há. |
value_item | Value of Item | decimal number | Não há. |
value_total_item | Value Total of Item | decimal number | Não há. |
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 } ]
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>