erpx_fin_int

2.0info: 1.1.5 facade description: Consumidor de eventos para os testes de EDL/SDL x-senior-domain: erpx_fin_int x-senior-domain-path: erpx_fin_int x-senior-service-path: facade contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: api.senior.com.br /erpx_fin_int/facadesecurityDefinitions: bearerAuth: type: apiKey in: header name: Authorization – application/json – application/jsonparameters: clientId: name: client_id type: string in: header required: true description: Identificação da aplicação cadastrada no portal do desenvolvedor (api.xplatform.com.br)paths: /getTitleSuggestions: post: description: Query que irá sugerir os títulos para a sua geração em lote ### Resources - res://senior.com.br/erpx_fin/int_facade/queries/getTitleSuggestions x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – pageRequest properties: filter: #/definitions/recFilterSugestionAccountsReceivable pageRequest: #/definitions/recPageRequest responses: 200: description: Ok schema: type: object required: – titles – totalElements properties: titles: #/definitions/recSugestionAccountsReceivable totalElements: type: integer description: Total de duplicatas sugeridas 403: description: Permissão negada 404: description: Registro não encontrado 400: description: Requisição inválida, parâmetros obrigatórios não informados ou campo informado incorretamente default: description: Error response schema: #/definitions/genericError get: description: Query que irá sugerir os títulos para a sua geração em lote ### Resources - res://senior.com.br/erpx_fin/int_facade/queries/getTitleSuggestions x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – pageRequest properties: filter: #/definitions/recFilterSugestionAccountsReceivable pageRequest: #/definitions/recPageRequest responses: 200: description: Ok schema: type: object required: – titles – totalElements properties: titles: #/definitions/recSugestionAccountsReceivable totalElements: type: integer description: Total de duplicatas sugeridas 403: description: Permissão negada 404: description: Registro não encontrado 400: description: Requisição inválida, parâmetros obrigatórios não informados ou campo informado incorretamente default: description: Error response schema: #/definitions/genericError /personAccountsReceivableFacadeCreated: post: description: Event of personAccountsReceivable FacadeCreated x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/personAccountsReceivableFacadeOutput responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /personAccountsReceivableFacadeUpdated: post: description: Event of personAccountsReceivable FacadeUpdated x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/personAccountsReceivableFacadeOutput responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /personAccountsReceivableFacadeDeleted: post: description: Event of personAccountsReceivable FacadeDeleted x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/personAccountsReceivableFacadeOutput responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/personAccountsReceivable: post: description: The create request primitive for the personAccountsReceivable facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/personAccountsReceivableFacadeInput responses: 200: description: Ok schema: #/definitions/personAccountsReceivableFacadeOutput default: description: Error response schema: #/definitions/genericError /apis/personAccountsReceivable/{id}: put: description: The update request primitive for the personAccountsReceivable facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string – name: input in: body required: true schema: #/definitions/personAccountsReceivableFacadeInput responses: 200: description: Ok schema: #/definitions/personAccountsReceivableFacadeOutput default: description: Error response schema: #/definitions/genericError delete: description: The delete request primitive for the personAccountsReceivable facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: id in: path required: true type: string responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /apis/getReceivableTitle: post: description: The create request primitive for the getReceivableTitle facade. deprecated: false tags: – Apis security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/getReceivableTitleFacadeInput responses: 200: description: Ok schema: #/definitions/getReceivableTitleFacadeOutput default: description: Error response schema: #/definitions/genericErrordefinitions: enumValueType: type: string enum: – EQUAL – SPLIT enumAccountingBaseDate: type: string enum: – ENTRY – DUE enumTitleSituation: type: string enum: – OPEN_CREDIT_PROTECTION_AGENCY – OPEN_NEGOTIATION – OPEN_LAWYER – OPEN_NORMAL – OPEN_NOTARY – OPEN_SETTLEMENT – OPEN_TAXES – OPEN_LEGAL_RETURN – OPEN_PROTESTED – OPEN_REPRESENTATIVE – OPEN_SUSPENDED – OPEN_HUMAN_RESOURCES – OPEN_EXTERNAL – CANCELED – OPEN_BOOK_COLLECTION – OPEN_COLLECTION – LIQUIDATED_NORMAL – LIQUIDATED_NOTARY – LIQUIDATED_TAXES – LIQUIDATED_COMPENSATED – LIQUIDATED_COLLECTION – LIQUIDATED_PROTESTED – LIQUIDATED_REPLACED – LIQUIDATED_HUMAN_RESOURCES – LIQUIDATED_EXTERNAL – OPEN_ELECTRONIC_PAYMENT – WRITE_OFF_PROCESSING – OPEN_ELECTRONIC_COLLECTION interestType: type: string enum: – SIMPLE_INTEREST – COMPOUND_INTEREST enumEmailStatus: type: string enum: – NOT_SENT – PROCESSING – SENT – ERROR enumBankingSituation: type: string enum: – NOT_SENT – SENT_GENERATION – RETURNED_GENERATION – RETURNED_PAID – CANCELED – ERROR – CANCELING earlyPaymentDiscountPeriod: type: string enum: – DAILY – WEEKLY – BIWEEKLY – MONTHLY – QUARTELY – SEMIANNUAL – ANNUAL recPageRequest: type: object required: – offset – size properties: offset: type: integer description: Página atual size: type: integer description: Total de registros da página recFilterSugestionAccountsReceivable: type: object required: – titleQuantity – companyIdentifier – branchIdentifier – emissionDate – entryDate – transactionId – value – firstExpiration – titleTypeId properties: titleQuantity: type: integer description: Quantidade de títulos a serem sugeridos companyIdentifier: #/definitions/companyIdentifier branchIdentifier: #/definitions/branchIdentifier emissionDate: type: string description: Data de emissão do futuro título format: date entryDate: type: string description: Data de entrada do futuro título format: date customerId: #/definitions/genericIdCode transactionId: #/definitions/genericIdCode paymentMethodId: #/definitions/genericIdCode financialAccountId: #/definitions/genericIdCode costCenterId: #/definitions/genericIdCode value: type: string description: Valor a serem gerados os futuros títulos firstExpiration: type: string description: Data do primeiro vencimento do primeiro título format: date conditionPayment: #/definitions/genericIdCode observation: type: string description: Observação titlePrefix: type: string description: Número sugestivo do futuro título titleTypeId: #/definitions/genericIdCode titleCurrency: #/definitions/genericIdCode valueType: #/definitions/enumValueType accountingBaseDate: #/definitions/enumAccountingBaseDate quotation: type: string description: Cotação a ser utilizada na geração do título companyIdentifier: type: object properties: id: type: string description: Identificador único da empresa code: type: integer description: Código da empresa branchIdentifier: type: object properties: id: type: string description: Identificador único da filial code: type: integer description: Codigo da filial documentNumber: type: string description: Número do CNPJ ou CPF nifNumber: type: string description: Número de identificação fiscal genericIdCode: type: object properties: id: type: string description: Identificador da entidade code: type: string description: Código de negócio recSugestionAccountsReceivable: type: object required: – companyIdentifier – branchIdentifier – personIdentifier – titleNumber – titleTypeIdentifier – transaction – emissionDate – entryDate – originalDueDate – probablePayment – originalValue – currency – additionalInformation properties: id: type: string description: Identificador do título companyIdentifier: #/definitions/companyIdentifier branchIdentifier: #/definitions/branchIdentifier personIdentifier: #/definitions/personIdentifier titleNumber: type: string description: Nº Título titleTypeIdentifier: #/definitions/titleTypeIdentifier transaction: #/definitions/genericIdCode emissionDate: type: string description: Data Emissão format: date entryDate: type: string description: Data Entrada format: date originalDueDate: type: string description: Vencimento Original format: date extendedDueDate: type: string description: Vencimento Prorrogado/Juros format: date probablePayment: type: string description: Data Provável Pagamento format: date titleSituation: #/definitions/enumTitleSituation originalValue: type: string description: Valor Original openValue: type: string description: Valor aberto currency: #/definitions/genericIdCode apportionment: #/definitions/recApportionment interest: #/definitions/recInterest fine: #/definitions/recFine negotiatedValues: #/definitions/recNegotiatedValues credit: type: boolean description: Título é de crédito discounts: #/definitions/recDiscounts additionalInformation: #/definitions/recAdditionalInformationTitleReceiveble personIdentifier: type: object properties: id: type: string description: Identificador único da pessoa code: type: integer description: Codigo da pessoa documentNumber: type: string description: Número do CNPJ ou CPF nifNumber: type: string description: Número de identificação fiscal titleTypeIdentifier: type: object properties: id: type: string description: Identificador únido do típo de título code: type: string description: Código do típo de título recApportionment: type: object properties: financialAccount: #/definitions/recGeneric costCenter: #/definitions/recGeneric recGeneric: type: object required: – id properties: id: type: string description: Identificador da entidade label: type: string description: Descrição do label code: type: string description: Código de negócio description: type: string description: Descrição de negócio recInterest: type: object properties: dailyInterestAmount: type: string description: Valor Juros Dia interestPercentage: type: number description: Percentual/Tipo Juros format: double interestType: #/definitions/interestType interestToleranceDays: type: integer description: Dias Tolerância Juros extensionWithInterests: type: boolean description: Prorrogação c/ Juros recFine: type: object properties: finePercentage: type: number description: Percentual/Tolerância Multa format: double fineToleranceDays: type: integer description: Dias Tolerância Multa recNegotiatedValues: type: object properties: negotiatedValueDate: type: string description: Data Valores Negociados format: date negotiatedInterestValue: type: string description: Valor Juros Negociados negotiatedFineValue: type: string description: Valor Multa Negociada negotiatedDiscountValue: type: string description: Valor Descontos Negociados othersNegotiated: type: string description: Outros Negociados negotiatedCurrencyQuotation: type: string description: Cotação Moeda Negociada negotiatedQuotationValue: type: string description: Valor da cotação da moeda do reajuste na data do titulo recDiscounts: type: object properties: advancement: type: boolean description: Calcula Desc. Antecipação limitDate: type: string description: Data/Tolerância Desconto format: date tolerance: type: integer description: Tolerância Desconto value: type: string description: Valor Desconto percentage: type: number description: Percentual Desconto format: double recAdditionalInformationTitleReceiveble: type: object properties: observation: type: string description: Observação paymentMethod: #/definitions/genericIdCode bearer: #/definitions/genericIdCode wallet: #/definitions/genericIdCode barCode: type: string description: Código Barra draweeCode: #/definitions/genericIdCode getReceivableTitleFacadeInput: type: object properties: id: type: string description: Identificador do título titleNumber: type: string description: Número do título company: #/definitions/companyIdentifier branch: #/definitions/branchIdentifier person: #/definitions/personIdentifier titleType: #/definitions/titleTypeIdentifier getReceivableTitleFacadeOutput: type: object required: – title properties: #/definitions/recEditionReceivable recEditionReceivable: type: object required: – id – branch – titleType – customer – currency – titleNumber – titleSituation – predictedTitle – effectiveAdvanceTitle – originalDueDate – extendedDueDate – emissionDate – entryDate – probablePaymentDate – values – observation – extensionWithInterests properties: id: type: string description: Identificador do título company: #/definitions/recCompany branch: #/definitions/recBranch branchReceivable: #/definitions/recBranchReceivable titleType: #/definitions/recGeneric customer: #/definitions/recGeneric paymentMethod: #/definitions/recPaymentMethod currency: #/definitions/recGeneric bearer: #/definitions/recGeneric titleNumber: type: string description: Número do título titleSituation: #/definitions/enumTitleSituation predictedTitle: type: boolean description: Indicativo se o título é previsto effectiveAdvanceTitle: type: boolean description: Indicativo se o título é adiantamento efetivo originalDueDate: type: string description: Vencimento original format: date extendedDueDate: type: string description: Vencimento prorrogado format: date emissionDate: type: string description: Data de emissão format: date entryDate: type: string description: Data de entrada format: date probablePaymentDate: type: string description: Data de provável pagamento format: date lastPaymentDate: type: string description: Data do último pagamento format: date interestDays: type: integer description: Dias juros delayDays: type: integer description: Dias atraso shippingNumber: type: integer description: Número da remessa values: #/definitions/recTitleValues emailStatus: #/definitions/enumEmailStatus emailError: type: string description: Mensagem de erro do envio de email internalAccountSuggestion: #/definitions/recGeneric validSuggestedInternalAccount: type: boolean description: Indicativo se a conta interna sugerida é valida financialBatch: type: string description: Lote financeiro pixInformation: #/definitions/recPixInformation transaction: #/definitions/recGeneric billingPortfolio: #/definitions/recGeneric group: #/definitions/recGeneric bankShippingNumber: type: string description: Número de remessa de envio ao banco observation: type: string description: Observação emissionCurrencyQuotation: type: string description: Cotação Moeda Emissão extensionWithInterests: type: boolean description: Prorrogação c/ Juros defaultInterestCalculatedDate: type: string description: Data Juros Mora Calculado format: date currentAccountDigit: type: string description: Dígito da Conta Corrente barCode: type: string description: Código Barra negotiatedValueDate: type: string description: Data Valores Negociados format: date negotiatedInterestValue: type: string description: Valor Juros Negociados negotiatedFineValue: type: string description: Valor Multa Negociada negotiatedDiscountValue: type: string description: Valor Descontos Negociados othersNegotiated: type: string description: Outros Negociados negotiatedCurrencyQuotation: type: string description: Cotação Moeda Negociada calculateAnticipatedDiscount: type: boolean description: Calcula Desc. Antecipação discountCalculationPeriod: type: string description: Período para cálculo do desconto discountDate: type: string description: Data/Tolerância Desconto format: date discountPercentage: type: number description: Percentual/Valor Desconto format: double finePercentage: type: number description: Percentual/Tolerância Multa format: double fineToleranceDays: type: integer description: Dias Tolerância Multa discountToleranceDays: type: integer description: Dias Tolerância Desconto dailyDefaultInterestValue: type: string description: Valor Juros Mora Dia interestPercentage: type: number description: Percentual/Tipo Juros format: double interestType: #/definitions/interestType interestToleranceDays: type: integer description: Dias Tolerância Juros creditTitle: type: boolean description: Indicativo se titulo é de crédito ourNumber: type: string description: Nosso número credit: type: boolean description: Crédito origin: #/definitions/recOrigin recCompany: type: object required: – id – code – name – currency properties: id: type: string description: Identificador da empresa code: type: integer description: Código da empresa name: type: string description: Nome da empresa currency: type: string description: Moeda da empresa recBranch: type: object required: – id – code – name – companyId – companyCode properties: id: type: string description: Identificador da filial code: type: integer description: Código da filial name: type: string description: Nome da filial companyId: type: string description: Identificador da empresa companyCode: type: integer description: Código da empresa recBranchReceivable: type: object required: – branchId – bearerId properties: branchId: type: string description: Identificador da filial bearerId: type: string description: Identificador do portador recPaymentMethod: type: object required: – id properties: id: type: string description: Identificador da entidade code: type: string description: Código da Entidade description: type: string description: Descrição/nome do registro da entidade label: type: string description: Label legível para o front type: type: string description: Tipo pagamento recTitleValues: type: object required: – originalValue – openValue properties: originalValue: type: string description: Valor original openValue: type: string description: Valor aberto do título writeOffValue: type: string description: Valor a baixar discountValue: type: string description: Valor descontos otherDiscountsValue: type: string description: Valor outros descontos interestValue: type: string description: Valor Juros finesValue: type: string description: Valor multa otherAdditionsValue: type: string description: Valor outros acréscimos chargesValue: type: string description: Valor encargos monetaryAdjustmentValue: type: string description: Valor correção monetária netValue: type: string description: Valor líquido withholdingTaxesValue: type: string description: Valor de impostos retidos movementQuotationValue: type: string description: Valor cotação movimento readjustingValue: type: string description: Valor reajuste recPixInformation: type: object properties: id: type: string description: Identificador da entidade expirationDaysAfterDueDate: type: integer description: Data expiração em dias pós vencimento payerRequest: type: string description: Solicitação do pagador additionalInformation: type: array items: #/definitions/recPixTitleAdditionalInformation description: Informações adicionais pixCopyPaste: type: string description: Pix copia e cola pixQRCode: type: string description: Pix QRCode (Base64) integrationErrors: type: array items: #/definitions/recPixTitleError description: Erros da integração amountPaid: type: string description: Valor recebido paymentDateTime: type: string description: Data/Hora do recebimento format: date-time payerInformation: type: string description: Informação do pagador endToEndId: type: string description: Identificador único do pagamento situation: #/definitions/enumBankingSituation recPixTitleAdditionalInformation: type: object required: – id – key – value properties: id: type: string description: Identificador do registro da entidade key: type: string description: Chave value: type: string description: Valor recPixTitleError: type: object required: – id – field – message properties: id: type: string description: Identificador do registro da entidade field: type: string description: Campo message: type: string description: Mensagem recOrigin: type: object properties: invoiceNumber: type: integer description: Número nota fiscal serialCode: type: string description: Código série serialDescription: type: string description: Descrição série personAccountsReceivableFacadeInput: type: object required: – person – company – branch properties: id: type: string description: Identificador único person: #/definitions/personIdentifier creditLimit: type: string description: Limite de crédito approvedCreditLimit: type: boolean description: Limite de crédito aprovado categoryForCreditAnalysis: type: string description: Identificador de categoria para análise de crédito wallet: #/definitions/genericIdCode firstAcceptedCarrier: #/definitions/genericIdCode secondAcceptedCarrier: #/definitions/genericIdCode firstNotAcceptedCarrier: #/definitions/genericIdCode secondNotAcceptedCarrier: #/definitions/genericIdCode firstBankingInstruction: #/definitions/genericIdCode secondBankingInstruction: #/definitions/genericIdCode accountGroup: #/definitions/genericIdCode readjustingFormula: type: string description: Fórmula de reajuste do título a receber interestType: #/definitions/interestType defaultInterestPercentage: type: number description: Percentual de juros de mora format: double defaultInterestGraceDays: type: integer description: Dias de tolerância para cálculo de juros de mora finesToleranceDays: type: integer description: Dias de tolerância para multa calculateEarlyReceiptDiscount: type: boolean description: Calcular desconto por antecipação de recebimento periodForCalculatingAdvanceDiscount: #/definitions/earlyPaymentDiscountPeriod discountToleranceDays: type: integer description: Dias de tolerância para desconto defaultDiscountPercentageForGeneratedTitles: type: number description: Percentual padrão de desconto para os títulos gerados format: double defaultAdvancedDiscountPercentageForGeneratedTitles: type: number description: Percentual de desconto por antecipação para os títulos gerados format: double defaultPunctualityDiscountPercentageForGeneratedTitles: type: number description: Percentual de desconto por pontualidade para os títulos gerados format: double percentageDelayFine: type: number description: Percentual de multa para atraso format: double numberOfDaysProtest: type: integer description: Quantidade de dias para protesto invoiceEmail: type: string description: E-mail para envio de boletos company: #/definitions/companyIdentifier branch: #/definitions/branchIdentifier personAccountsReceivableFacadeOutput: type: object required: – ticket properties: ticket: type: string description: Ticket processo assincrono 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