Utilizando o RMSService - CRM/REST

No serviço Customers temos os seguintes endpoints 

  1. GetCustomers
  2. GetCustomer(ID)
  3. PostCustomer(CustomerDTO)
  4. PutCustomer(id, CustomerDTO


1 - GetCustomers

Filtro para este endpoint

integer
integer
long
integer - 1 = PF / 2 = PJ

Exemplo de retorno no Get: 

RMS/RMSServices/CRM/Customers?Type=1
{
  "totvs_transaction_id": 0,
  "total": 17,
  "hasNext": false,
  "items": [
    {
      "ID": 99711427,
      "Name": "EDUARDO FRAGA                           ",
      "CPF": 81457944049,
      "RG": 0,
      "CNPJ": 0,
      "StateInscription": 0,
      "BirthPlace": "                              ",
      "Type": 1,
      "BirthDate": "1879-02-22T00:00:00",
      "Email": "                                        ",
      "Gender": 2,
      "Password": null,
      "Phones": [
        {
          "ID": "99711427-1",
          "CustomerID": 99711427,
          "Type": 3,
          "CountryCode": 0,
          "AreaCode": 0,
          "Number": 0,
          "Extension": 0,
          "Nodes": "                                                  "
        }
      ],
      "Addresses": [
        {
          "ID": "99711427-1",
          "CustomerID": 99711427,
          "Type": 1,
          "PublicArea": "RUA SAO JUDAS TADEU                     ",
          "Number": 0,
          "Complement": "                    ",
          "Reference": null,
          "District": "ANA MARIA           ",
          "City": "CRICIUMA",
          "State": "SC",
          "ZipCode": 88880000,
          "Country": "BRASIL",
          "ResidenceTime": 0
        }
      ]
    },