2.0info: 1.6.2 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: api.senior.com.br /erpx_bnk_cob/register_boletosecurityDefinitions: 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: /registerBankSlipBilling: post: description: API responsável pela criação do registro de cobrança assíncrona de boleto
### Resources
- res://senior.com.br/erpx_bnk_cob/register_boleto/actions/registerBankSlipBilling x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – receivableBank – beneficiary – accountsReceivable properties: receivableBank: #/definitions/enumReceivableBank beneficiary: #/definitions/recBeneficiary accountsReceivable: type: array items: #/definitions/recAccountReceivable description: Lista de títulos que serão registrados as cobranças responses: 200: description: Ok 404: description: Registro não localizado através do ID ERPX ou chave de negócio informados 403: description: Permissão negada 400: description: Requisição inválida, parâmetros obrigatórios não informados ou campo informado incorretamente default: description: Error response schema: #/definitions/genericError /registerBankSlipOperation: post: description: API responsável pela execução de operações sobre o registro de cobrança do boleto
### Resources
- res://senior.com.br/erpx_bnk_cob/register_boleto/actions/registerBankSlipOperation x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – processId – operationType – accountsReceivableId properties: processId: type: string description: Id do processo operationType: #/definitions/enumOperationType accountsReceivableId: type: array items: type: string description: Lista de identificadores dos títulos a serem processados dueDate: type: string description: Nova data de vencimento protest: #/definitions/protest newValue: type: string description: Novo valor interest: #/definitions/recCalculationInterest assessment: #/definitions/recCalculationValue discount: #/definitions/recCalculationDiscount responses: 200: description: Ok schema: type: object required: – processId properties: processId: type: string description: Id do processo 404: description: Registro não localizado através do ID ERPX ou chave de negócio informados 403: description: Permissão negada 400: description: Requisição inválida, parâmetros obrigatórios não informados ou campo informado incorretamente default: description: Error response schema: #/definitions/genericErrordefinitions: enumReceivableBank: type: string enum: – BANCO_DO_BRASIL – SANTANDER – CAIXA_ECONOMICA_FEDERAL – BRADESCO – ITAU – SICREDI – BTG_PACTUAL enumOperationType: type: string enum: – WRITE_OFF – CHANGE_DUE_DATE – PROTEST – CANCEL_PROTEST – CHANGE_VALUE – CHANGE_INTEREST – CHANGE_ASSESSMENT – CHANGE_DISCOUNT – CANCEL_BANK_SLIP enumSpecie: type: string enum: – COMMERCIAL_DUPLICATE – SERVICE_DUPLICATE enumWallet: type: string enum: – SIMPLE – DISCOUNTED – SECURED enumCalculationTypeInterest: type: string enum: – VALUE_FOR_CALENDAR_DAYS – PERCENTAGE_FOR_CALENDAR_DAYS enumCalculationType: type: string enum: – PERCENTAGE – FIXED_VALUE enumCalculationTypeDiscount: type: string enum: – FIXED_VALUE_UNTIL_LIMIT_DATE – PERCENTAGE_UNTIL_LIMIT_DATE enumProtestType: type: string enum: – CALENDAR_DAYS – BUSINESS_DAYS – NO_PROTEST recBeneficiary: 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 description: Convênio branchNumber: type: string description: Número da agência branchDigit: type: string description: Dígito da agência accountNumber: type: string description: Número da conta accountDigit: type: string description: Dígito da conta recAccountReceivable: 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 description: Seu número ourNumber: type: string description: Nosso número customer: #/definitions/recCustomer dueDate: type: string description: Data de vencimento format: date specie: #/definitions/enumSpecie wallet: #/definitions/enumWallet guarantor: #/definitions/recGuarantor values: #/definitions/recValuesRegisterBilling protest: #/definitions/recProtest messages: type: array items: type: string description: Mensagens generatePixQrCode: type: boolean description: Gerar no boleto QR code para pagamento via Pix recCustomer: type: object properties: id: type: string description: Identificador do registro na plataforma documentNumber: type: string description: Número do documento name: type: string description: Nome tradeName: type: string description: Nome fantasia address: #/definitions/recAddress email: type: string description: Email phoneNumber: type: string description: Número de telefone recAddress: type: object required: – street – country – state – city – postalCode properties: street: type: string description: Rua number: type: string description: Número neighborhood: type: string description: Bairro country: #/definitions/recCountry state: #/definitions/recState city: #/definitions/recCity postalCode: type: string description: Código postal (CEP) recCountry: type: object properties: id: type: string description: Identificador do registro no foundation code: type: string description: Código recState: type: object properties: id: type: string description: Identificador do registro no foundation code: type: string description: Código recCity: type: object properties: id: type: string description: Identificador do registro no foundation code: type: integer description: Código recGuarantor: type: object required: – name – documentNumber properties: name: type: string description: Nome do avalista documentNumber: type: string description: Documento do avalista recValuesRegisterBilling: type: object required: – original properties: original: type: string description: Valor original interest: #/definitions/recCalculationInterest assessment: #/definitions/recCalculationValue rebate: #/definitions/recCalculationValue discount: #/definitions/recCalculationDiscount recCalculationInterest: type: object required: – calculationType – valueOrPercentage properties: calculationType: #/definitions/enumCalculationTypeInterest valueOrPercentage: type: string description: Valor ou porcentual recCalculationValue: type: object required: – calculationType – valueOrPercentage properties: calculationType: #/definitions/enumCalculationType valueOrPercentage: type: string description: Valor ou porcentual recCalculationDiscount: type: object required: – calculationType – discountFixedDate properties: calculationType: #/definitions/enumCalculationTypeDiscount discountFixedDate: type: array items: #/definitions/recDiscountFixedDate description: Descontos definidos de acordo com a data estabelecida recDiscountFixedDate: type: object required: – limitDate – valueOrPercentage properties: limitDate: type: string description: Data limite format: date valueOrPercentage: type: string description: Valor ou percentual recProtest: type: object required: – type properties: type: #/definitions/enumProtestType deadline: type: integer description: Prazo protest: type: object required: – type – deadline properties: type: #/definitions/enumProtestType deadline: type: integer description: Prazo do protesto 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