2.0info: 1.11.0 register_boleto description: Serviço de fachada para APIs públicas de cobrança via boleto x-senior-domain: Domínio de cobrança do banking x-senior-domain-path: erpx_bnk_cob x-senior-service-path: register_boleto 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/erpx_bnk_cobsecurityDefinitions: APIKeyHeader: type: apiKey in: header name: Authorizationsecurity: – APIKeyHeader: [] – application/json – application/jsonpaths: /register_boleto/queries/healthcheck: post: description: Query for health check – SRE tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object responses: 200: description: Ok schema: type: object required: – status – checks properties: status: type: string allOf: – #/definitions/upDown description: Status checks: type: array items: type: object allOf: – #/definitions/checkData minimum: 1 description: Verify 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Query for health check – SRE tags: – Queries x-senior-visibility: PRIVATE parameters: responses: 200: description: Ok schema: type: object required: – status – checks properties: status: type: string allOf: – #/definitions/upDown description: Status checks: type: array items: type: object allOf: – #/definitions/checkData minimum: 1 description: Verify 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /register_boleto/queries/getStatusBankSlipBilling: post: description: Query de listagem do status dos títulos de cobrança boleto\n### Resources\n- res://senior.com.br/erpx_bnk_cob/register_boleto/queries/getStatusBankSlipBilling tags: – Queries x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object required: – pageRequest properties: filter: type: object allOf: – #/definitions/recFilterGetStatusBankSlipBilling description: Filtro pageRequest: type: object allOf: – #/definitions/recPageRequest description: Controle de paginação e ordenação responses: 200: description: Ok schema: type: object required: – recBankSlipBilling properties: recBankSlipBilling: type: array items: type: object allOf: – #/definitions/recBankSlipBilling minimum: 1 description: Dados da cobrança boleto 401: description: Invalid Credentials 400: description: Requisição inválida, parâmetros obrigatórios não informados ou campo informado incorretamente 403: description: Permissão negada 404: description: Registro não encontrado default: description: Error response schema: #/definitions/genericError /register_boleto/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 description: responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string 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 responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /register_boleto/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 /register_boleto/actions/registerBankSlipBilling: post: description: API responsável pela criação do registro de cobrança assíncrona de boleto\n### Resources\n- res://senior.com.br/erpx_bnk_cob/register_boleto/actions/registerBankSlipBilling tags: – Actions x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object required: – receivableBank – beneficiary – accountsReceivable properties: receivableBank: type: string allOf: – #/definitions/enumReceivableBank description: Banco do recebimento beneficiary: type: object allOf: – #/definitions/recBeneficiary description: Dados do beneficiário accountsReceivable: type: array items: type: object allOf: – #/definitions/recAccountReceivable minimum: 1 description: Lista de títulos que serão registrados as cobranças responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials 400: description: Requisição inválida, parâmetros obrigatórios não informados ou campo informado incorretamente 403: description: Permissão negada 404: description: Registro não localizado através do ID ERPX ou chave de negócio informados default: description: Error response schema: #/definitions/genericError /register_boleto/actions/registerBankSlipOperation: post: description: API responsável pela execução de operações sobre o registro de cobrança do boleto\n### Resources\n- res://senior.com.br/erpx_bnk_cob/register_boleto/actions/registerBankSlipOperation tags: – Actions x-senior-visibility: PUBLIC parameters: – name: input in: body required: true schema: type: object properties: processId: type: string description: Id do processo operationType: type: string allOf: – #/definitions/enumOperationType description: Tipo de operação a ser executada accountsReceivableId: type: array items: type: string description: Lista de identificadores dos títulos a serem processados dueDate: type: string format: date description: Nova data de vencimento protest: type: object allOf: – #/definitions/protest description: Protesto newValue: type: string description: Novo valor interest: type: object allOf: – #/definitions/recCalculationInterest description: Juros assessment: type: object allOf: – #/definitions/recCalculationValue description: Multas discount: type: object allOf: – #/definitions/recCalculationDiscount description: Descontos operations: type: array items: type: object allOf: – #/definitions/recOperation description: Operações responses: 200: description: Ok schema: type: object properties: processId: type: string description: Id do processo returnOperations: type: array items: type: object allOf: – #/definitions/recReturnOperations description: Retorno ids de processamento de operações 401: description: Invalid Credentials 400: description: Requisição inválida, parâmetros obrigatórios não informados ou campo informado incorretamente 403: description: Permissão negada 404: description: Registro não localizado através do ID ERPX ou chave de negócio informados default: description: Error response schema: #/definitions/genericErrordefinitions: upDown: type: string enum: – UP – DOWN description: Up or down: * `UP` – Up * `DOWN` – Down enumReceivableBank: type: string enum: – BANCO_DO_BRASIL – SANTANDER – CAIXA_ECONOMICA_FEDERAL – BRADESCO – ITAU – SICREDI – BTG_PACTUAL description: Enumeration de bancos de recebimento: * `BANCO_DO_BRASIL` – Banco do Brasil – 001 * `SANTANDER` – Santander – 033 * `CAIXA_ECONOMICA_FEDERAL` – Caixa Econômica Federal – 104 * `BRADESCO` – Bradesco – 237 * `ITAU` – Itaú – 341 * `SICREDI` – Sicredi – 748 * `BTG_PACTUAL` – BTG Pactual – 208 enumOperationType: type: string enum: – WRITE_OFF – CHANGE_DUE_DATE – PROTEST – CANCEL_PROTEST – CHANGE_VALUE – CHANGE_INTEREST – CHANGE_ASSESSMENT – CHANGE_DISCOUNT – CANCEL_BANK_SLIP description: Enumeration de tipos de operações boleto: * `WRITE_OFF` – Baixar * `CHANGE_DUE_DATE` – Alterar data de vencimento * `PROTEST` – Protestar * `CANCEL_PROTEST` – Sustar protesto * `CHANGE_VALUE` – Alterar valor * `CHANGE_INTEREST` – Alterar juros * `CHANGE_ASSESSMENT` – Alterar multas * `CHANGE_DISCOUNT` – Alterar descontos * `CANCEL_BANK_SLIP` – Cancelar boleto enumCalculationType: type: string enum: – PERCENTAGE – FIXED_VALUE – NOT_APPLICABLE description: Enumeration do tipo de cálculo dos valores de cobrança do título: * `PERCENTAGE` – Percentual * `FIXED_VALUE` – Valor fixo * `NOT_APPLICABLE` – Não aplicável enumCalculationTypeDiscount: type: string enum: – FIXED_VALUE_UNTIL_LIMIT_DATE – PERCENTAGE_UNTIL_LIMIT_DATE – NOT_APPLICABLE description: Enumeration do tipo de cálculo dos valores de desconto do título: * `FIXED_VALUE_UNTIL_LIMIT_DATE` – Valor fixo até a(s) data(s) informada(s) * `PERCENTAGE_UNTIL_LIMIT_DATE` – Percentual até a data informada * `NOT_APPLICABLE` – Não aplicável enumCalculationTypeInterest: type: string enum: – VALUE_FOR_CALENDAR_DAYS – PERCENTAGE_FOR_CALENDAR_DAYS – NOT_APPLICABLE description: Enumeration do tipo de cálculo dos valores de juros do título: * `VALUE_FOR_CALENDAR_DAYS` – Valor (dias corridos) * `PERCENTAGE_FOR_CALENDAR_DAYS` – Percentual ao dia (dias corridos) * `NOT_APPLICABLE` – Não aplicável enumSpecie: type: string enum: – COMMERCIAL_DUPLICATE – SERVICE_DUPLICATE – PROMISSORY_NOTE – RECEIPT – PROPOSAL_BANK_SLIP – CONTRIBUTION_BANK_SLIP – CHECK description: Enumeration de espécie: * `COMMERCIAL_DUPLICATE` – Duplicata mercantil * `SERVICE_DUPLICATE` – Duplicata de serviço * `PROMISSORY_NOTE` – Nota promissória * `RECEIPT` – Recibo * `PROPOSAL_BANK_SLIP` – Boleto de proposta * `CONTRIBUTION_BANK_SLIP` – Boleto de aporte * `CHECK` – Cheque enumWallet: type: string enum: – SIMPLE – DISCOUNTED – SECURED description: Enumeration de carteira: * `SIMPLE` – Simples * `DISCOUNTED` – Descontada * `SECURED` – Caucionada enumProtestType: type: string enum: – CALENDAR_DAYS – BUSINESS_DAYS – NO_PROTEST description: Enumeration dos tipos de protestos: * `CALENDAR_DAYS` – Dias corridos * `BUSINESS_DAYS` – Dias úteis * `NO_PROTEST` – Não protestar enumBancoRecebimento: type: string enum: – BANCO_DO_BRASIL – SANTANDER – CAIXA_ECONOMICA_FEDERAL – BRADESCO – ITAU – SICREDI – BTG_PACTUAL description: Enumeration dos bancos de recebimento: * `BANCO_DO_BRASIL` – Banco do Brasil – 001 * `SANTANDER` – Santander – 033 * `CAIXA_ECONOMICA_FEDERAL` – Caixa Econômica Federal – 104 * `BRADESCO` – Bradesco – 237 * `ITAU` – Itaú – 341 * `SICREDI` – Sicredi – 748 * `BTG_PACTUAL` – BTG Pactual – 208 enumEspecie: type: string enum: – DUPLICATA_MERCANTIL – DUPLICATA_SERVICO – NOTA_PROMISSORIA – RECIBO – BOLETO_PROPOSTA – BOLETO_APORTE – CHEQUE description: Enumeration de espécie: * `DUPLICATA_MERCANTIL` – Duplicata mercantil * `DUPLICATA_SERVICO` – Duplicata de serviço * `NOTA_PROMISSORIA` – Nota promissória * `RECIBO` – Recibo * `BOLETO_PROPOSTA` – Boleto de proposta * `BOLETO_APORTE` – Boleto de aporte * `CHEQUE` – Cheque enumCarteira: type: string enum: – SIMPLES – DESCONTADA – CAUCIONADA description: Enumeration de carteira: * `SIMPLES` – Simples * `DESCONTADA` – Descontada * `CAUCIONADA` – Caucionada enumTipoCalculoJuros: type: string enum: – VALOR_DIAS_CORRIDOS – PERCENTUAL_AO_DIA_DIAS_CORRIDOS – NAO_APLICAVEL description: Enumeration do tipo de cálculo dos valores de juros do título: * `VALOR_DIAS_CORRIDOS` – Valor (dias corridos) * `PERCENTUAL_AO_DIA_DIAS_CORRIDOS` – Percentual ao dia (dias corridos) * `NAO_APLICAVEL` – Não aplicável enumTipoCalculo: type: string enum: – PERCENTUAL – VALOR_FIXO – NAO_APLICAVEL description: Enumeration do tipo de cálculo dos valores de cobrança do título: * `PERCENTUAL` – Percentual * `VALOR_FIXO` – Valor fixo * `NAO_APLICAVEL` – Não aplicável enumTipoCalculoDesconto: type: string enum: – VALOR_FIXO_ATE_DATA_INFORMADA – PERCENTUAL_FIXO_ATE_DATA_INFORMADA – NAO_APLICAVEL description: Enumeration do tipo de cálculo dos valores de desconto do título: * `VALOR_FIXO_ATE_DATA_INFORMADA` – Valor fixo até a(s) data(s) informada(s) * `PERCENTUAL_FIXO_ATE_DATA_INFORMADA` – Percentual até a data informada * `NAO_APLICAVEL` – Não aplicável enumTipoProtesto: type: string enum: – DIAS_CORRIDOS – DIAS_UTEIS – NAO_PROTESTAR description: Enumeration dos tipos de protestos: * `DIAS_CORRIDOS` – Dias corridos * `DIAS_UTEIS` – Dias úteis * `NAO_PROTESTAR` – Não protestar enumParceiro: type: string enum: – BTG_PACTUAL – ESALES description: Enumeration de classificação de parceiro: * `BTG_PACTUAL` – BTG Pactual * `ESALES` – ESales enumTypeOrder: type: string enum: – ASC – DESC description: Enumeração para o tipo de ordenação: * `ASC` – Tipo de ordenação – Crescente * `DESC` – Tipo de ordenação – Decrescente enumBankSlipBillingItemsSituation: type: string enum: – AWAITING_BILLING – PROCESSING_BILLING_SEND – BILLING_SENT – BILLING_WITH_PROBLEMS – BILLING_GENERATED – BILLING_DENIED – BILLING_PAID – BILLING_UNFIT_FOR_PROCESSING – BILLING_INACTIVATED – UNEXPECTED_ERROR – VALIDATION_FAILURE – CANCELLING_BILLING – BILLING_CANCELLED – BILLING_CANCELLATION_ERROR description: Enumeration de situação da cobrança item: * `AWAITING_BILLING` – Aguardando cobrança * `PROCESSING_BILLING_SEND` – Processando envio da cobrança * `BILLING_SENT` – Cobrança enviada * `BILLING_WITH_PROBLEMS` – Cobrança com problemas * `BILLING_GENERATED` – Cobrança gerada * `BILLING_DENIED` – Cobrança negada * `BILLING_PAID` – Cobrança paga * `BILLING_UNFIT_FOR_PROCESSING` – Cobrança inapta para processamento * `BILLING_INACTIVATED` – Cobrança inativada * `UNEXPECTED_ERROR` – Erro inesperado * `VALIDATION_FAILURE` – Falha na validação * `CANCELLING_BILLING` – Cancelando cobranca * `BILLING_CANCELLED` – Cobranca cancelada * `BILLING_CANCELLATION_ERROR` – Erro cancelamento cobranca userNotificationKind: type: string enum: – Operational – Management – News description: User notification kind.: * `Operational` – Operational * `Management` – Management * `News` – News userNotificationPriority: type: string enum: – Error – Alert – None description: User notification priority.: * `Error` – Error * `Alert` – Alert * `None` – None eventEmailFormat: type: string enum: – HTML – PLAIN_TEXT description: Format of the email: * `HTML` – Html * `PLAIN_TEXT` – Plain Text checkData: description: Dados do healthcheck type: object required: – name – status properties: name: type: string description: Nome do healthcheck status: type: string allOf: – #/definitions/upDown description: Status do healthcheck recBeneficiary: description: Record de dados do beneficiário type: object required: – documentNumber – covenant – branchNumber – accountNumber properties: name: type: string description: Nome do beneficiário documentNumber: type: string description: Número do documento covenant: type: string maxLength: 20 description: Convênio branchNumber: type: string maxLength: 5 description: Número da agência branchDigit: type: string maxLength: 2 description: Dígito da agência accountNumber: type: string maxLength: 15 description: Número da conta accountDigit: type: string maxLength: 2 description: Dígito da conta pixKey: type: string description: Chave PIX recAccountReceivable: description: Record com as informações do título para registro de cobrança type: object required: – accountReceivableId – accountReceivableNumber – accountReceivableType – yourNumber – customer – dueDate – values properties: accountReceivableId: type: string description: Identificador do título accountReceivableNumber: type: string description: Número do título accountReceivableType: type: string description: Tipo do título yourNumber: type: string maxLength: 25 description: Seu número ourNumber: type: string maxLength: 20 description: Nosso número customer: type: object allOf: – #/definitions/recCustomer description: Identificador do cliente dueDate: type: string format: date description: Data de vencimento specie: type: string allOf: – #/definitions/enumSpecie description: Espécie wallet: type: string allOf: – #/definitions/enumWallet description: Carteira guarantor: type: object allOf: – #/definitions/recGuarantor description: Avalista values: type: object allOf: – #/definitions/recValuesRegisterBilling description: Valores do título protest: type: object allOf: – #/definitions/recProtest description: Protesto messages: type: array items: type: string description: Mensagens generatePixQrCode: type: boolean description: Gerar no boleto QR code para pagamento via Pix default: false recCustomer: description: Record de identificação do cliente type: object properties: id: type: string description: Identificador do registro na plataforma documentNumber: type: string maxLength: 14 description: Número do documento name: type: string maxLength: 100 description: Nome tradeName: type: string maxLength: 50 description: Nome fantasia address: type: object allOf: – #/definitions/recAddress description: Endereço email: type: string maxLength: 100 description: Email phoneNumber: type: string maxLength: 20 description: Número de telefone codPes: type: integer format: int64 description: Código minimum: 0 maximum: 999999999 recAddress: description: Record com as informações de endereço type: object required: – postalCode properties: street: type: string maxLength: 100 description: Rua number: type: string maxLength: 60 description: Número neighborhood: type: string maxLength: 75 description: Bairro country: type: object allOf: – #/definitions/recCountry description: País state: type: object allOf: – #/definitions/recState description: Estado city: type: object allOf: – #/definitions/recCity description: Cidade postalCode: type: string maxLength: 20 description: Código postal (CEP) recState: description: Record do estado type: object properties: id: type: string description: Identificador do registro no foundation code: type: string maxLength: 2 description: Código protest: description: Record dos dados para protesto type: object required: – type – deadline properties: type: type: string allOf: – #/definitions/enumProtestType description: Tipo do protesto deadline: type: integer format: int64 description: Prazo do protesto minimum: 0 recCity: description: Record da cidade type: object properties: id: type: string description: Identificador do registro no foundation code: type: integer format: int64 description: Código recCountry: description: Record do país type: object properties: id: type: string description: Identificador do registro no foundation code: type: string description: Código recGuarantor: description: Record do avalista type: object required: – name – documentNumber properties: name: type: string description: Nome do avalista documentNumber: type: string maxLength: 14 description: Documento do avalista recValuesRegisterBilling: description: Record de valores do título de cobrança type: object required: – original properties: original: type: string description: Valor original minimum: 0.00 interest: type: object allOf: – #/definitions/recCalculationInterest description: Juros assessment: type: object allOf: – #/definitions/recCalculationValue description: Multas rebate: type: object allOf: – #/definitions/recCalculationValue description: Abatimentos discount: type: object allOf: – #/definitions/recCalculationDiscount description: Descontos recCalculationValue: description: Record das regras de cálculos dos valores type: object required: – calculationType – valueOrPercentage properties: calculationType: type: string allOf: – #/definitions/enumCalculationType description: Tipo de cálculo valueOrPercentage: type: string description: Valor ou porcentual minimum: 0.00 recCalculationInterest: description: Record das regras de cálculos dos juros type: object required: – calculationType – valueOrPercentage properties: calculationType: type: string allOf: – #/definitions/enumCalculationTypeInterest description: Tipo de cálculo valueOrPercentage: type: string description: Valor ou porcentual minimum: 0.00 recCalculationDiscount: description: Record das regras de cálculos dos descontos type: object required: – calculationType – discountFixedDate properties: calculationType: type: string allOf: – #/definitions/enumCalculationTypeDiscount description: Tipo de cálculo discountFixedDate: type: array items: type: object allOf: – #/definitions/recDiscountFixedDate minimum: 1 description: Descontos definidos de acordo com a data estabelecida recDiscountFixedDate: description: Record de descontos de acordo com uma data estabelecida type: object required: – valueOrPercentage properties: limitDate: type: string format: date description: Data limite valueOrPercentage: type: string description: Valor ou percentual minimum: 0.00 recProtest: description: Record com as informações de protesto type: object required: – type properties: type: type: string allOf: – #/definitions/enumProtestType description: Tipo de protesto deadline: type: integer format: int64 description: Prazo recFilterGetStatusBankSlipBilling: description: Record do filtro de status dos títulos de cobrança boleto type: object properties: billingId: type: array items: type: string description: Lista de Identificadores dos títulos startDate: type: string format: date description: Data de emissão inicial endDate: type: string format: date description: Data de emissão final recPageRequest: description: Record para paginação e ordenação type: object required: – offset – size properties: offset: type: integer format: int64 description: Página atual size: type: integer format: int64 description: Total de registros da página orderBy: type: array items: type: object allOf: – #/definitions/recFieldsOrderBy description: Campos da ordenação dos registros a serem pesquisados recOperation: description: Record com informações para processamento de operações type: object required: – processId – operationType – accountsReceivableId properties: processId: type: string description: Id do processo operationType: type: string allOf: – #/definitions/enumOperationType description: Tipo de operação a ser executada accountsReceivableId: type: array items: type: string minimum: 1 description: Lista de identificadores dos títulos a serem processados dueDate: type: string format: date description: Nova data de vencimento protest: type: object allOf: – #/definitions/protest description: Protesto newValue: type: string description: Novo valor interest: type: object allOf: – #/definitions/recCalculationInterest description: Juros assessment: type: object allOf: – #/definitions/recCalculationValue description: Multas discount: type: object allOf: – #/definitions/recCalculationDiscount description: Descontos recReturnOperations: description: Record com ids de retorno do processamento de operações type: object required: – processId – accountsReceivableId properties: processId: type: string description: Id do processo accountsReceivableId: type: string description: Identificador do título recFieldsOrderBy: description: Define o registro com os dados dos campos à serem ordenados type: object required: – field – order properties: field: type: string description: Nome do campo a ser ordenado order: type: string allOf: – #/definitions/enumTypeOrder description: Tipo de ordenação do campo (ASC / DESC) recBankSlipBilling: description: Record de dados da cobrança de boleto type: object required: – accountReceivableId – situation – digitableLine properties: accountReceivableId: type: string description: Identificador do título situation: type: string allOf: – #/definitions/enumBankSlipBillingItemsSituation description: Situação do título digitableLine: type: string description: Linha digitável ourNumber: type: string maxLength: 20 description: Nosso número pixCopyAndPaste: type: string description: Pix copia e cola pixQRCode: type: string description: Pix QRCode amountPaid: type: string description: Valor Pago originalValue: type: string description: Valor original rebateValue: type: string description: Valor abatimento assessmentValue: type: string description: Valor multa discountValue: type: string description: Valor desconto interestValue: type: string description: Valor juros settlementDate: type: string format: date description: Data liquidação occurrenceCode: type: string description: Código da ocorrência occurrenceDescription: type: string description: Descrição da ocorrência description: type: array items: type: string description: Lista de motivos da ocorrências errors: type: array items: type: object allOf: – #/definitions/recError description: Lista de erros na geração do boleto recError: description: Record com informações de erro do boleto type: object required: – message properties: message: type: string description: Mensagem de erro field: type: string description: Campo do erro 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 description: Class of notification notificationOrigin: type: string 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 description: Notification subject. notificationContent: type: string description: Notification content. sourceDomain: type: string description: Domain that generates the notification. sourceService: type: string description: Service that generates the notification. destinationUser: type: string description: Username of the destination user. link: type: string description: Notification link _discriminator: type: string description: emailNotifyUserEventPayload: description: Represents an email notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – from properties: from: type: string description: Email sender address sendTo: type: array items: type: string 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 description: Apple/Google application id blobReference: description: Default blob reference type. Every service defines its own. type: object required: – targetObjectId properties: domainName: type: string description: The domain the blob belongs to. serviceName: type: string description: The service the blob belongs to. targetObjectId: type: string description: The basic id of the blob. targetCopyId: type: string description: The id of the blob copy. basicErrorPayload: description: Default error payload type. Every service defines its own. type: object properties: message: type: string description: The user-facing error message, if any. errorCode: type: string 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 description: Domain of the dependency service service: type: string description: Name of the dependency service type: string description: Version of the dependency service genericError: properties: message: type: string description: Messaging describing the error. reason: type: string enum: – BAD_REQUEST – UNAUTHORIZED – PAYMENT_REQUIRED – FORBIDDEN – OBJECT_NOT_FOUND – REQUEST_TIMEOUT – GONE – UNPROCESSABLE – INTERNAL_ERROR – NOT_IMPLEMENTED – SERVICE_UNAVAILABLE – INSUFFICIENT_STORAGE description: A symbolic code identifying the category of the reason of the error: * `BAD_REQUEST` – Bad Request * `UNAUTHORIZED` – Unauthorized * `PAYMENT_REQUIRED` – Payment Required * `OBJECT_NOT_FOUND` – Object Not Found * `REQUEST_TIMEOUT` – Request Timeout * `GONE` – Gone * `UNPROCESSABLE` – Unprocessable * `INTERNAL_ERROR` – Internal Error * `NOT_IMPLEMENTED` – Not Implemented * `SERVICE_UNAVAILABLE` – Service Unavailable * `INSUFFICIENT_STORAGE` – Insufficient Storage