crm

2.0info: 10.3.0 Contas description: Serviço responsável pelo contas do CRM x-senior-domain: CRM x-senior-domain-path: crm x-senior-service-path: account contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: api.senior.com.br /crm/accountsecurityDefinitions: bearerAuth: type: apiKey in: header name: Authorization – application/json – application/jsonparameters: clientId: name: client_id type: string in: header required: true description: Identificação da aplicação cadastrada no portal do desenvolvedor (api.xplatform.com.br)paths: /accountCreated: post: description: Evento disparado quando um conta é criada x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/fullAccountRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /accountUpdated: post: description: Evento disparado quando um conta é atualizada x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/fullAccountRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /accountDeleted: post: description: Evento disparado quando um conta é deletada x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/fullAccountRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /accountDefinitionCreated: post: description: Evento disparado quando uma definição da conta é criada x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/fullAccountDefinitionRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /accountDefinitionUpdated: post: description: Evento disparado quando uma definição da conta é atualizada x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/fullAccountDefinitionRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /accountDefinitionDeleted: post: description: Evento disparado quando uma definição da conta é deletada x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/fullAccountDefinitionRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /accountPhoneCreated: post: description: Evento disparado quando um telefone da conta é criada x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/fullAccountPhoneRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /accountPhoneUpdated: post: description: Evento disparado quando um telefone da conta é atualizado x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/fullAccountPhoneRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /accountPhoneDeleted: post: description: Evento disparado quando um telefone da conta é deletado x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/fullAccountPhoneRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /accountAddressCreated: post: description: Evento disparado quando um endereço da conta é criado x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/fullAccountAddressRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /accountAddressUpdated: post: description: Evento disparado quando um endereço da conta é atualizado x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/fullAccountAddressRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /accountAddressDeleted: post: description: Evento disparado quando um endereço da conta é deletada x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/fullAccountAddressRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/accountInterestAreas: post: description: The create request primitive for the accountInterestAreas facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/accountInterestAreasFacade responses: 200: description: Ok schema: #/definitions/accountInterestAreasFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the accountInterestAreas facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/accountInterestAreasFacade default: description: Error response schema: #/definitions/genericError /apis/accountInterestAreas/{id}: put: description: The update request primitive for the accountInterestAreas facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/accountInterestAreasFacade responses: 200: description: Ok schema: #/definitions/accountInterestAreasFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the accountInterestAreas facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/accountInterestAreasFacade default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the accountInterestAreas facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/accountCharacteristics: post: description: The create request primitive for the accountCharacteristics facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/accountCharacteristicsFacade responses: 200: description: Ok schema: #/definitions/accountCharacteristicsFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the accountCharacteristics facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/accountCharacteristicsFacade default: description: Error response schema: #/definitions/genericError /apis/accountCharacteristics/{id}: put: description: The update request primitive for the accountCharacteristics facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/accountCharacteristicsFacade responses: 200: description: Ok schema: #/definitions/accountCharacteristicsFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the accountCharacteristics facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/accountCharacteristicsFacade default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the accountCharacteristics facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/accountDefinition: post: description: The create request primitive for the accountDefinition facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/accountDefinitionFacade responses: 200: description: Ok schema: #/definitions/accountDefinitionFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the accountDefinition facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/accountDefinitionFacade default: description: Error response schema: #/definitions/genericError /apis/accountDefinition/{id}: put: description: The update request primitive for the accountDefinition facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/accountDefinitionFacade responses: 200: description: Ok schema: #/definitions/accountDefinitionFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the accountDefinition facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/accountDefinitionFacade default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the accountDefinition facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/accountRelationships: post: description: The create request primitive for the accountRelationships facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/accountRelationshipsFacade responses: 200: description: Ok schema: #/definitions/accountRelationshipsFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the accountRelationships facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/accountRelationshipsFacade default: description: Error response schema: #/definitions/genericError /apis/accountRelationships/{id}: put: description: The update request primitive for the accountRelationships facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/accountRelationshipsFacade responses: 200: description: Ok schema: #/definitions/accountRelationshipsFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the accountRelationships facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/accountRelationshipsFacade default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the accountRelationships facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/accountIdentifications: post: description: The create request primitive for the accountIdentifications facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/accountIdentificationsFacade responses: 200: description: Ok schema: #/definitions/accountIdentificationsFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the accountIdentifications facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/accountIdentificationsFacade default: description: Error response schema: #/definitions/genericError /apis/accountIdentifications/{id}: put: description: The update request primitive for the accountIdentifications facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/accountIdentificationsFacade responses: 200: description: Ok schema: #/definitions/accountIdentificationsFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the accountIdentifications facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/accountIdentificationsFacade default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the accountIdentifications facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/account: post: description: The create request primitive for the account facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/accountFacade responses: 200: description: Ok schema: #/definitions/accountFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the account facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/accountFacade default: description: Error response schema: #/definitions/genericError /apis/account/{id}: put: description: The update request primitive for the account facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/accountFacade responses: 200: description: Ok schema: #/definitions/accountFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the account facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/accountFacade default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the account facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/accountHistoryIntegration: post: description: The create request primitive for the accountHistoryIntegration facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/accountHistoryIntegrationFacade responses: 200: description: Ok schema: #/definitions/accountHistoryIntegrationFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the accountHistoryIntegration facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/accountHistoryIntegrationFacade default: description: Error response schema: #/definitions/genericError /apis/accountHistoryIntegration/{id}: put: description: The update request primitive for the accountHistoryIntegration facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/accountHistoryIntegrationFacade responses: 200: description: Ok schema: #/definitions/accountHistoryIntegrationFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the accountHistoryIntegration facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/accountHistoryIntegrationFacade default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the accountHistoryIntegration facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/accountAddress: post: description: The create request primitive for the accountAddress facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/accountAddressFacade responses: 200: description: Ok schema: #/definitions/accountAddressFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the accountAddress facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/accountAddressFacade default: description: Error response schema: #/definitions/genericError /apis/accountAddress/{id}: put: description: The update request primitive for the accountAddress facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/accountAddressFacade responses: 200: description: Ok schema: #/definitions/accountAddressFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the accountAddress facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/accountAddressFacade default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the accountAddress facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/accountPhone: post: description: The create request primitive for the accountPhone facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/accountPhoneFacade responses: 200: description: Ok schema: #/definitions/accountPhoneFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the accountPhone facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/accountPhoneFacade default: description: Error response schema: #/definitions/genericError /apis/accountPhone/{id}: put: description: The update request primitive for the accountPhone facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/accountPhoneFacade responses: 200: description: Ok schema: #/definitions/accountPhoneFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the accountPhone facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/accountPhoneFacade default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the accountPhone facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/contact: post: description: The create request primitive for the contact facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/contactFacade responses: 200: description: Ok schema: #/definitions/contactFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the contact facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/contactFacade default: description: Error response schema: #/definitions/genericError /apis/contact/{id}: put: description: The update request primitive for the contact facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/contactFacade responses: 200: description: Ok schema: #/definitions/contactFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the contact facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/contactFacade default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the contact facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/accountResponsible: post: description: The create request primitive for the accountResponsible facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/accountResponsibleFacade responses: 200: description: Ok schema: #/definitions/accountResponsibleFacade default: description: Error response schema: #/definitions/genericError get: description: The list request primitive for the accountResponsible facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: offset in: query type: number – name: size in: query type: number responses: 200: description: Ok schema: type: object required: – contents properties: contents: #/definitions/accountResponsibleFacade default: description: Error response schema: #/definitions/genericError /apis/accountResponsible/{id}: put: description: The update request primitive for the accountResponsible facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/accountResponsibleFacade responses: 200: description: Ok schema: #/definitions/accountResponsibleFacade default: description: Error response schema: #/definitions/genericError get: description: The retrieve request primitive for the accountResponsible facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/accountResponsibleFacade default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the accountResponsible facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericErrordefinitions: fullAccountRecord: type: object properties: id: type: integer description: Código de identificação idErp: type: string description: Código de identificação name: type: string description: Nome da conta fantasyName: type: string description: Nome fantasia economicGroup: type: string description: Grupo Econômico stateRegistration: type: string description: Inscrição estadual municipalRegistration: type: string description: Inscrição municipal cnpj: type: string description: CNPJ da conta rg: type: string description: RG da conta cpf: type: string description: CPF da conta einNumber: type: string description: EIN ssnNumber: type: string description: SSN url: type: string description: URL do site da conta generalEmail: type: string description: E-mail geral financialEmail: type: string description: E-mail financeiro employees: type: integer description: Funcionários annualIncome: type: number description: Receita anual format: double registerDate: type: string description: Data do cadastro format: date-time customerSince: type: string description: Cliente desde format: date-time birthDate: type: string description: Data de nascimento/abertura format: date-time receiveEmail: type: boolean description: Recebe email receiveEmailMarketing: type: boolean description: Recebe E-mail Marketing receiveSurvey: type: boolean description: Recebe pesquisa receiveTrackEmail: type: boolean description: Recebe monitora email customFields: type: string description: Campos customizados format: byte active: type: boolean description: Status de atividade personType: #/definitions/personTypeRecord companySize: #/definitions/companySizeRecord activityBranch: #/definitions/activityBranchRecord companyGroup: #/definitions/companyGroupRecord origin: #/definitions/originRecord responsible: type: array items: #/definitions/fullAccountResponsibleRecord description: Responsáveis definitions: type: array items: #/definitions/fullAccountDefinitionRecord description: Definições nit: type: string description: NIT citizenshipCard: type: string description: Cédula Cidadania passport: type: string description: Passaporte addresses: type: array items: #/definitions/fullAccountAddressRecord description: Endereços phones: type: array items: #/definitions/fullAccountPhoneRecord description: Telefones historicIntegrations: type: array items: #/definitions/fullAccountHistoryIntegrationRecord description: Histórico de Integrações contacts: type: array items: #/definitions/fullContactRecord description: Contatos identifiers: type: array items: #/definitions/fullAccountIdentificationsRecord description: Identificadores characteristics: type: array items: #/definitions/fullAccountCharacteristicsRecord description: Caracteristicas personTypeRecord: type: object properties: id: type: integer description: Código de identificação name: type: string description: Nome icon: type: string description: Ícone active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte companySizeRecord: type: object properties: id: type: integer description: Código de identificação name: type: string description: Nome active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte activityBranchRecord: type: object properties: id: type: integer description: Código de identificação no CRM idErp: type: string description: Código de identificação no sistema terceiro name: type: string description: Nome active: type: boolean description: Ativo company: #/definitions/companyRecord companyRecord: type: object properties: id: type: integer description: Id de identificação no CRM companyErp: type: string description: Id de identificação no sistema terceiro name: type: string description: Nome da Empresa fantasyName: type: string description: Nome fantasia da Empresa cnpj: type: string description: CNPJ nit: type: string description: NIT companyGroupRecord: type: object properties: id: type: integer description: Código de identificação idErp: type: string description: Identificação no sistema terceiro name: type: string description: Nome active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte company: #/definitions/companyRecord originRecord: type: object properties: id: type: integer description: Código de identificação name: type: string description: Nome da origem active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte company: #/definitions/companyRecord fullAccountResponsibleRecord: type: object properties: id: type: integer description: Código de identificação erpOrigin: type: boolean description: Origem ERP user: #/definitions/userRecord account: #/definitions/fullAccountRecord group: #/definitions/groupRecord userRecord: type: object properties: id: type: integer description: Código de identificação no CRM idErp: type: string description: Código de identificação no sistema terceiro name: type: string description: Nome lastName: type: string description: Sobrenome descriptionFunction: type: string description: Descrição Função photo: type: string description: Foto email: type: string description: Email active: type: boolean description: Ativo groupRecord: type: object properties: id: type: integer description: Código de identificação name: type: string description: Nome description: type: string description: Descrição active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte company: #/definitions/companyRecord users: type: array items: #/definitions/userGroupRecord description: Usuário idErp: type: integer description: Id no Sistema Terceiro userGroupRecord: type: object properties: id: type: integer description: Id user: #/definitions/userRecord group: #/definitions/groupRecord fullAccountDefinitionRecord: type: object properties: id: type: integer description: Código de identificação idErp: type: string description: Id no sistema terceiro salesGoal: type: number description: Meta prevista format: double note: type: string description: Observações customFields: type: string description: Campos customizados format: byte receiveEmail: type: boolean description: Recebe email receiveSurvey: type: boolean description: Recebe pesquisa receiveTrackEmail: type: boolean description: Recebe monitora email clientSince: type: string description: Cliente desde format: date-time rating: #/definitions/ratingRecord carrier: #/definitions/carrierRecord carrierDispatch: #/definitions/carrierDispatchRecord account: #/definitions/fullAccountRecord accountType: #/definitions/accountTypeRecord companyBranch: #/definitions/companyBranchRecord status: #/definitions/statusRecord paymentTerm: #/definitions/paymentTermRecord inactivationReason: #/definitions/inactivationReasonRecord priceTable: #/definitions/priceTableRecord typePayment: #/definitions/typePaymentRecord representative: #/definitions/representativeRecord seller: #/definitions/sellerRecord ratingRecord: type: object properties: id: type: integer description: Código de identificação name: type: string description: Nome icon: type: string description: Ícone active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte carrierRecord: type: object properties: id: type: integer description: Código de identificação no CRM idErp: type: string description: Código de identificação no sistema terceiro name: type: string description: Nome active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte companyBranch: #/definitions/companyBranchRecord companyBranchRecord: type: object properties: id: type: integer description: Código de identificação no CRM company: #/definitions/companyRecord branch: #/definitions/branchRecord branchRecord: type: object properties: id: type: integer description: Id de identificação no CRM branchErp: type: string description: Id de identificação no sistema terceiro name: type: string description: Nome fantasyName: type: string description: Nome fantasia cnpj: type: string description: CNPJ headquarters: type: integer description: Matriz nit: type: string description: NIT carrierDispatchRecord: type: object properties: id: type: integer description: Código de identificação no CRM idErp: type: string description: Código de identificação no sistema terceiro name: type: string description: Nome active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte companyBranch: #/definitions/companyBranchRecord accountTypeRecord: type: object required: – id properties: id: type: integer description: Código de identificação name: type: string description: Nome active: type: boolean description: Ativo icon: type: string description: Ícone color: type: string description: Cor requiredFields: type: string description: Campos obrigatórios customFields: type: string description: Campos customizados format: byte company: #/definitions/companyRecord statusRecord: type: object properties: id: type: integer description: Código de identificação name: type: string description: Nome do status active: type: integer description: Ativo customFields: type: string description: Campos customizados format: byte icon: type: string description: Ícone idErp: type: string description: Id no sistema terceiro paymentTermRecord: type: object properties: id: type: integer description: Código de identificação no CRM idErp: type: string description: Código de identificação no sistema terceiro name: type: string description: Nome active: type: boolean description: Ativo generatesInstallments: type: boolean description: Gera parcelas amountInstallments: type: integer description: Quantidade de parcelas additionInstallments: type: number description: Acréscimos de parcelas format: double rounding: type: integer description: Arredondamento customFields: type: string description: Campos customizados format: byte company: #/definitions/companyRecord inactivationReasonRecord: type: object properties: id: type: integer description: Código de identificação companyBranch: #/definitions/companyBranchRecord name: type: string description: Nome active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte priceTableRecord: type: object properties: id: type: integer description: Código de identificação no CRM idErp: type: string description: Código de identificação no sistema terceiro name: type: string description: Nome valueAddition: type: number description: Valor acréscimo format: double active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte companyBranch: #/definitions/companyBranchRecord typePaymentRecord: type: object properties: id: type: integer description: Código de identificação idErp: type: string description: Id no sistema terceiro name: type: string description: Nome valueAddition: type: number description: Valor de Acréscimo format: double active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte companyBranch: #/definitions/companyBranchRecord representativeRecord: type: object properties: id: type: integer description: Código de identificação no CRM idErp: type: string description: Código de identificação no sistema terceiro name: type: string description: Nome sellerRecord: type: object properties: id: type: integer description: Código de identificação no CRM idErp: type: string description: Código de identificação no sistema terceiro name: type: string description: Nome fullAccountAddressRecord: type: object properties: id: type: integer description: Código de identificação main: type: boolean description: Principal account: #/definitions/fullAccountRecord address: #/definitions/addressRecord addressRecord: type: object properties: id: type: integer description: Código de identificação active: type: boolean description: Ativo name: type: string description: Nome address: type: string description: Endereço number: type: string description: Número complement: type: string description: Complemento district: type: string description: Bairro cep: type: string description: CEP latitude: type: number description: Latitude format: double longitude: type: number description: Longitude format: double customFields: type: string description: Campos customizados format: byte type: #/definitions/addressTypeRecord companyBranch: #/definitions/companyBranchRecord city: #/definitions/cityRecord zipCode: type: string description: ZIP addressTypeRecord: type: object properties: id: type: integer description: Código de identificação name: type: string description: Nome active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte companyBranch: #/definitions/companyBranchRecord cityRecord: type: object properties: id: type: integer description: Código de identificação idErp: type: string description: Id no sistema terceiro idIbge: type: string description: Código da cidade no IBGE name: type: string description: Nome active: type: boolean description: Ativo dddCode: type: string description: Código DDD population: type: integer description: População estimatedPopulation: type: integer description: População Estimada consumptionPotential: type: number description: Potencial de consumo format: double pib: type: number description: PIB format: double customFields: type: string description: Custom Fields format: byte state: #/definitions/stateRecord stateRecord: type: object properties: id: type: integer description: Código de identificação name: type: string description: Nome initials: type: string description: Sigla active: type: boolean description: Ativo country: #/definitions/countryRecord customFields: type: string description: Campos customizados format: byte idErp: type: string description: Id no sistema terceiro countryRecord: type: object properties: id: type: integer description: Código de identificação name: type: string description: Nome active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte countryCode: type: integer description: Código do País idErp: type: string description: Id no sistema terceiro fullAccountPhoneRecord: type: object properties: id: type: integer description: Código de identificação da definição da conta no CRM number: type: string description: Número type: type: integer description: Tipo operator: type: integer description: Operadora main: type: boolean description: Principal account: #/definitions/fullAccountRecord fullAccountHistoryIntegrationRecord: type: object properties: id: type: integer description: Id de identificação dateTime: type: string description: Data e hora format: date-time status: type: integer description: Status onde 1: Não Integrado 2: Integrado: 3: Falha ao integrar content: type: string description: Conteúdo account: #/definitions/fullAccountRecord fullContactRecord: type: object properties: id: type: integer description: Código de identificação search: type: integer description: Pesquisa privateUser: type: integer description: Usuário privado sequentialErp: type: string description: Sequencial no ERP active: type: boolean description: Ativo visibility: type: integer description: Visibilidade name: type: string description: Nome treatment: type: string description: Tratamento functionDescription: type: string description: Função Descrição gender: type: integer description: Gênero Sexual cep: type: string description: CEP zipCode: type: string description: ZIP Code address: type: string description: Endereço number: type: string description: Numero complement: type: string description: Complemento district: type: string description: Bairro cpf: type: string description: CPF rg: type: string description: RG citizenshipCard: type: string description: Cédula Cidadania telephone: type: string description: Telefone corporatePhone: type: boolean description: Telefone Corporativo phoneBranch: type: string description: Ramal fax: type: string description: FAX cell: type: string description: Celular corporateCellPhone: type: boolean description: Celular comparativo mobileWhatsapp: type: boolean description: Celular WhatsApp operator: type: integer description: Operadora email: type: string description: Email corporateEmail: type: boolean description: Email corporativo receiveCampaign: type: boolean description: Recebe Campanha receiveEmailMarketing: type: boolean description: Recebe E-mail Marketing receiveSearch: type: boolean description: Recebe pesquisa skype: type: string description: Skype twitter: type: string description: Twitter linkedin: type: string description: Linkedin instagram: type: string description: Instagram facebook: type: string description: Facebook birthday: type: string description: Aniversário birthDate: type: string description: Data de Nascimento format: date-time decisionLevel: type: integer description: Nível de Decisão opinionCompany: type: integer description: Parecer Empresa reasonOpinionCompany: type: string description: Motivo Parecer Empresa note: type: string description: Observações customFields: type: string description: Campos Customizados format: byte city: #/definitions/cityRecord department: #/definitions/departmentRecord function: #/definitions/functionRecord origin: #/definitions/originRecord account: #/definitions/fullAccountRecord superiorContact: #/definitions/fullContactRecord companyBranch: #/definitions/companyBranchRecord departmentRecord: type: object properties: id: type: integer description: Código de identificação companyBranch: #/definitions/companyBranchRecord name: type: string description: Nome active: type: boolean description: Ativo usesOccurrence: type: boolean description: Usa Ocorrência customFields: type: string description: Campos Customizados format: byte functionRecord: type: object properties: id: type: integer description: Código de identificação company: #/definitions/companyRecord name: type: string description: Nome active: type: boolean description: Ativo customFields: type: string description: Campos Customizados format: byte idErp: type: string description: Id no sistema terceiro fullAccountIdentificationsRecord: type: object properties: id: type: integer description: Código de identificação code: type: integer description: Outro possível código para a conta description: type: string description: Descrição do código account: #/definitions/fullAccountRecord fullAccountCharacteristicsRecord: type: object properties: id: type: integer description: Código de identificação dateRegister: type: string description: Data de Cadastro format: date-time quantity: type: number description: Quantidade format: double observations: type: string description: Observações account: #/definitions/recordBasicAccount characteristic: #/definitions/recordCharacteristic recordBasicAccount: type: object properties: id: type: integer description: Código de identificação no CRM idErp: type: string description: Código de identificação no sistema terceiro name: type: string description: Nome da conta cnpj: type: string description: CNPJ da Conta cpf: type: string description: CPF da Conta rg: type: string description: RG da Conta recordCharacteristic: type: object properties: id: type: integer description: Código de identificação name: type: string description: Nome active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte company: #/definitions/companyRecord accountFacade: type: object properties: id: type: integer description: Código de identificação idErp: type: string description: Código de identificação name: type: string description: Nome da conta fantasyName: type: string description: Nome fantasia economicGroup: type: string description: Grupo Econômico stateRegistration: type: string description: Inscrição estadual municipalRegistration: type: string description: Inscrição municipal cnpj: type: string description: CNPJ da conta rg: type: string description: RG da conta cpf: type: string description: CPF da conta einNumber: type: string description: EIN ssnNumber: type: string description: SSN url: type: string description: URL do site da conta generalEmail: type: string description: E-mail geral financialEmail: type: string description: E-mail financeiro employees: type: integer description: Funcionários annualIncome: type: number description: Receita anual format: double registerDate: type: string description: Data do cadastro format: date-time customerSince: type: string description: Cliente desde format: date-time birthDate: type: string description: Data de nascimento/abertura format: date-time receiveEmail: type: boolean description: Recebe email receiveEmailMarketing: type: boolean description: Recebe E-mail Marketing receiveSurvey: type: boolean description: Recebe pesquisa receiveTrackEmail: type: boolean description: Recebe monitora email customFields: type: string description: Campos customizados format: byte active: type: boolean description: Status de atividade personType: #/definitions/personTypeRecord companySize: #/definitions/companySizeRecord activityBranch: #/definitions/activityBranchRecord companyGroup: #/definitions/companyGroupRecord origin: #/definitions/originRecord responsible: type: array items: #/definitions/accountResponsibleInput description: Responsáveis definitions: type: array items: #/definitions/accountDefinitionInput description: Definições nit: type: string description: NIT citizenshipCard: type: string description: Cédula Cidadania passport: type: string description: Passaporte addresses: type: array items: #/definitions/accountAddressInput description: Endereços phones: type: array items: #/definitions/accountPhoneInput description: Telefones historicIntegrations: type: array items: #/definitions/accountHistoryIntegrationInput description: Histórico de Integrações contacts: type: array items: #/definitions/contactInput description: Contatos identifiers: type: array items: #/definitions/accountIdentificationsInput description: Identificadores characteristics: type: array items: #/definitions/accountCharacteristicsInput description: Características accountDefinitionFacade: type: object properties: id: type: integer description: Código de identificação idErp: type: string description: Id no sistema terceiro salesGoal: type: number description: Meta prevista format: double note: type: string description: Observações customFields: type: string description: Campos customizados format: byte receiveEmail: type: boolean description: Recebe email receiveSurvey: type: boolean description: Recebe pesquisa receiveTrackEmail: type: boolean description: Recebe monitora email clientSince: type: string description: Cliente desde format: date-time rating: #/definitions/ratingRecord carrier: #/definitions/carrierRecord carrierDispatch: #/definitions/carrierDispatchRecord account: #/definitions/accountInput accountType: #/definitions/accountTypeRecord companyBranch: #/definitions/companyBranchRecord status: #/definitions/statusRecord paymentTerm: #/definitions/paymentTermRecord inactivationReason: #/definitions/inactivationReasonRecord priceTable: #/definitions/priceTableRecord typePayment: #/definitions/typePaymentRecord representative: #/definitions/representativeRecord seller: #/definitions/sellerRecord accountAddressFacade: type: object properties: id: type: integer description: Código de identificação main: type: boolean description: Principal account: #/definitions/accountInput address: #/definitions/addressRecord accountPhoneFacade: type: object properties: id: type: integer description: Código de identificação da definição da conta no CRM number: type: string description: Número type: type: integer description: Tipo operator: type: integer description: Operadora main: type: boolean description: Principal account: #/definitions/accountInput accountHistoryIntegrationFacade: type: object properties: id: type: integer description: Id de identificação dateTime: type: string description: Data e hora format: date-time status: type: integer description: Status onde 1: Não Integrado 2: Integrado: 3: Falha ao integrar content: type: string description: Conteúdo account: #/definitions/accountInput contactFacade: type: object properties: id: type: integer description: Código de identificação search: type: integer description: Pesquisa privateUser: type: integer description: Usuário privado sequentialErp: type: string description: Sequencial no ERP active: type: boolean description: Ativo visibility: type: integer description: Visibilidade name: type: string description: Nome treatment: type: string description: Tratamento functionDescription: type: string description: Função Descrição gender: type: integer description: Gênero Sexual cep: type: string description: CEP zipCode: type: string description: ZIP Code address: type: string description: Endereço number: type: string description: Numero complement: type: string description: Complemento district: type: string description: Bairro cpf: type: string description: CPF rg: type: string description: RG citizenshipCard: type: string description: Cédula Cidadania telephone: type: string description: Telefone corporatePhone: type: boolean description: Telefone Corporativo phoneBranch: type: string description: Ramal fax: type: string description: FAX cell: type: string description: Celular corporateCellPhone: type: boolean description: Celular comparativo mobileWhatsapp: type: boolean description: Celular WhatsApp operator: type: integer description: Operadora email: type: string description: Email corporateEmail: type: boolean description: Email corporativo receiveCampaign: type: boolean description: Recebe Campanha receiveEmailMarketing: type: boolean description: Recebe E-mail Marketing receiveSearch: type: boolean description: Recebe pesquisa skype: type: string description: Skype twitter: type: string description: Twitter linkedin: type: string description: Linkedin instagram: type: string description: Instagram facebook: type: string description: Facebook birthday: type: string description: Aniversário birthDate: type: string description: Data de Nascimento format: date-time decisionLevel: type: integer description: Nível de Decisão opinionCompany: type: integer description: Parecer Empresa reasonOpinionCompany: type: string description: Motivo Parecer Empresa note: type: string description: Observações customFields: type: string description: Campos Customizados format: byte city: #/definitions/cityRecord department: #/definitions/departmentRecord function: #/definitions/functionRecord origin: #/definitions/originRecord account: #/definitions/accountInput superiorContact: #/definitions/contactInput companyBranch: #/definitions/companyBranchRecord accountRelationshipsFacade: type: object properties: id: type: integer description: Código de identificação note: type: string description: Observações status: type: boolean description: Status fatherAccount: #/definitions/accountInput childAccount: #/definitions/accountInput relationshipType: #/definitions/relationshipTypeRecord relationshipTypeRecord: type: object properties: id: type: integer description: Código de identificação name: type: string description: Nome active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte accountResponsibleFacade: type: object properties: id: type: integer description: Código de identificação erpOrigin: type: boolean description: Origem ERP user: #/definitions/userRecord account: #/definitions/accountInput group: #/definitions/groupRecord accountInterestAreasFacade: type: object properties: id: type: integer description: Código de identificação interestType: type: integer description: Tipo de interesse note: type: string description: Observações dateRegister: type: string description: Data de Cadastro format: date-time account: #/definitions/accountInput interestAreas: #/definitions/interestAreaRecord interestAreaRecord: type: object properties: id: type: integer description: Código de identificação name: type: string description: Nome active: type: boolean description: Ativo customFields: type: string description: Campos customizados format: byte company: #/definitions/companyRecord accountIdentificationsFacade: type: object properties: id: type: integer description: Código de identificação code: type: integer description: Outro possível código para a conta description: type: string description: Descrição do código account: #/definitions/accountInput accountCharacteristicsFacade: type: object properties: id: type: integer description: Código de identificação dateRegister: type: string description: Data de Cadastro format: date-time quantity: type: number description: Quantidade format: double observations: type: string description: Observações account: #/definitions/recordBasicAccount characteristic: #/definitions/recordCharacteristic genericError: properties: message: type: string description: Messaging describing the error. reason: type: string description: A symbolic code identifying the category of the reason of the error. enum: – BAD_REQUEST – UNAUTHORIZED – PAYMENT_REQUIRED – FORBIDDEN – OBJECT_NOT_FOUND – REQUEST_TIMEOUT – GONE – UNPROCESSABLE – INTERNAL_ERROR – NOT_IMPLEMENTED – SERVICE_UNAVAILABLE – INSUFFICIENT_STORAGE