A finalidade deste método é permitir consultar as empresas preferencias por clientes.
GET api/v1/sm/customer-preferential-companies?REG_NUMBER={REG_NUMBER}&CUSTOMER_SEQUENCE={CUSTOMER_SEQUENCE}&LAST_UPDATE_DATE={LAST_UPDATE_DATE}&STATUS={STATUS}&_pageNo={_pageNo}&_pageSize={_pageSize}
Nome (Name) | Descrição (Description) | Tipo (Type) | Informações Adicionais (Adittional Information) |
reg_number | To Legal Entity: Brazilian Registry of Corporate Taxpayers (CNPJ) – Formats: 00000000000000 or 00.000.000/0001-00 – To Physical Person: Individual Taxpayers (CPF) – Formats: 00000000000 or 000.000.000-00 – Optional | string | None. |
customer_sequence | Customer Sequence – Optional | integer | None. |
last_update_date | Last Update Date between Peson, Customer and Customer Address – Formats: ddmmaaaahhmm or dd/mm/aaaa hh:mm – Optional | string | None. |
status | Customer Status – acronyms: A (Active), I (Inactive) Optional | string | None. |
_pageNo | integer | Não há. | |
_pageSize | integer | Não há. |
Não há.
CustomerPrefCompaniesResponseDTO – Customer data and Preferential Companies list
Collection of CustomerPrefCompaniesResponseDTO
Nome (Name) | Descrição (Description) | Tipo (Type) | Informações Adicionais (Adittional Information) |
reg_number | To Legal Entity: Brazilian Registry of Corporate Taxpayers (CNPJ) – Formats: 00000000000000 or 00.000.000/0001-00 – To Physical Person: Individual Taxpayers (CPF) – Formats: 00000000000 or 000.000.000-00 – Optional | string | None. |
customer_sequence | Customer Sequence – Optional | integer | None. |
last_update_date | Last Update Date between Peson, Customer and Customer Address – Formats: ddmmaaaahhmm or dd/mm/aaaa hh:mm – Optional | date | None. |
status | Customer Status – acronyms: A (Active), I (Inactive), P (Prospect) – Optional | string | None. |
customer_pref_comp_list | List of Customer Preferential Companies Optional | Collection of CustomerPrefCompaniesListResponseDTO | None. |
Exemplo (Sample):
[ { "reg_number": "sample string 1", "customer_sequence": 2, "last_update_date": "2020-05-07T15:53:58.3282479-03:00", "status": "sample string 3", "customer_pref_comp_list": [ { "company_number": 1, "preferential_sequence": 1 }, { "company_number": 1, "preferential_sequence": 1 } ] }, { "reg_number": "sample string 1", "customer_sequence": 2, "last_update_date": "2020-05-07T15:53:58.3282479-03:00", "status": "sample string 3", "customer_pref_comp_list": [ { "company_number": 1, "preferential_sequence": 1 }, { "company_number": 1, "preferential_sequence": 1 } ] } ]
Exemplo (Sample):
<ArrayOfCustomerPrefCompaniesResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Consinco.SM.Api.Entities.Entities.v1.Customer"> <CustomerPrefCompaniesResponseDTO> <CUSTOMER_PREF_COMP_LIST> <CustomerPrefCompaniesListResponseDTO> <COMPANY_NUMBER>1</COMPANY_NUMBER> <PREFERENTIAL_SEQUENCE>1</PREFERENTIAL_SEQUENCE> </CustomerPrefCompaniesListResponseDTO> <CustomerPrefCompaniesListResponseDTO> <COMPANY_NUMBER>1</COMPANY_NUMBER> <PREFERENTIAL_SEQUENCE>1</PREFERENTIAL_SEQUENCE> </CustomerPrefCompaniesListResponseDTO> </CUSTOMER_PREF_COMP_LIST> <CUSTOMER_SEQUENCE>2</CUSTOMER_SEQUENCE> <LAST_UPDATE_DATE>2020-05-07T15:53:58.3282479-03:00</LAST_UPDATE_DATE> <REG_NUMBER>sample string 1</REG_NUMBER> <STATUS>sample string 3</STATUS> </CustomerPrefCompaniesResponseDTO> <CustomerPrefCompaniesResponseDTO> <CUSTOMER_PREF_COMP_LIST> <CustomerPrefCompaniesListResponseDTO> <COMPANY_NUMBER>1</COMPANY_NUMBER> <PREFERENTIAL_SEQUENCE>1</PREFERENTIAL_SEQUENCE> </CustomerPrefCompaniesListResponseDTO> <CustomerPrefCompaniesListResponseDTO> <COMPANY_NUMBER>1</COMPANY_NUMBER> <PREFERENTIAL_SEQUENCE>1</PREFERENTIAL_SEQUENCE> </CustomerPrefCompaniesListResponseDTO> </CUSTOMER_PREF_COMP_LIST> <CUSTOMER_SEQUENCE>2</CUSTOMER_SEQUENCE> <LAST_UPDATE_DATE>2020-05-07T15:53:58.3282479-03:00</LAST_UPDATE_DATE> <REG_NUMBER>sample string 1</REG_NUMBER> <STATUS>sample string 3</STATUS> </CustomerPrefCompaniesResponseDTO> </ArrayOfCustomerPrefCompaniesResponseDTO>