A finalidade deste método é, possibilitar a consulta de fornecedores dos produtos.
GET api/v2/sm_products/suppliers
Nome (Name) | Descrição (Description) | Tipo (Type) | Informações Adicionais (Adittional Information) |
deleted | Indicates if return deleted records. – Optional – (N = No, S = Yes) – Default = “N” Note: if “N”, will be showed just deleted records; if “S”, will be showed just active records. | string | Não há. |
exclusion_date | Last Exclusion Date – (dd/mm/aaaa or ddmmaaaa) – Optional. Valid just when parameter “DELETED” it’s = “S”. | string | Não há. |
last_update_date | Last Update Date – (Optional) – (dd/mm/aaaa or ddmmaaaa) | string | 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á.
SupplierResponseDTO – List of Suppliers
Collection of SupplierResponseDTO
Nome (Name) | Descrição (Description) | Tipo (Type) | Informações Adicionais (Adittional Information) |
main_supplier | Indicates if is Main Supplier | string | Não há. |
name | Name of Supplier | string | Não há. |
name_trading | Trading Name | string | Não há. |
reg_number | Brazilian Registry of Corporate Taxpayers | integer | Não há. |
reg_number_dig | Digit of Brazilian Registry of Corporate Taxpayers | integer | Não há. |
resale_supplier | Indicates if supplier is reseller – N = No, S = Yes | string | Não há. |
seq_family | Product Sequence | decimal number | Não há. |
seq_product | Product Sequence | decimal number | Não há. |
seq_supplier | Supplier Sequence | decimal number | Não há. |
status | Indicates if supllier is blocked – A = Not Blocked, I = Blocked | string | Não há. |
type_supplier | Type of Supplier – D = Distributor, I = Industry | string | Não há. |
Exemplo (Sample):
[ { "main_supplier": "sample string 2", "name": "sample string 3", "name_trading": "sample string 4", "reg_number": 1, "reg_number_dig": 1, "resale_supplier": "sample string 5", "seq_family": 6.0, "seq_product": 7.0, "seq_supplier": 8.0, "status": "sample string 9", "type_supplier": "sample string 10" }, { "main_supplier": "sample string 2", "name": "sample string 3", "name_trading": "sample string 4", "reg_number": 1, "reg_number_dig": 1, "resale_supplier": "sample string 5", "seq_family": 6.0, "seq_product": 7.0, "seq_supplier": 8.0, "status": "sample string 9", "type_supplier": "sample string 10" } ]
Exemplo (Sample):
<ArrayOfSupplierResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SMProductsV3.Business.DTOs.Suppliers"> <SupplierResponseDTO> <DATE_UPDATE_FAMILY>2019-10-16T18:08:24.8624742-03:00</DATE_UPDATE_FAMILY> <DATE_UPDATE_FAMILY_SUPPLIER>2019-10-16T18:08:24.8624742-03:00</DATE_UPDATE_FAMILY_SUPPLIER> <DATE_UPDATE_PERSON>2019-10-16T18:08:24.8624742-03:00</DATE_UPDATE_PERSON> <DATE_UPDATE_PRODUCT>2019-10-16T18:08:24.8624742-03:00</DATE_UPDATE_PRODUCT> <DATE_UPDATE_SUPPLIER>2019-10-16T18:08:24.8624742-03:00</DATE_UPDATE_SUPPLIER> <EXCLUSION_DATE>2019-10-16T18:08:24.8624742-03:00</EXCLUSION_DATE> <MAIN_SUPPLIER>sample string 2</MAIN_SUPPLIER> <NAME>sample string 3</NAME> <NAME_TRADING>sample string 4</NAME_TRADING> <REG_NUMBER>1</REG_NUMBER> <REG_NUMBER_DIG>1</REG_NUMBER_DIG> <RESALE_SUPPLIER>sample string 5</RESALE_SUPPLIER> <SEQ_FAMILY>6</SEQ_FAMILY> <SEQ_PRODUCT>7</SEQ_PRODUCT> <SEQ_SUPPLIER>8</SEQ_SUPPLIER> <STATUS>sample string 9</STATUS> <TYPE_SUPPLIER>sample string 10</TYPE_SUPPLIER> </SupplierResponseDTO> <SupplierResponseDTO> <DATE_UPDATE_FAMILY>2019-10-16T18:08:24.8624742-03:00</DATE_UPDATE_FAMILY> <DATE_UPDATE_FAMILY_SUPPLIER>2019-10-16T18:08:24.8624742-03:00</DATE_UPDATE_FAMILY_SUPPLIER> <DATE_UPDATE_PERSON>2019-10-16T18:08:24.8624742-03:00</DATE_UPDATE_PERSON> <DATE_UPDATE_PRODUCT>2019-10-16T18:08:24.8624742-03:00</DATE_UPDATE_PRODUCT> <DATE_UPDATE_SUPPLIER>2019-10-16T18:08:24.8624742-03:00</DATE_UPDATE_SUPPLIER> <EXCLUSION_DATE>2019-10-16T18:08:24.8624742-03:00</EXCLUSION_DATE> <MAIN_SUPPLIER>sample string 2</MAIN_SUPPLIER> <NAME>sample string 3</NAME> <NAME_TRADING>sample string 4</NAME_TRADING> <REG_NUMBER>1</REG_NUMBER> <REG_NUMBER_DIG>1</REG_NUMBER_DIG> <RESALE_SUPPLIER>sample string 5</RESALE_SUPPLIER> <SEQ_FAMILY>6</SEQ_FAMILY> <SEQ_PRODUCT>7</SEQ_PRODUCT> <SEQ_SUPPLIER>8</SEQ_SUPPLIER> <STATUS>sample string 9</STATUS> <TYPE_SUPPLIER>sample string 10</TYPE_SUPPLIER> </SupplierResponseDTO> </ArrayOfSupplierResponseDTO>