2.0info: 1.7.0 Ocorrência description: Serviço responsável pelo módulo de ocorrências do CRM. x-senior-domain: CRM x-senior-domain-path: crm x-senior-service-path: occurrence contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: platform.senior.com.br /t/senior.com.br/bridge/1.0/rest/crmsecurityDefinitions: APIKeyHeader: type: apiKey in: header name: Authorizationsecurity: – APIKeyHeader: [] – application/json – application/jsonpaths: /occurrence/queries/healthcheck: post: description: Query para verificar a tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – status properties: status: type: string allOf: – #/definitions/upDownEnum description: Status geral do serviço 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Query para verificar a tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – status properties: status: type: string allOf: – #/definitions/upDownEnum description: Status geral do serviço 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /occurrence/queries/getMetadata: post: description: Default getMetadata query. Every service must handle this command and return metadata in the format requested. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: metadataFormat: type: string maxLength: 255 description: responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string maxLength: 255 description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Default getMetadata query. Every service must handle this command and return metadata in the format requested. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: metadataFormat description: in: query type: string maxLength: 255 responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string maxLength: 255 description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /occurrence/queries/getDependencies: post: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – dependencies properties: dependencies: type: array items: type: object allOf: – #/definitions/dependency minimum: 1 description: List with this service dependencies 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – dependencies properties: dependencies: type: array items: type: object allOf: – #/definitions/dependency minimum: 1 description: List with this service dependencies 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /occurrence/apis/occurrence: post: description: Facade referente à ocorrência tags: – APIS x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/occurrenceFacade responses: 200: description: Ok schema: #/definitions/occurrenceFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Facade referente à ocorrência tags: – APIS x-senior-visibility: PUBLIC parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: array items: #/definitions/occurrenceFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /occurrence/apis/occurrence/{id}: get: description: Facade referente à ocorrência tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/occurrenceFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError put: description: Facade referente à ocorrência tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/occurrenceFacade responses: 200: description: Ok schema: #/definitions/occurrenceFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Facade referente à ocorrência tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError definitions: upDownEnum: description: Up ou down type: string enum: – UP – DOWN userNotificationKind: description: User notification kind. type: string enum: – Operational – Management – News userNotificationPriority: description: User notification priority. type: string enum: – Error – Alert – None eventEmailFormat: description: Format of the email type: string enum: – HTML – PLAIN_TEXT companyBranchRecord: description: Empresa filial type: object properties: id: type: integer format: int64 description: ID company: type: object allOf: – #/definitions/companyRecord description: Empresa branch: type: object allOf: – #/definitions/branchRecord description: Filial companyRecord: description: Empresa type: object properties: id: type: integer format: int64 description: ID no CRM companyErp: type: string maxLength: 255 description: ID no sistema terceiro name: type: string maxLength: 255 description: Nome fantasyName: type: string maxLength: 255 description: Nome fantasia cnpj: type: string maxLength: 255 description: CNPJ nit: type: string maxLength: 255 description: NIT branchRecord: description: Filial type: object properties: id: type: integer format: int64 description: ID no CRM branchErp: type: string maxLength: 255 description: ID sistema terceiro headquarters: type: integer format: int64 description: Matriz name: type: string maxLength: 255 description: Nome fantasyName: type: string maxLength: 255 description: Nome fantasia cnpj: type: string maxLength: 255 description: CNPJ nit: type: string maxLength: 255 description: NIT accountRecord: description: Conta type: object properties: id: type: integer format: int64 description: ID no CRM idErp: type: string maxLength: 255 description: ID no CRM name: type: string maxLength: 255 description: Nome fantasyName: type: string maxLength: 255 description: Nome fantasia active: type: boolean description: Se está ativo economicGroup: type: string maxLength: 255 description: Grupo Econômico stateRegistration: type: string maxLength: 255 description: Inscrição estadual municipalRegistration: type: string maxLength: 255 description: Inscrição municipal cnpj: type: string maxLength: 255 description: CNPJ cpf: type: string maxLength: 255 description: CPF rg: type: string maxLength: 255 description: RG einNumber: type: string maxLength: 255 description: EIN ssnNumber: type: string maxLength: 255 description: SSN url: type: string maxLength: 255 description: URL do site generalEmail: type: string maxLength: 255 description: E-mail geral financialEmail: type: string maxLength: 255 description: E-mail financeiro employees: type: integer format: int64 description: Funcionários annualIncome: type: number format: double description: Receita anual registerDate: type: string format: date-time description: Data do cadastro customerSince: type: string format: date-time description: Cliente desde birthDate: type: string format: date-time description: Data de nascimento/abertura receiveEmail: type: boolean description: Recebe email receiveSurvey: type: boolean description: Recebe pesquisa receiveTrackEmail: type: boolean description: Recebe monitora e-mail personType: type: object allOf: – #/definitions/personTypeRecord description: Tipo de pessoa companySize: type: object allOf: – #/definitions/companySizeRecord description: Porte da empresa activityBranch: type: object allOf: – #/definitions/activityBranchRecord description: Ramo de atividade companyGroup: type: object allOf: – #/definitions/companyGroupRecord description: Grupo da empresa origin: type: object allOf: – #/definitions/accountOriginRecord description: Origem nit: type: string maxLength: 255 description: NIT citizenshipCard: type: string maxLength: 255 description: Cédula Cidadania passport: type: string maxLength: 255 description: Passaporte customFields: type: string format: byte description: Campos customizados personTypeRecord: description: Tipo de pessoa type: object properties: id: type: integer format: int64 description: ID name: type: string maxLength: 255 description: Nome icon: type: string maxLength: 255 description: Ícone active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados companySizeRecord: description: Porte da empresa type: object properties: id: type: integer format: int64 description: ID name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados activityBranchRecord: description: Ramo de atividade type: object properties: id: type: integer format: int64 description: ID no CRM idErp: type: string maxLength: 255 description: ID no sistema terceiro company: type: object allOf: – #/definitions/companyRecord description: Empresa name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo companyGroupRecord: description: Grupo da empresa type: object properties: id: type: integer format: int64 description: ID no CRM idErp: type: string maxLength: 255 description: ID no sistema terceiro company: type: object allOf: – #/definitions/companyRecord description: Empresa name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados accountOriginRecord: description: Origem da conta type: object properties: id: type: integer format: int64 description: ID company: type: object allOf: – #/definitions/companyRecord description: Empresa name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados occurrenceOriginRecord: description: Origem da ocorrência type: object properties: id: type: integer format: int64 description: ID companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa filial name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados occurrenceTypeRecord: description: Tipo de ocorrência type: object properties: id: type: integer format: int64 description: ID companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa filial name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo sla: type: integer format: int64 description: SLA customFields: type: string format: byte description: Campos customizados opportunityRecord: description: Oportunidade type: object properties: id: type: integer format: int64 description: ID companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa filial name: type: string maxLength: 255 description: Nome description: type: string maxLength: 255 description: Descrição account: type: object allOf: – #/definitions/accountRecord description: Conta date: type: string format: date-time description: Data hour: type: string format: date-time description: Hora contact: type: object allOf: – #/definitions/contactRecord description: Contato companyId: type: integer format: int64 description: ID da empresa subType: type: integer format: int64 description: Subtipo origin: type: object allOf: – #/definitions/opportunityOriginRecord description: Origem script: type: object allOf: – #/definitions/scriptRecord description: Roteiro user: type: object allOf: – #/definitions/userRecord description: Usuário phase: type: integer format: int64 description: Estágio standByPhase: type: integer format: int64 description: Estágio standby lossReason: type: object allOf: – #/definitions/lossReasonRecord description: Motivo da perda saleReason: type: object allOf: – #/definitions/saleReasonRecord description: Motivo da venda probability: type: integer format: int64 description: Probabilidade standByProbability: type: integer format: int64 description: Probabilidade standby proposalNumber: type: string maxLength: 255 description: Número da proposta orderNumber: type: string maxLength: 255 description: Número do pedido autoNumbered: type: boolean description: Se é autonumerada predictedInitialClosingDate: type: string format: date-time description: Data prevista de fechamento inicial predictedClosingDate: type: string format: date-time description: Data prevista de fechamento effectiveDateClosing: type: string format: date-time description: Data efetiva de fechamento predictedDeliveryDate: type: string format: date-time description: Data prevista de entrega effectiveDelivertDate: type: string format: date-time description: Data efetiva de entreda initialPredictedValue: type: number format: double description: Valor previsto inicial predictedValue: type: number format: double description: Valor previsto closedValue: type: number format: double description: Valor fechado predictedValueCurrency: type: number format: double description: Moeda do valor previsto closedValueCurrency: type: number format: double description: Moeda do valor esperado predictedQuantitative: type: number format: double description: Quantidade prevista quantitativeAccomplished: type: number format: double description: Quantidade realizada history: type: string maxLength: 255 description: Histórico timestampRegistration: type: string format: date-time description: Cadastro timestamp operatorRegistration: type: object allOf: – #/definitions/userRecord description: Cadastro do operador timestampChange: type: string format: date-time description: Alteração do timestamp operatorChange: type: object allOf: – #/definitions/userRecord description: Alteração do operador businessType: type: object allOf: – #/definitions/businessTypeRecord description: Modalidade de negócio type: type: object allOf: – #/definitions/opportunityTypeRecord description: Tipo da oportunidade notifyEmail: type: boolean description: Se notifica por e-mail infoErp: type: string format: byte description: Informações do ERP customFields: type: string format: byte description: Campos customizados contactRecord: description: Contato type: object properties: id: type: integer format: int64 description: ID no CRM idErp: type: integer format: int64 description: ID no sistema terceiro companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa filial name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo search: type: integer format: int64 description: Pesquisa privateUser: type: integer format: int64 description: Usuário privado visibility: type: integer format: int64 description: Visibilidade treatment: type: string maxLength: 255 description: Tratamento functionDescription: type: string maxLength: 255 description: Descrição da função gender: type: integer format: int64 description: Gênero cep: type: string maxLength: 255 description: CEP zipCode: type: string maxLength: 255 description: ZIP Code address: type: string maxLength: 255 description: Endereço number: type: string maxLength: 255 description: Número complement: type: string maxLength: 255 description: Complemento district: type: string maxLength: 255 description: Bairro cpf: type: string maxLength: 255 description: CPF rg: type: string maxLength: 255 description: RG citizenshipCard: type: string maxLength: 255 description: Cédula cidadania telephone: type: string maxLength: 255 description: Telefone corporatePhone: type: boolean description: Telefone corporativo phoneBranch: type: string maxLength: 255 description: Ramal fax: type: string maxLength: 255 description: FAX cellPhone: type: string maxLength: 255 description: Celular corporateCellPhone: type: boolean description: Celular comparativo mobileWhatsapp: type: boolean description: Celular WhatsApp operator: type: integer format: int64 description: Operadora email: type: string maxLength: 255 description: E-mail corporateEmail: type: boolean description: Se é um e-mail corporativo receiveCampaign: type: boolean description: Se recebe Campanha receiveSearch: type: boolean description: Se recebe pesquisa skype: type: string maxLength: 255 description: Skype twitter: type: string maxLength: 255 description: Twitter facebook: type: string maxLength: 255 description: Facebook birthday: type: string maxLength: 255 description: Aniversário birthDate: type: string format: date-time description: Data de nascimento decisionLevel: type: integer format: int64 description: Nível de decisão opinionCompany: type: integer format: int64 description: Parecer empresa reasonOpinionCompany: type: string maxLength: 255 description: Motivo parecer empresa notes: type: string maxLength: 255 description: Observação city: type: object allOf: – #/definitions/cityRecord description: Cidade department: type: object allOf: – #/definitions/departmentRecord description: Departamento function: type: object allOf: – #/definitions/functionRecord description: Função origin: type: object allOf: – #/definitions/contactOriginRecord description: Origem account: type: object allOf: – #/definitions/accountRecord description: Conta superiorContact: type: object allOf: – #/definitions/contactRecord description: Contato superior customFields: type: string format: byte description: Campos customizados contactOriginRecord: description: Origem do contato type: object properties: id: type: integer format: int64 description: ID company: type: object allOf: – #/definitions/companyRecord description: Empresa name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados functionRecord: description: Função type: object properties: id: type: integer format: int64 description: ID idErp: type: string maxLength: 255 description: ID no sistema terceiro company: type: object allOf: – #/definitions/companyRecord description: Empresa name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados departmentRecord: description: Departamento type: object properties: id: type: integer format: int64 description: ID companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa filial name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo usesOccurrence: type: boolean description: Se usa ocorrência customFields: type: string format: byte description: Campos customizados cityRecord: description: Cidade type: object properties: id: type: integer format: int64 description: ID idErp: type: string maxLength: 255 description: ID no sistema terceiro idIbge: type: string maxLength: 255 description: Código IBGE da cidade name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo dddCode: type: string maxLength: 255 description: Código DDD population: type: integer format: int64 description: População estimatedPopulation: type: integer format: int64 description: População estimada consumptionPotential: type: number format: double description: Potencial de consumo pib: type: number format: double description: PIB state: type: object allOf: – #/definitions/stateRecord description: Estado country: type: object allOf: – #/definitions/countryRecord description: Pais customFields: type: string format: byte description: Campos customizados stateRecord: description: Estado type: object properties: id: type: integer format: int64 description: ID idErp: type: string maxLength: 255 description: ID no sistema terceiro name: type: string maxLength: 255 description: Nome initials: type: string maxLength: 255 description: Sigla active: type: boolean description: Ativo country: type: object allOf: – #/definitions/countryRecord description: País customFields: type: string format: byte description: Campos customizados countryRecord: description: País type: object properties: id: type: integer format: int64 description: ID idErp: type: string maxLength: 255 description: ID no sistema terceiro name: type: string maxLength: 255 description: Nome countryCode: type: integer format: int64 description: Código do país active: type: boolean description: Ativo customFields: type: string format: byte description: Campos customizados opportunityOriginRecord: description: Origem da oportunidade type: object properties: id: type: integer format: int64 description: ID companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa filial name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados scriptRecord: description: Roteiro type: object properties: id: type: integer format: int64 description: ID name: type: string maxLength: 255 description: Nome description: type: string maxLength: 255 description: Descrição lossReasonRecord: description: Motivo da perda type: object properties: id: type: integer format: int64 description: ID companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa filial name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados saleReasonRecord: description: Motivo da fechamento type: object properties: id: type: integer format: int64 description: ID companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa filial name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados businessTypeRecord: description: Modalidade de negócio type: object properties: id: type: integer format: int64 description: ID companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa Filial name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo notes: type: string maxLength: 255 description: Observação opportunityTypeRecord: description: Tipo de oportunidade type: object properties: id: type: integer format: int64 description: ID no CRM idErp: type: string maxLength: 255 description: ID no sistema terceiro companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa Filial name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo note: type: string maxLength: 255 description: Observação userRecord: description: Usuário type: object properties: id: type: integer format: int64 description: ID no CRM idErp: type: string maxLength: 50 description: ID no sistema terceiro name: type: string maxLength: 255 description: Nome lastName: type: string maxLength: 255 description: Sobrenome functionDescripiton: type: string maxLength: 255 description: Descrição da função photo: type: string maxLength: 255 description: Foto email: type: string maxLength: 255 description: E-mail active: type: boolean description: Se está ativo userCompanyBranches: type: array items: type: object allOf: – #/definitions/userCompanyBranchRecord description: Empresa filial userCompanyBranchRecord: description: Empresas filiais do usuário type: object properties: id: type: integer format: int64 description: ID standardCompanyBranch: type: boolean description: Empresa filial padrão user: type: object allOf: – #/definitions/userRecord description: Usuário companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa filial notifyUserEventPayload: description: Represents a regular user event notification payload discriminator: _discriminator type: object required: – notificationKind – notificationPriority – notificationSubject – notificationContent – sourceDomain – sourceService – destinationUser – _discriminator properties: notificationClass: type: string maxLength: 255 description: Class of notification notificationOrigin: type: string maxLength: 255 description: Origin of notification. Free text. Optional. notificationKind: type: string allOf: – #/definitions/userNotificationKind description: Notification kind. notificationPriority: type: string allOf: – #/definitions/userNotificationPriority description: Notification priority. notificationSubject: type: string maxLength: 255 description: Notification subject. notificationContent: type: string maxLength: 255 description: Notification content. sourceDomain: type: string maxLength: 255 description: Domain that generates the notification. sourceService: type: string maxLength: 255 description: Service that generates the notification. destinationUser: type: string maxLength: 255 description: Username of the destination user. link: type: string maxLength: 255 description: Notification link _discriminator: type: string maxLength: 255 description: emailNotifyUserEventPayload: description: Represents an email notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – from properties: from: type: string maxLength: 255 description: Email sender address sendTo: type: array items: type: string maxLength: 255 description: Additional recipients to send the email to format: type: string allOf: – #/definitions/eventEmailFormat description: Email format pushNotifyUserEventPayload: description: Represents a push notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – applicationId properties: applicationId: type: string maxLength: 255 description: Apple/Google application id blobReference: description: Default blob reference type. Every service defines its own. type: object required: – targetObjectId properties: domainName: type: string maxLength: 255 description: The domain the blob belongs to. serviceName: type: string maxLength: 255 description: The service the blob belongs to. targetObjectId: type: string maxLength: 255 description: The basic id of the blob. targetCopyId: type: string maxLength: 255 description: The id of the blob copy. basicErrorPayload: description: Default error payload type. Every service defines its own. type: object properties: message: type: string maxLength: 255 description: The user-facing error message, if any. errorCode: type: string maxLength: 255 description: The program-accessible (and service-specific) error code. dependency: description: Represents a service dependency type: object required: – domain – service – version properties: domain: type: string maxLength: 255 description: Domain of the dependency service service: type: string maxLength: 255 description: Name of the dependency service type: string maxLength: 255 description: Version of the dependency service occurrenceFacade: description: Facade referente à ocorrência type: object properties: id: type: integer format: int64 description: ID date: type: string format: date-time description: Data hour: type: string format: date-time description: Hora userId: type: integer format: int64 description: ID do usuário groupId: type: integer format: int64 description: ID do grupo campaignId: type: integer format: int64 description: ID da campanha subaccountId: type: integer format: int64 description: ID da subconta relationshipId: type: integer format: int64 description: ID do relacionamento companyId: type: integer format: int64 description: ID da empresa name: type: string maxLength: 255 description: Nome occurrenceSubtypeId: type: integer format: int64 description: ID do subtipo da ocorrência departmentId: type: integer format: int64 description: ID do departamento priority: type: string maxLength: 255 description: Prioridade description: type: string maxLength: 255 description: Descrição status: type: integer format: int64 description: Status expectedStartDate: type: string format: date-time description: Data de início esperada expectedStartHour: type: string format: date-time description: Hora de início esperada effectiveStartDate: type: string format: date-time description: Data de início efetiva effectiveStartHour: type: string format: date-time description: Hora de início efetiva deadlineDate: type: string format: date-time description: Data do prazo deadlineHour: type: string format: date-time description: Hora do prazo deadlineTimestamp: type: string format: date-time description: Timestamp do prazo resolved: type: boolean description: Se está resolvida resolutionDate: type: string format: date-time description: Data de resolução resolutionHour: type: string maxLength: 255 description: Hora de resolução resolution: type: string maxLength: 255 description: Resolução dispositionOccurrenceId: type: integer format: int64 description: ID da disposição da ocorrência occurrenceCost: type: number format: double description: Custo da ocorrência checkFaq: type: boolean description: Se verifica a FAQ faqTags: type: string maxLength: 255 description: Tags da FAQ apInvoice: type: integer format: int64 description: Nota fiscal de entrada arInvoice: type: integer format: int64 description: Nota fiscal de saída carrierId: type: integer format: int64 description: ID da transportadora operatorRegistration: type: integer format: int64 description: Operador do cadastro timestampRegistration: type: string format: date-time description: Timestamp do cadastro operatorChange: type: integer format: int64 description: Operador da alteração timestampChange: type: string format: date-time description: Timestamp da alteração emailOrigin: type: string maxLength: 255 description: Origem do e-mail emailAddress: type: string maxLength: 255 description: Endereço de e-mail emailName: type: string maxLength: 255 description: Nome do e-mail representativeId: type: integer format: int64 description: ID do represetante account: type: object allOf: – #/definitions/accountRecord description: Conta occurrenceOrigin: type: object allOf: – #/definitions/occurrenceOriginRecord description: Origem da ocorrência occurrenceType: type: object allOf: – #/definitions/occurrenceTypeRecord description: Tipo da ocorrência companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa filial notifyClosing: type: integer format: int64 description: Se notifica o fechamento notifyEmail: type: integer format: int64 description: Se notifica o e-mail opportunity: type: object allOf: – #/definitions/opportunityRecord description: Oportunidade customFields: type: string format: byte description: Campos customizados createdBy: type: object allOf: – #/definitions/userRecord description: Criado por changedBy: type: object allOf: – #/definitions/userRecord description: Alterado por 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