2.0info: 2.18.0 Oportunidade description: Serviço responsável pelo oportunidades do CRM x-senior-domain: CRM x-senior-domain-path: crm x-senior-service-path: opportunity 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: /opportunity/queries/healthcheck: post: description: Query para o CRM verificar a disponibilidade do serviço tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – status properties: status: type: string allOf: – #/definitions/upDown description: Status geral do serviço 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Query para o CRM verificar a disponibilidade do serviço tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – status properties: status: type: string allOf: – #/definitions/upDown description: Status geral do serviço 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /opportunity/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 /opportunity/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 /opportunity/actions/publishEvent: post: description: Dispara um evento do basic records tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – event – content properties: event: type: string allOf: – #/definitions/enumEventsOpportunity description: Evento a ser disparado content: type: string maxLength: 255 description: Conteúdo serializado desse evento responses: 200: description: Ok schema: type: object required: – status properties: status: type: boolean description: Referente ao status do envio 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /opportunity/apis/opportunityHistoryIntegration: post: description: Facade referente ao histórico de integração da conta tags: – APIS x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/opportunityHistoryIntegrationFacade responses: 200: description: Ok schema: #/definitions/opportunityHistoryIntegrationFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Facade referente ao histórico de integração da conta 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/opportunityHistoryIntegrationFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /opportunity/apis/opportunityHistoryIntegration/{id}: get: description: Facade referente ao histórico de integração da conta tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/opportunityHistoryIntegrationFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError put: description: Facade referente ao histórico de integração da conta tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/opportunityHistoryIntegrationFacade responses: 200: description: Ok schema: #/definitions/opportunityHistoryIntegrationFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Facade referente ao histórico de integração da conta 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 /opportunity/apis/opportunity: post: description: Opportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/opportunityFacade responses: 200: description: Ok schema: #/definitions/opportunityFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Opportunidade 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/opportunityFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /opportunity/apis/opportunity/{id}: get: description: Opportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/opportunityFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError put: description: Opportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/opportunityFacade responses: 200: description: Ok schema: #/definitions/opportunityFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Opportunidade 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 /opportunity/apis/opportunityProposal: post: description: Proposta da oportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/opportunityProposalFacade responses: 200: description: Ok schema: #/definitions/opportunityProposalFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Proposta da oportunidade 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/opportunityProposalFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /opportunity/apis/opportunityProposal/{id}: get: description: Proposta da oportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/opportunityProposalFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError put: description: Proposta da oportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/opportunityProposalFacade responses: 200: description: Ok schema: #/definitions/opportunityProposalFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Proposta da oportunidade 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 /opportunity/apis/opportunityProposalProduct: post: description: Produto da proposta da oportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/opportunityProposalProductFacade responses: 200: description: Ok schema: #/definitions/opportunityProposalProductFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Produto da proposta da oportunidade 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/opportunityProposalProductFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /opportunity/apis/opportunityProposalProduct/{id}: get: description: Produto da proposta da oportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/opportunityProposalProductFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError put: description: Produto da proposta da oportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/opportunityProposalProductFacade responses: 200: description: Ok schema: #/definitions/opportunityProposalProductFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Produto da proposta da oportunidade 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 /opportunity/apis/opportunityProposalService: post: description: Serviço da proposta da oportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/opportunityProposalServiceFacade responses: 200: description: Ok schema: #/definitions/opportunityProposalServiceFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Serviço da proposta da oportunidade 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/opportunityProposalServiceFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /opportunity/apis/opportunityProposalService/{id}: get: description: Serviço da proposta da oportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/opportunityProposalServiceFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError put: description: Serviço da proposta da oportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/opportunityProposalServiceFacade responses: 200: description: Ok schema: #/definitions/opportunityProposalServiceFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Serviço da proposta da oportunidade 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 /opportunity/apis/opportunityAction: post: description: Ação da pportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/opportunityActionFacade responses: 200: description: Ok schema: #/definitions/opportunityActionFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Ação da pportunidade 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/opportunityActionFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /opportunity/apis/opportunityAction/{id}: get: description: Ação da pportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/opportunityActionFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError put: description: Ação da pportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/opportunityActionFacade responses: 200: description: Ok schema: #/definitions/opportunityActionFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Ação da pportunidade 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 /opportunity/apis/opportunityParameters: post: description: Parâmetros Oportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/opportunityParametersFacade responses: 200: description: Ok schema: #/definitions/opportunityParametersFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Parâmetros Oportunidade 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/opportunityParametersFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /opportunity/apis/opportunityParameters/{id}: get: description: Parâmetros Oportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/opportunityParametersFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError put: description: Parâmetros Oportunidade tags: – APIS x-senior-visibility: PUBLIC parameters: – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/opportunityParametersFacade responses: 200: description: Ok schema: #/definitions/opportunityParametersFacade 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Parâmetros Oportunidade 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: upDown: description: Up or down type: string enum: – UP – DOWN enumEventsOpportunity: description: Nome de todos os eventos do basic records type: string enum: – OPPORTUNITY_CREATED – OPPORTUNITY_UPDATED – OPPORTUNITY_PROPOSAL_CREATED – OPPORTUNITY_PROPOSAL_UPDATED – OPPORTUNITY_PRODUCT_CREATED – OPPORTUNITY_PRODUCT_UPDATED – OPPORTUNITY_SERVICE_CREATED – OPPORTUNITY_SERVICE_UPDATED 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 accountRecord: description: Conta 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: Razão social fantasyName: type: string maxLength: 255 description: Nome fantasia 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 rg: type: string maxLength: 255 description: RG cpf: type: string maxLength: 255 description: CPF einNumber: type: string maxLength: 255 description: EIN ssnNumber: type: string maxLength: 255 description: SSN url: type: string maxLength: 255 description: URL generalEmail: type: string maxLength: 255 description: E-mail geral financialEmail: type: string maxLength: 255 description: E-mail financeiro employees: type: integer format: int64 description: Número de funcionários annualIncome: type: number format: double description: Receita anual registrationDate: type: string format: date-time description: Data de cadastro customerSince: type: string format: date-time description: Cliente deste birthDate: type: string format: date-time description: Data de nascimento receiveEmail: type: boolean description: Se recebe e-mail receiveSurvey: type: boolean description: Se recebe pesquisa receiveTrackEmail: type: boolean description: Se recebe monitoramento do e-mail active: type: boolean description: Se está ativo 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/originRecord description: Origem nit: type: string maxLength: 255 description: NIT cedulaCiudadania: type: string maxLength: 255 description: Cédula de ciudadanía passport: type: string maxLength: 255 description: Passaporte 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 idErp: type: string maxLength: 255 description: ID no sistema terceiro name: type: string maxLength: 255 description: Nome active: type: string maxLength: 255 description: Se está ativo company: type: object allOf: – #/definitions/companyRecord description: Empresa companyRecord: description: Empresa type: object properties: id: type: integer format: int64 description: ID companyErp: type: string maxLength: 255 description: ID no sistema terceiro name: type: string maxLength: 255 description: Razão social 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 branchErp: type: string maxLength: 255 description: ID no sistema terceiro name: type: string maxLength: 255 description: Razão social fantasyName: type: string maxLength: 255 description: Nome fantasia cnpj: type: string maxLength: 255 description: CNPJ parent: type: integer format: int64 description: Empresa matriz nit: type: string maxLength: 255 description: NIT activityBranchRecord: description: Empresa/filial 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 active: type: boolean description: Se está ativo company: type: object allOf: – #/definitions/companyRecord description: Empresa companyGroupRecord: description: Grupo de empresas 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 active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados company: type: object allOf: – #/definitions/companyRecord description: Empresa originRecord: description: Origem 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 company: type: object allOf: – #/definitions/companyRecord description: Empresa 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 contactRecord: description: Contato type: object properties: id: type: integer format: int64 description: ID search: type: integer format: int64 description: Pesquisa privateUser: type: integer format: int64 description: Usuário privado sequentialErp: type: string maxLength: 255 description: Sequencial no ERP active: type: boolean description: Ativo visibility: type: integer format: int64 description: Visibilidade name: type: string maxLength: 255 description: Nome 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 sexual 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: Numero 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 cell: 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: Email corporateEmail: type: boolean description: Email corporativo receiveCampaign: type: boolean description: Recebe Campanha receiveSearch: type: boolean description: 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ções customFields: type: string format: byte description: Campos customizados 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/originRecord description: Origem account: type: object allOf: – #/definitions/accountRecord description: Conta superiorContact: type: object allOf: – #/definitions/contactRecord description: Contato superior companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa/filial 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 da cidade no IBGE name: type: string maxLength: 255 description: Nome active: type: boolean description: 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 customFields: type: string format: byte description: Campos customizados state: type: object allOf: – #/definitions/stateRecord description: Estado 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 active: type: boolean description: Ativo customFields: type: string format: byte description: Campos customizados countryCode: type: integer format: int64 description: Código do país departmentRecord: description: Departamento do contato 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: Ativo usesOccurrence: type: boolean description: Usa ocorrência customFields: type: string format: byte description: Campos customizados functionRecord: description: Objeto referente a 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: Ativo customFields: type: string format: byte description: Campos customizados opportunityOriginRecord: description: Origem da oportunidade 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 companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa/filial 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 userRecord: description: Usuário 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 lastName: type: string maxLength: 255 description: Sobrenome functionDescription: 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 lossReasonRecord: description: Motivo da perda type: object properties: id: type: integer format: int64 description: ID name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa/filial saleReasonRecord: description: Motivo da venda type: object properties: id: type: integer format: int64 description: ID name: type: string maxLength: 255 description: Nome active: type: boolean description: Se está ativo companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa/filial operatorRecord: description: Operador 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 lastName: type: string maxLength: 255 description: Sobrenome functionDescription: type: string maxLength: 255 description: Descrição da função email: type: string maxLength: 255 description: E-mail active: type: boolean description: Se está ativo businessTypeRecord: description: Modalidade de negócio type: object properties: id: type: integer format: int64 description: ID name: type: string maxLength: 255 description: Nome notes: type: string maxLength: 255 description: Observações active: type: boolean description: Se está ativo companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa/filial redispatchRecord: description: Redespacho 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 active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa/filial carrierRecord: description: Transportadora 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 active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa/filial productRecord: description: Produto type: object properties: id: type: integer format: int64 description: ID name: type: string maxLength: 255 description: Nome derivationName: type: string maxLength: 255 description: Nome da derivação partNumber: type: string maxLength: 255 description: Part number ncm: type: string maxLength: 255 description: NCM derivationPartNumber: type: string maxLength: 255 description: Part number da derivação active: type: boolean description: Se está ativo saleValue: type: string description: Valor de venda maxDescount: type: number format: double description: Desconto máximo standardQuantity: type: string maxLength: 255 description: Quantidade padrão correctionFactor: type: string maxLength: 255 description: Fator de correção saleType: type: boolean description: Tipo de venda ipi: type: string maxLength: 255 description: IPI icms: type: string maxLength: 255 description: ICMS weight: type: string maxLength: 255 description: Peso currencyId: type: integer format: int64 description: Id da moeda tax: type: string maxLength: 255 description: Taxa notes: type: string maxLength: 255 description: Observações origin: type: string maxLength: 255 description: Origem customFields: type: string format: byte description: Campos customizados measurementUnit: type: object allOf: – #/definitions/measurementUnitRecord description: Unidade de medida company: type: object allOf: – #/definitions/companyRecord description: Empresa serviceRecord: description: Serviço type: object properties: id: type: integer format: int64 description: ID name: type: string maxLength: 255 description: Nome partNumber: type: string maxLength: 255 description: Part number ncm: type: string maxLength: 255 description: NCM active: type: boolean description: Se está ativo saleValue: type: string description: Valor de venda notes: type: string maxLength: 255 description: Observações maxDiscount: type: string description: Desconto máximo customFields: type: string format: byte description: Campos customizados serviceCategory: type: object allOf: – #/definitions/serviceCategoryRecord description: Categoria do serviço measurementUnit: type: object allOf: – #/definitions/measurementUnitRecord description: Unidade de medida company: type: object allOf: – #/definitions/companyRecord description: Empresa measurementUnitRecord: description: Unidade de medida type: object properties: id: type: integer format: int64 description: ID name: type: string maxLength: 255 description: Nome initials: type: string maxLength: 255 description: Sigla active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados depositRecord: description: Depósito 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 active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa/filial priceTableRecord: description: Tabela de preço 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 active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos Customizados companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa/filial serviceCategoryRecord: description: Categoria de serviço 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 active: type: boolean description: Se está ativo customFields: type: string format: byte description: Campos customizados company: type: object allOf: – #/definitions/companyRecord description: Empresa actionTypeRecord: description: Tipo de ação type: object properties: id: type: integer format: int64 description: ID name: type: string maxLength: 255 description: Nome notes: type: string maxLength: 255 description: Observações strategicAction: type: boolean description: Se é uma ação estratégica usesOpportunity: type: boolean description: Se usa oportunidade usesOccurrence: type: boolean description: Se usa ocorrência usesContract: type: boolean description: Se usa contrato usesEvent: type: boolean description: Se usa evento companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa/filial opportunityTypeRecord: description: Record referente ao tipo da oportunidade 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 note: type: string maxLength: 255 description: Observações active: type: boolean description: Ativo companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa Filial paymentTermRecord: description: Dados do prazo de pagamento type: object properties: id: type: integer format: int64 description: Id do prazo de pagamento idErp: type: string maxLength: 255 description: Id do ERP name: type: string maxLength: 255 description: Nome do tipo do pagamento active: type: boolean description: Informa se o tipo do pagamento está ativo generatesInstallments: type: boolean description: Informa se é para gerar parcelas amountInstallments: type: integer format: int64 description: Informa a quantidade de parcelas additionInstallments: type: number format: double description: Informa o acréscimo das parcelas / juros rounding: type: integer format: int64 description: Informa o arredondamento, se for igual a 1 não deixa o valor quebrado customFields: type: string format: byte description: Campos customizados company: type: object allOf: – #/definitions/companyRecord description: Empresa 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 opportunityHistoryIntegrationFacade: description: Facade referente ao histórico de integração da conta type: object properties: id: type: integer format: int64 description: Id de identificação maximum: 99999999999 dateTime: type: string format: date-time description: Data e hora status: type: integer format: int64 description: Status onde 0: Não Integrado 1: Integrado: 2: Falha ao integrar minimum: 0 maximum: 2 content: type: string maxLength: 255 description: Conteúdo opportunity: type: object allOf: – #/definitions/opportunityFacade description: Oportunidade opportunityFacade: description: Opportunidade type: object properties: id: type: integer format: int64 description: ID account: type: object allOf: – #/definitions/accountRecord description: Conta companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa/filial date: type: string format: date-time description: Data hour: type: string format: date-time description: Hora contact: type: object allOf: – #/definitions/contactRecord description: Contact companyId: type: integer format: int64 description: ID da empresa name: type: string maxLength: 255 description: Nome da oportunidade subType: type: integer format: int64 description: Subtipo da oportunidade origin: type: object allOf: – #/definitions/opportunityOriginRecord description: Origem da oportunidade 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: 65535 description: Histórico description: type: string maxLength: 65535 description: Descrição timestampRegistration: type: string format: date-time description: Cadastro timestamp operatorRegistration: type: object allOf: – #/definitions/operatorRecord description: Cadastro do operador timestampChange: type: string format: date-time description: Alteração do timestamp operatorChange: type: object allOf: – #/definitions/operatorRecord description: Alteração do operador businessType: type: object allOf: – #/definitions/businessTypeRecord description: Modalidade de negócio customFields: type: string format: byte description: Campos customizados 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 proposals: type: array items: type: object allOf: – #/definitions/opportunityProposalFacade description: Propostas actions: type: array items: type: object allOf: – #/definitions/opportunityActionFacade description: Ações opportunityProposalFacade: description: Proposta da oportunidade type: object properties: id: type: integer format: int64 description: ID opportunity: type: object allOf: – #/definitions/opportunityFacade description: Oportunidade date: type: string format: date-time description: Data hour: type: string format: date-time description: Hora proposalNumber: type: string maxLength: 255 description: Número da proposta orderNumber: type: string maxLength: 255 description: Número do pedido proposalReview: type: integer format: int64 description: Revisão da proposta shortName: type: string maxLength: 255 description: Nome resumido template: type: integer format: int64 description: Template user: type: object allOf: – #/definitions/userRecord description: Usuário recipientType: type: integer format: int64 description: Tipo de destinatário contactId: type: integer format: int64 description: ID do contato recipientName: type: string maxLength: 255 description: Nome do destinatário recipientDepartment: type: string maxLength: 255 description: Departamento do destinatário recipientPhone: type: string maxLength: 255 description: Telefone do destinatário recipientEmail: type: string maxLength: 255 description: E-mail do destinatário recipientEmailCc: type: string maxLength: 255 description: Cc do e-mail do destinatário recipientEmailBcc: type: string maxLength: 255 description: Cco do e-mail do destinatário shippingStatus: type: boolean description: Se foi enviado proposalStatus: type: integer format: int64 description: Status da proposta shippingDate: type: string format: date-time description: Data de envio shippingTime: type: string format: date-time description: Hora de envio paymentTerm: type: object allOf: – #/definitions/paymentTermRecord description: Prazo de pagamento paymentMethod: type: integer format: int64 description: Forma de pagamento paymentType: type: integer format: int64 description: Tipo de pagamento ipi: type: string maxLength: 255 description: IPI icms: type: string maxLength: 255 description: ICMS pis: type: string maxLength: 255 description: PIS cofins: type: string maxLength: 255 description: COFINS suframa: type: string maxLength: 255 description: SUFRAMA freeZone: type: string maxLength: 255 description: Zona franca carrier: type: object allOf: – #/definitions/carrierRecord description: Transportadora redispatch: type: object allOf: – #/definitions/redispatchRecord description: Re-despacho shippingType: type: integer format: int64 description: Tipo de frete shippingTypeOther: type: string maxLength: 255 description: Tipo de frete outro valueShipping: type: number format: double description: Valor do frete warrantly: type: string maxLength: 255 description: Garantia validity: type: string maxLength: 255 description: Validade delivery: type: string maxLength: 255 description: Entrega groupCategory: type: boolean description: Se agrupa categoria sendCopy: type: boolean description: Se envia cópia showValues: type: boolean description: Se mostra os valores notes: type: string maxLength: 255 description: Observações inputValue: type: number format: double description: Valor de entrada languageLayout: type: integer format: int64 description: Idioma layout cpUser1Column: type: string maxLength: 255 description: Cp User1 coluna installments: type: integer format: int64 description: Número de parcelas tax: type: number format: double description: Taxa exchangeRate: type: number format: double description: Taxa de câmbio exchangeRateConvert: type: integer format: int64 description: Converter taxa de câmbio installmentValue: type: number format: double description: Valor da parcela documents: type: string maxLength: 255 description: Documentos emailText: type: string maxLength: 255 description: Texto do e-mail sellerUser: type: object allOf: – #/definitions/userRecord description: Usuário vendedor representativeUser: type: object allOf: – #/definitions/userRecord description: Usuário representante timestampRegistration: type: string format: date-time description: Cadastro timestamp operatorRegistration: type: object allOf: – #/definitions/operatorRecord description: Cadastro do operador timestampChange: type: string format: date-time description: Alteração do timestamp operatorChange: type: object allOf: – #/definitions/operatorRecord description: Alteração do operador validProposal: type: integer format: int64 description: Valida proposta groupProductService: type: boolean description: Se agrupa produto e serviço proposalDiscountValue: type: number format: double description: Valor do desconto da proposta costCenter: type: string maxLength: 255 description: Centro de custo customFields: type: string format: byte description: Campos customizados appId: type: string maxLength: 255 description: App ID default: 0 classification1: type: string maxLength: 50 description: Classificação 1 classification2: type: string maxLength: 50 description: Classificação 2 classification3: type: string maxLength: 50 description: Classificação 3 products: type: array items: type: object allOf: – #/definitions/opportunityProposalProductFacade description: Produtos services: type: array items: type: object allOf: – #/definitions/opportunityProposalServiceFacade description: Serviços opportunityProposalProductFacade: description: Produto da proposta da oportunidade type: object properties: id: type: integer format: int64 description: ID proposal: type: object allOf: – #/definitions/opportunityProposalFacade description: Proposta purposeId: type: integer format: int64 description: ID da finalidade companyId: type: integer format: int64 description: Empresa sequentialErp: type: string maxLength: 255 description: Sequencial no ERP proposalReview: type: integer format: int64 description: Revisão da proposta product: type: object allOf: – #/definitions/productRecord description: Produto quantity: type: number format: double description: Quantidade deposit: type: object allOf: – #/definitions/depositRecord description: Depósito priceTable: type: object allOf: – #/definitions/priceTableRecord description: Tabela de preço saleType: type: integer format: int64 description: Tipo de venda saleValue: type: number format: double description: Valor de venda applyFactor: type: boolean description: Se aplica fator discountValue: type: number format: double description: Valor do desconto discountPercentage: type: number format: double description: Porcentagem de desconto taxValue: type: number format: double description: Valor da taxa showValue: type: boolean description: Mostrar valor showPhoto: type: boolean description: Mostrar foto showAttachment: type: boolean description: Mostrar anexo notes: type: string maxLength: 255 description: Observações timestampRegistration: type: string format: date-time description: Cadastro timestamp operatorRegistration: type: object allOf: – #/definitions/operatorRecord description: Cadastro do operador timestampChange: type: string format: date-time description: Alteração do timestamp operatorChange: type: object allOf: – #/definitions/operatorRecord description: Alteração do operador integratedItem: type: integer format: int64 description: Item integrado invoicedQuantity: type: number format: double description: Quantidade faturada canceledQuantity: type: number format: double description: Quantidade cancelada ipi: type: number format: double description: IPI ipiValue: type: string description: Valor IPI icms: type: number format: double description: ICMS icmsSt: type: number format: double description: ICMS-ST pis: type: number format: double description: PIS cofins: type: number format: double description: COFINS iss: type: number format: double description: ISS inss: type: number format: double description: INSS irrf: type: number format: double description: IRRF freeZone: type: number format: double description: Zona franca suframa: type: number format: double description: SUFRAMA freightApportionment: type: number format: double description: Rateio do frete customFields: type: string format: byte description: Campos customizados opportunityProposalServiceFacade: description: Serviço da proposta da oportunidade type: object properties: id: type: integer format: int64 description: ID opportunity: type: object allOf: – #/definitions/opportunityFacade description: Oportunidade proposal: type: object allOf: – #/definitions/opportunityProposalFacade description: Proposta companyId: type: integer format: int64 description: ID da empresa sequentialErp: type: string maxLength: 255 description: Sequencial no ERP proposalReview: type: integer format: int64 description: Revisão da proposta service: type: object allOf: – #/definitions/serviceRecord description: Serviço quantity: type: number format: double description: Quantidade priceTable: type: object allOf: – #/definitions/priceTableRecord description: Tabela de preço saleValue: type: number format: double description: Valor de venda discountValue: type: number format: double description: Valor do desconto showValue: type: boolean description: Mostrar valor showPhoto: type: boolean description: Mostrar foto showAttachment: type: boolean description: Mostrar anexo notes: type: string maxLength: 255 description: Observações timestampRegistration: type: string format: date-time description: Cadastro timestamp operatorRegistration: type: object allOf: – #/definitions/operatorRecord description: Cadastro do operador timestampChange: type: string format: date-time description: Alteração do timestamp operatorChange: type: object allOf: – #/definitions/operatorRecord description: Alteração do operador integratedItem: type: boolean description: Se o item é integrado sequentialDependence: type: integer format: int64 description: Dependência sequencial customFields: type: string format: byte description: Campos customizados opportunityActionFacade: description: Ação da pportunidade type: object properties: id: type: integer format: int64 description: Id opportunity: type: object allOf: – #/definitions/opportunityFacade description: Oportunidade actionType: type: object allOf: – #/definitions/actionTypeRecord description: Tipo de ação date: type: string format: date-time description: Data hour: type: string format: date-time description: Hora changeOpportunity: type: boolean description: Se muda a oportunidade phase: type: integer format: int64 description: Estágio 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 proposalNumber: type: string maxLength: 255 description: Número da proposta orderNumber: type: string maxLength: 255 description: Número do pedido 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 effectiveDeliveryDate: type: string format: date-time description: Data efetiva de entrega 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 notes: type: string maxLength: 255 description: Observações timestampRegistration: type: string format: date-time description: Cadastro timestamp operatorRegistration: type: object allOf: – #/definitions/operatorRecord description: Cadastro do operador timestampChange: type: string format: date-time description: Alteração do timestamp operatorChange: type: object allOf: – #/definitions/operatorRecord description: Alteração do operador opportunityParametersFacade: description: Parâmetros Oportunidade type: object properties: id: type: integer format: int64 description: ID companyBranch: type: object allOf: – #/definitions/companyBranchRecord description: Empresa filial funnelStage1: type: string maxLength: 255 description: Funil etapa 1 funnelStage2: type: string maxLength: 255 description: Funil etapa 2 funnelStage3: type: string maxLength: 255 description: Funil etapa 3 funnelStage4: type: string maxLength: 255 description: Funil etapa 4 closedStageFunnel: type: string maxLength: 255 description: Funil etapa fechada lostStageFunnel: type: string maxLength: 255 description: Funil etapa perdida changeAccountStep1: type: boolean description: Muda conta etapa 1 changeAccountStep2: type: boolean description: Muda conta etapa 2 changeAccountStep3: type: boolean description: Muda conta etapa 3 changeAccountStep4: type: boolean description: Muda conta etapa 4 changeAccountStageClosed: type: boolean description: Muda conta etapa fechada changeForecastStep1: type: boolean description: Muda forecast etapa 1 changeForecastStep2: type: boolean description: Muda forecast etapa 2 changeForecastStep3: type: boolean description: Muda forecast etapa 3 changeForecastStep4: type: boolean description: Muda forecast etapa 4 changeForecastLostStage: type: boolean description: Muda forecast etapa perdida changeForecastClosedStage: type: boolean description: Muda forecast etapa perdida stepPercentage1: type: integer format: int64 description: Percentual etapa 1 stepPercentage2: type: integer format: int64 description: Percentual etapa 2 stepPercentage3: type: integer format: int64 description: Percentual etapa 3 stepPercentage4: type: integer format: int64 description: Percentual etapa 4 pipelineStep1: type: boolean description: Pipeline etapa 1 pipelineStep2: type: boolean description: Pipeline etapa 2 pipelineStep3: type: boolean description: Pipeline etapa 3 pipelineStep4: type: boolean description: Pipeline etapa 4 lostStatePipeline: type: boolean description: Pipeline etapa perdida closedStagePipeline: type: boolean description: Pipeline etapa fechada proposalDefaultText: type: string maxLength: 255 description: Texto padrão proposta emailProposalDefaultText: type: string maxLength: 255 description: Texto padrão proposta e-mail proposalShowsChargeType: type: boolean description: Proposta mostra tipo cobrança proposalStandardValidity: type: string maxLength: 255 description: Proposta validade padrão proposalStandardGuarantee: type: string maxLength: 255 description: Proposta garantia padrão proposalStandardDelivery: type: string maxLength: 255 description: Proposta entrega padrão proposalStandardPis: type: string maxLength: 255 description: Proposta PIS padrão proposalStandardCofins: type: string maxLength: 255 description: Proposta cofins padrão proposalStandardCustomerShipping: type: string maxLength: 255 description: Proposta frete cliente padrão proposalStandardSupplierFreight: type: string maxLength: 255 description: Proposta frete fornecedor padrão proposalShippingOtherStandard: type: string maxLength: 255 description: Proposta frete outro padrão proposalUseProductBatch: type: boolean description: Proposta usa produto lote proposalConsistsProductTypeOpportunity: type: boolean description: Proposta consiste produto tipo oportunidade proposalConsistsDeadlineDelivery: type: boolean description: Proposta consiste prazo entrega proposalConsistsProductDeposit: type: boolean description: Proposta consiste depósito produto proposalConsistsUnitMeasureProduct: type: boolean description: Proposta consiste unidade medida produto proposalLogo: type: string maxLength: 255 description: Proposta logo proposalPosX: type: string maxLength: 255 description: Proposta posição X proposalPosY: type: string maxLength: 255 description: Proposta posição Y proposalWidth: type: string maxLength: 255 description: Proposta largura proposalHeight: type: string maxLength: 255 description: Proposta altura proposalCover: type: string maxLength: 255 description: Proposta capa proposalVerse: type: string maxLength: 255 description: Proposta verso proposalThirdFile: type: string maxLength: 255 description: Proposta arquivo terceiro proposalThirdFileSends: type: string maxLength: 255 description: Proposta arquivo terceiro envia proposalAppFile: type: string maxLength: 255 description: Proposta arquivo APP proposalCreateAction: type: boolean description: Proposta cria ação proposalTypeActionId: type: integer format: int64 description: Proposta tipo ação ID proposalCreateFollowUp: type: boolean description: Proposta cria follow up proposalFollowUpDays: type: integer format: int64 description: Proposta follow up dias proposalChangeFunnelStage: type: boolean description: Proposta muda etapa funil proposalStepFunnelId: type: integer format: int64 description: Proposta etapa funil ID proposalFollowUpText: type: string maxLength: 255 description: Proposta follow up texto proposalDisplayRepresentative: type: boolean description: Proposta exibe representante proposalBackGroundR: type: string maxLength: 255 description: Fundo proposta R proposalBackGroundG: type: string maxLength: 255 description: Fundo proposta G proposalBackGroundB: type: string maxLength: 255 description: Fundo proposta B usesQuantitative: type: boolean description: Usa quantitativo quantitativeName: type: string maxLength: 255 description: Nome quantitativo quantitativeHouses: type: boolean description: Casas quantitativo useNumbering: type: boolean description: Usa numeração doubleNumbering: type: boolean description: Dupla numeração numberingValue: type: integer format: int64 description: Valor numeração opportunityStandByUse: type: boolean description: Oportunidade stand by usa opportunityStandByDataProcess: type: string format: date-time description: Oportunidade stand by data processa opportunityStandByEnterDays: type: integer format: int64 description: Oportunidade stand by entra dias opportunityStandByEnterActionUse: type: boolean description: Oportunidade stand by entra ação usa opportunityStandByEnterTypeActionId: type: integer format: int64 description: Oportunidade stand by entra tipo ação ID opportunityStandByEnterTextAction: type: string maxLength: 255 description: Oportunidade stand by entra ação texto opportunityStandbyExitDays: type: integer format: int64 description: Oportunidade stand by sai dias opportunityStandByExitActionUse: type: boolean description: Oportunidade stand by sai ação usar opportunityStandByExitTypeActionId: type: integer format: int64 description: Oportunidade stand by sai tipo ação ID opportunityStandByExitActionText: type: string maxLength: 255 description: Oportunidade stand by sai ação texto opportunityStandByStep: type: boolean description: Oportunidade stand by etapa opportunityRequiresDescription: type: integer format: int64 description: Oportunidade obriga descrição opportunityRequiresSubtype: type: integer format: int64 description: Oportunidade obriga subtipo opportunityRequiresForecastClosing: type: integer format: int64 description: Oportunidade obriga previsão fechamento opportunityRequiresForecastDelivery: type: integer format: int64 description: Oportunidade obriga previsão entrega opportunityRequiresEffectiveDelivery: type: integer format: int64 description: Oportunidade obriga efetiva entrega opportunityRequiresForecastValue: type: integer format: int64 description: Oportunidade obriga previsão valor opportunityRequiresEffectiveValue: type: integer format: int64 description: Oportunidade obriga efetivo valor opportunityRequiresForecastCurrency: type: integer format: int64 description: Oportunidade obriga previsão moeda opportunityRequiresEffectiveCurrency: type: integer format: int64 description: Oportunidade obriga efetiva moeda opportunityRequiresForecastQuantitative: type: integer format: int64 description: Oportunidade obriga previsão quantitativo opportunityRequiresEffectiveQuantitative: type: integer format: int64 description: Oportunidade obriga efetivo quantitativo opportunityFieldUser1: type: string maxLength: 255 description: Oportunidade campos usuário 1 opportunityFieldUser2: type: string maxLength: 255 description: Oportunidade campos usuário 2 opportunityFieldUser3: type: string maxLength: 255 description: Oportunidade campos usuário 3 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