Árvore de páginas

Objetivo

A finalidade deste método é permitir consultar as empresas preferencias por clientes.

Chamada

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}

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

Parâmetros URI (URI Parameters)

Nome (Name)Descrição (Description)Tipo (Type)Informações Adicionais (Adittional Information)
reg_numberTo 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 – OptionalstringNone.
customer_sequenceCustomer Sequence – OptionalintegerNone.
last_update_dateLast Update Date between Peson, Customer and Customer Address – Formats: ddmmaaaahhmm or dd/mm/aaaa hh:mm – OptionalstringNone.
statusCustomer Status – acronyms: A (Active), I (Inactive) OptionalstringNone.
_pageNo
integerNão há.
_pageSize
integerNão há.

Parâmetros do Corpo (Body Parameters)

Não há.

Informações para Resposta (Response Information)

Códigos do Recurso (Response Codes)

  • OK (200)
  • NotFound (404)
  • BadRequest (400)
  • Unauthorized (401)
  • InternalServerError (500)

Descrição do Recurso (Resource Description)

CustomerPrefCompaniesResponseDTO – Customer data and Preferential Companies list

Collection of CustomerPrefCompaniesResponseDTO

Nome (Name)Descrição (Description)Tipo (Type)Informações Adicionais (Adittional Information)
reg_numberTo 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 – OptionalstringNone.
customer_sequenceCustomer Sequence – OptionalintegerNone.
last_update_dateLast Update Date between Peson, Customer and Customer Address – Formats: ddmmaaaahhmm or dd/mm/aaaa hh:mm – OptionaldateNone.
statusCustomer Status – acronyms: A (Active), I (Inactive), P (Prospect) – OptionalstringNone.
customer_pref_comp_listList of Customer Preferential Companies OptionalCollection of CustomerPrefCompaniesListResponseDTONone.

Formatos de Resposta (Response Formats)

application/json, text/json

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
      }
    ]
  }
]
application/xml, text/xml 

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>
  • Sem rótulos