Skip to main content

kobana banking bank-billets

Commands of kobana banking bank-billets. Every global option (Global options) applies here.

CommandHTTPDescription
bank-billets protest updatePUT /v1/bank_billets/{id}/protest/{type}Protest Billet
bank-billets listGET /v1/bank_billetsList Billets
bank-billets createPOST /v1/bank_billetsCreate a Billet
bank-billets cancel-allPOST /v1/bank_billets/cancel_allCancel Billets in Batch
bank-billets getGET /v1/bank_billets/{id}View the Billet
bank-billets updatePUT /v1/bank_billets/{id}Update the Billet
bank-billets cancelPUT /v1/bank_billets/{id}/cancelCancel the Billet
bank-billets duplicatePOST /v1/bank_billets/{id}/duplicateDuplicate Billet
bank-billets payPUT /v1/bank_billets/{id}/payMark Billet as Paid
bank-billets send-emailPOST /v1/bank_billets/{id}/send_emailSend Billet by Email
bank-billets send-smsPOST /v1/bank_billets/{id}/send_smsSend Billet by SMS

bank-billets protest update​

Protest Billet

kobana banking bank-billets protest update [ID] [TYPE] [OPTIONS]

PUT /v1/bank_billets/{id}/protest/{type}

Protests or cancels the protest of an overdue billet. The parameter :type in the route is mandatory: use "send" to protest the billet or "cancel" to cancel an existing protest.

Path arguments: id, type

Responses

HTTPDescription
204Billet protested successfully
404Billet not found
422Invalid protest type

bank-billets list​

List Billets

kobana banking bank-billets list [OPTIONS]

GET /v1/bank_billets

List billets.

Query parameters

NameTypeRequiredDescription
bank_billet_account_idstringnoFilter by Wallet ID. Find all records that have the ID.
statusstringnoFilter by Status. Find all records with the status. Values: generating, generation_failed, validation_failed, opened, canceled, paid, overdue, blocked, chargeback.
our_numberstringnoFilter by Our Number
processed_our_number_rawstringnoFilter by Our Number with DV (clean).
cnpj_cpfstringnoFilter by CPF/CNPJ of the client. Must be formatted with mask. Find all records whose field matches the string.
created_fromstringnoStart date for creation date filter.
created_tostringnoEnd date for creation date filter.
expire_fromstringnoStart date for due date filter
expire_tostringnoEnd date for due date filter.
paid_fromstringnoStart date for payment date filter.
paid_tostringnoEnd date for payment date filter.
registered_tostringnoStart date for registration date filter.
registered_fromstringnoEnd date for registration date filter.
pageintegernoPage Number
per_pageintegernoNumber of records per page
updated_fromstringnoStart date for update date filter.
updated_tostringnoEnd date for update date filter.

Responses

HTTPDescription
200Success in listing billets

bank-billets create​

Create a Billet

kobana banking bank-billets create [OPTIONS]

POST /v1/bank_billets

Creates a new bank billet for collection. The billet will be processed and registered at the financial institution according to the collection wallet settings used.

Request body

NameTypeRequiredDescription
amountnumberyesAmount
expire_atstring (date)yesDue date
customer_person_namestringyesCustomer name
customer_cnpj_cpfstringyesCustomer CPF/CNPJ
customer_statestringyesState
customer_city_namestringyesCity (Name must be correct and complete)
customer_zipcodestringyesZIP Code (format 99999999)
customer_addressstringyesAddress
customer_neighborhoodstringyesNeighborhood
idintegernoBoleto ID
bank_billet_account_idintegernoCollection wallet ID. If not provided, it will use the default wallet.
bank_billet_layout_idintegernoBoleto template ID
customer_idintegernoCustomer ID. When this ID is passed, the fields customer_person_name, customer_cnpj_cpf, customer_zipcode, customer_address, customer_city_name, customer_state and customer_neighborhood are not required.
customer_address_complementstringnoComplement
customer_address_numberstringnoNumber
customer_emailstring (email)noPayer's email
customer_email_ccstring (email)noAlternative payer email
customer_phone_numberstringnoPhone (with area code, international code is optional)
customer_ignore_emailbooleannoNever send email to this customer
customer_ignore_smsbooleannoNever send SMS to this customer
customer_mobile_local_codestringnoMobile area code
customer_mobile_numberstringnoMobile phone
customer_nicknamestringnoNickname or trade name of the payer
customer_notesstringnoPayer notes
customer_contact_personstringnoContact
interest_typeintegernoInterest/penalty type: * 0 Non-existent (Default) * 1 For daily percentage * 2 For daily amount * 7 For monthly percentage - Supported banks: Bradesco, BB, BTG, Caixa, Inter, Itaú, Safra, Santander, Sicoob and Sicredi Values: 0, 1, 2, 7.
days_for_interestintegernoNumber of days after the due date when the penalty will start to accrue. The default value is 1 day (the day after the due date).
interest_percentagenumbernoInterest percentage. From 0.0 to 100.0 (Ex 1.5% = 1.5) Required if interest_type equals 1 or 7. Up to 2 decimal places.
interest_valuenumbernoDaily interest amount (R$). Required if interest_type equals 2. Up to 2 decimal places.
interest_days_typeintegernoType of days for interest: * 0 Calendar * 1 Business Values: 0, 1.
fine_typeintegernoFine type: * 0 Non-existent (Default) * 1 For percentage of boleto amount * 2 For fixed amount Values: 0, 1, 2.
days_for_fineintegernoNumber of days after the due date when the fine will start to accrue. The default value is 1 day (the day after the due date).
fine_percentagenumbernoLate fee percentage Ex: 2% x R$ 250.00 = R$ 5.00. Required if fine_type equals 1. Up to 2 decimal places.
fine_valuenumbernoFine amount (R$). Required if fine_type equals 2. Up to 2 decimal places.
discount_typeintegernoDiscount type: The discount type will be the same for all three discounts, if they exist. : * 0 Non-existent (Default) * 1 For fixed amount * 2 For percentage of boleto amount Values: 0, 1, 2.
days_for_discountintegernoDays for discount. Required if discount_type is different from 0 (zero)
discount_percentagenumbernoPercentage of the boleto amount equivalent to the discount. Required if discount_type equals 2
discount_valuenumbernoDiscount amount (R$). Required if discount_type equals 1.
days_for_second_discountintegernoDays for second discount.
second_discount_percentagenumbernoPercentage of the boleto amount equivalent to the second discount.
second_discount_valuenumbernoSecond discount amount (R$).
days_for_third_discountintegernoDays for third discount.
third_discount_percentagenumbernoPercentage of the boleto amount equivalent to the third discount.
third_discount_valuenumbernoThird discount amount (R$).
tagsarray<string>noTags associated with the boleto
tag_liststringnoTags associated with the boleto
charge_typeintegernoCharge type: * 1 Simple * 2 Linked * 3 Discounted * 4 Vendor Values: 1, 2, 3, 4.
dispatch_typeintegernoCharge type: When the boleto needs to be sent by mail. It is necessary to contract the service with the bank and you will pay a fee. * 1 Customer * 2 Bank Values: 1, 2.
guarantor_namestringnoFinal beneficiary name (Drawer/Guarantor)
guarantor_cnpj_cpfstringnoFinal beneficiary CNPJ/CPF (Drawer/Guarantor)
guarantor_address_numberstringnoFinal beneficiary number (Drawer/Guarantor)
guarantor_neighborhoodstringnoFinal beneficiary neighborhood (Drawer/Guarantor)
guarantor_phone_numberstringnoFinal beneficiary phone (with area code) (Drawer/Guarantor)
guarantor_city_namestringnoCity (Name must be correct and complete) of final beneficiary (Drawer/Guarantor)
guarantor_statestringnoState of final beneficiary (Drawer/Guarantor)
guarantor_zipcodestringnoPostal code (format 99999999) of final beneficiary (Drawer/Guarantor)
guarantor_addressstringnoAddress of final beneficiary (Drawer/Guarantor)
guarantor_address_complementstringnoComplement of final beneficiary (Drawer/Guarantor)
descriptionstringnoProduct or service description
instructionsstringnoInstructions for cashier
document_datestring (date)noDocument date
document_typestringnoDocument type: * Code | Abbreviation | Description * 01 | CH | Check * 02 | DM | Commercial Draft (Default) * 03 | DMI | Commercial Draft for Indication * 04 | DS | Service Draft * 05 | DSI | Service Draft for Indication * 06 | DR | Rural Draft * 07 | LC | Bill of Exchange * 08 | NCC | Commercial Credit Note * 09 | NCE | Export Credit Note * 10 | NCI | Industrial Credit Note * 11 | NCR | Rural Credit Note * 12 | NP | Promissory note * 13 | NPR | Rural Promissory note * 14 | TM | Commercial Triplicata * 15 | TS | Service Triplicata * 16 | NS | Insurance Note * 17 | RC | Receipt * 18 | FAT | Invoice * 19 | ND | Debit Note * 20 | AP | Insurance Policy * 21 | ME | School Monthly Fee * 22 | PC | Consortium Installment * 23 | NF | Nota Fiscal * 24 | DD | Debt Document * 25 | CPR | Commodity Futures Note * 26 | CTR | Contract * 27 | CSG | Co-insurance * 28 | EC | Condominium Charges * 29 | CPS | Service Provision Account * 30 | WR | Warrant * 31 | DP | Installment Draft * 32 | CSR | Serial Collection * 33 | CAR | Carnê * 34 | ARE | Elementary Risks Policy * 35 | CC | Credit Card * 36 | BDP | Proposal Boleto * 37 | NPD | Direct Promissory note * 38 | DAE | State Active Debt * 39 | DAM | Municipal Active Debt * 40 | DAU | Federal Active Debt * 41 | CCB | Banking Credit Cell * 42 | FI | Financing * 43 | RD | Expense Sharing * 44 | DRI | Rural Draft for Indication * 45 | ECI | Condominium Charges for Indication * 99 | Others | Others Values: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 99.
document_type_labelstringnoDocument type (Abbreviation)
document_numberstringnoDocument number, Size depends on the bank and remittance format: * Bank | Format| Size | * Abc |Cnab240| 15 | * Ailos |Cnab240| 15 | * Arbi |Cnab240| 15 | * Banese |Cnab240| 15 | * Banestes |Cnab400| 10 | * Banrisul |Cnab240| 15 | * Banrisul |Cnab400| 10 | * Bb |Cnab240| 15 | * Bb |Cnab400| 10 | * Bib |Cnab240| 15 | * Bnb |Cnab400| 10 | * Bnpparibas |Cnab400| 10 | * Bradesco |Cnab240| 15 | * Bradesco |Cnab400| 10 | * Brb |Cnab400| 10 | * Caixa |Cnab240| 11 | * Caixa |Cnab400| 10 | * Caruana |Cnab400| 10 | * Citibank |Cnab400| 10 | * Credisis |Cnab240| 15 | * Cresol |Cnab240| 10 | * Cresol |Cnab400| 10 | * Cresol Bradesco |Cnab240| 15 | * Cresol Bradesco |Cnab400| 10 | * Daycoval |Cnab400| 10 | * Itau |Cnab240| 10 | * Itau |Cnab400| 10 | * Mercantil |Cnab240| 10 | * Moneyplus |Cnab240| 10 | * Rendimento |Cnab400| 10 | * Safra |Cnab400| 102 | * Santander |Cnab240| 15 | * Santander |Cnab400| 10 | * Semear |Cnab400| 10 | * Sicoob |Cnab240| 15 | * Sicoob |Cnab400| 10 | * Sicredi |Cnab240| 15 | * Sicredi |Cnab400| 10 | * Sofisa |Cnab240| 15 | * Unicred |Cnab240| 15 | * Uniprime |Cnab400| 10 | * Uniprime99 |Cnab400| 10 | * Santander |Cnab400| 10
acceptancestringnoAcceptance: * N No (Default) * S Yes Values: N, S.
our_numberstringnoOur Number. If not provided, it will use the Next Our Number from the Collection Wallet.
processed_our_numberstringnoOur Number calculated with check digit (formatted)
processed_our_number_rawstringnoOur Number calculated with check digit (clean)
paid_amountnumbernoAmount paid
paid_atstring (date)noPayment date
days_for_revokeintegernoCalendar days for withdrawal/return: Null/Blank: Follows the bank's default. 0: Withdrawal/Return on the same day as maturity. 1 or more: Withdrawal/Return after maturity (Maturity + X calendar days).
credit_bureauintegernoCredit Bureau/Negative Registry Agency. 0: Serasa. 1: Quod. 2: SPC Options available for each supported bank: * Banco do Brasil: Serasa and Quod. Values: null, 0, 1, 2.
days_for_negativationintegernoCalendar days for negative registry: Available only for the following banks and formats. * Bank | CNAB 240| CNAB 400 |Webservice * Bradesco | Yes | Yes | No * Itaú | No | Yes | No
days_for_sue_typeintegernoType of days for protest: * 0 Calendar * 1 Business Values: null, 0, 1.
days_for_sueintegernoCalendar days for protest
sue_historyarray<object>noHistory of boleto protest events
sue_codestringnoProtest code (CNAB 240). Check the possible values <a href="https://developers.kobana.com.br/reference/bancos-suportados" target="_blank">for each bank</a>.
revoke_codestringnoWithdrawal code (CNAB 240). Check the possible values <a href="https://developers.kobana.com.br/reference/bancos-suportados" target="_blank">for each bank</a>.
first_instructionstringnoFirst instruction (CNAB 400). Check the possible values <a href="https://developers.kobana.com.br/reference/bancos-suportados" target="_blank">for each bank</a>.
second_instructionstringnoSecond instruction (CNAB 400). Check the possible values <a href="https://developers.kobana.com.br/reference/bancos-suportados" target="_blank">for each bank</a>.
watermarkbooleannoAddress
payment_countintegernoNumber of partial payments accepted for this boleto.
divergent_payment_typeintegernoType of divergent payment: Valid only for Itaú and Caixa. * 1 Accepts any divergent amount * 2 Accepts payments within a range of amounts or percentages * 3 Does not accept divergent amount payments * 4 Accepts payments above a minimum amount or percentage Values: null, 1, 2, 3, 4.
divergent_payment_value_typeintegernoType of value to consider for payment limits: Valid only for Itaú and Caixa. * 1 Reports divergent payments by amounts * 2 Reports divergent payments by percentages Values: null, 1, 2.
divergent_payment_maximum_valuenumbernoMaximum value for divergent payment range.
divergent_payment_minimum_valuenumbernoMinimum value for divergent payment range.
divergent_payment_maximum_percentagenumbernoMaximum percentage for divergent payment range.
divergent_payment_minimum_percentagenumbernoMinimum percentage for divergent payment range.
divergent_payment_limitintegernoNumber of payments allowed. Required if divergent payment data is provided. Used only by Caixa.
prevent_registrationbooleannoPrevent sending registration to bank: If true, prevents the boleto from being registered. To be used in cases where the boleto was already registered outside of Kobana but you want to include it in the system.
issued_atstring (date-time)noBoleto issuance date. Accepted only when prevent_registration: true.
control_numberstringnoControl number: May contain any information of interest to the Company. The information contained in this field will always be returned with the respective title in the return file.
ignore_emailbooleannoDo not send this boleto by email
ignore_smsbooleannoNever send this boleto by SMS
ignore_whatsappbooleannoNever send this boleto by WhatsApp
addonsstring (jsonb)noAddress
custom_dataobjectnoHash with key and value in JSON format.
metaobjectnoHash with key and value in JSON format.
notesstringnoNotes
custom_attachment_namestringnoName to be used in boleto files sent to the customer in notifications. Accepts use of variables. If left empty, the default is the word "boleto" followed by the ID.
split_paymentbooleannoPayment split. Valid only for ABC Brasil, Bradesco and Itaú. If true, the boleto split will be registered. Provide the split accounts in split_accounts. For Itaú, you must provide the type of payment split in split_payment_type
split_payment_typeintegernoType of payment split: Valid only for Itau. Used only with Payment split true. * 1 Credit split by percentage (%) – Nominal value of the title * 2 Credit split in amount (R$) – Nominal value of the title * 3 Credit split by percentage (%) – Net amount received * 4 Credit split in amount (R$) – Net amount received, split proportionally Values: 1, 2, 3, 4.
split_accountsarray<object>noAccounts for payment split.
payment_placestringnoPayment location
installment_idintegernoCarnê ID
installment_numberintegernoInstallment number of the voucher
installment_totalintegernoTotal installments of the voucher
customer_subscription_idintegernoSubscription ID
beneficiary_namestringnoBeneficiary Name
beneficiary_cnpj_cpfstringnoCNPJ/CPF of Beneficiary
beneficiary_addressstringnoBeneficiary address
beneficiary_assignor_codestringnoAgency/Beneficiary code
bank_contract_slugstringnoWallet slug
agency_numberstringnoAgency
agency_digitstringnoBranch digit
account_numberstringnoAccount
account_digitstringnoAccount digit
extra1stringnoExtra field 1
extra1_digitstringnoDigit of extra field 1
extra2stringnoExtra field 2
extra2_digitstringnoDigit of extra field 2
created_via_apibooleannoIndicates if the boleto was created by API
created_atstring (date-time)noBoleto creation date and time
updated_atstring (date-time)noBoleto last update date and time
registration_statusstringnoRegistration status at the bank: * pending Pending * skipped Skipped * requested Requested * confirmed Confirmed * rejected Rejected (will be retried) * failed Failed (will not be retried) Values: pending, skipped, requested, confirmed, rejected, failed.
registered_atstring (date-time)noRegistration date and time (when confirmed)
register_typeintegernoRegistration type: * 1 API * 2 Bank Values: 1, 2.
cancel_typeintegernoCancellation type: * 1 Customer * 2 Bank Values: null, 1, 2.
cancellation_reasonintegernoCancellation reason: * 1 Other * 2 Fraud * 3 Death * 4 Operational error * 5 Settlement paid Values: null, 1, 2, 3, 4, 5.
linestringnoDigitizable Line
barcodestringnoBar code
shorten_urlstringnoURL for viewing the boleto
urlstringnoURL for viewing the boleto
carne_urlstringnoURL for viewing the voucher (When it is an installment)
formatsobjectnoURLs with available formats. Ex.: PDF, Image, Pix etc
pix_enabledbooleannoIndicates if the boleto is hybrid and has Pix QR code
pix_qrcodestringnoHybrid boleto Pix QR code
pix_txidstringnoPix txid field. Automatically generated by default if not provided.
prevent_pixbooleannoIf true, prevents Pix creation for wallets with Pix enabled. It is not considered if the wallet does not have Pix enabled.
statusstringnoBoleto status: * generating Generating * draft Draft * generation_failed Generation failed * opened Open * canceled Canceled * paid Paid * overdue Overdue * validation_failed Invalid * chargeback Charged back Values: generating, draft, generation_failed, validation_failed, opened, canceled, paid, overdue, blocked, chargeback.
recipient_accountstringnoRecipient account + check digit
reduction_typeintegernoType of reduction: 1: Amount. 2: Percentage. 3: No reduction Values: 1, 2, 3.
reduction_amountnumbernoReduction amount. Required if reduction_type equals 1.
reduction_percentagenumbernoReduction percentage. Ex: 2% x R$ 250.00 = R$ 5.00. Required if reduction_type equals 2. Up to 2 decimal places.
instructions_modeintegernoDate calculation in the cashier instruction: * 0 Do not fill in cashier instructions * 1 Calculate date through registration method (API/CNAB) * 2 Use the date configured in the boleto Values: 0, 1, 2.
import_idintegernoImport ID
virtual_bank_billet_idintegernoBoleto ID generated by BackOffice contract member. (BackOffice must be enabled).
external_idstringnoBoleto ID in the customer's system. Optional for internal control and search.
financial_provider_external_idstringnoID in the financial institution
after_createarray<string>noAutomatic execution of commands after the boleto is created. Allowed values: * sync: Synchronization with the financial provider.

More fields and nested objects: kobana schema banking.bank-billets.create.

Responses

HTTPDescription
201Billet created
422Itau partial payment requires specific authorization type

bank-billets cancel-all​

Cancel Billets in Batch

kobana banking bank-billets cancel-all [OPTIONS]

POST /v1/bank_billets/cancel_all

Cancel billets in batch

Request body

NameTypeRequiredDescription
statusstringnoBoleto status: * generating Generating * draft Draft * generation_failed Generation failed * opened Open * canceled Canceled * paid Paid * overdue Overdue * validation_failed Invalid * chargeback Charged back Values: generating, draft, generation_failed, validation_failed, opened, canceled, paid, overdue, blocked, chargeback.
expire_fromstring (date)noFrom due date
expire_tostring (date)noUntil the due date
cnpj_cpfstringnoPayer CNPJ or CPF
bank_billet_idsarray<integer>noIDs of boletos to be canceled

More fields and nested objects: kobana schema banking.bank-billets.cancel-all.

Responses

HTTPDescription
200Request completed successfully
422Unprocessable Entity

bank-billets get​

View the Billet

kobana banking bank-billets get [ID] [OPTIONS]

GET /v1/bank_billets/{id}

Query specific information from a Billet.

Path arguments: id

Responses

HTTPDescription
200Billet found
404Billet not found

bank-billets update​

Update the Billet

kobana banking bank-billets update [ID] [OPTIONS]

PUT /v1/bank_billets/{id}

Updates specific information of a Billet.

You can modify billets with status Opened (opened) or Overdue (overdue)

You will receive generating and opened webhooks for the modified billet.

In registered wallets, the modification will enter the remittance and a bank fee may be charged.

Path arguments: id

Request body

NameTypeRequiredDescription
amountnumbernoBoleto amount
expire_atstring (date)noDue date
tagsarray<string>noTags associated with the boleto
notesstringnoNotes
custom_dataobjectnoHash with key and value in JSON format. Can be changed in any boleto status.
days_for_sue_typeintegernoType of days for protest: * 0 Calendar * 1 Business Values: null, 0, 1.
days_for_sueintegernoCalendar days for protest
days_for_revokeintegernoCalendar days for withdrawal Supported banks: Itaú
sue_codestringnoProtest code (CNAB 240 only). Check the possible values <a href="https://developers.kobana.com.br/reference/bancos-suportados" target="_blank">for each bank</a>.
instructionsstringnoInstructions for cashier
descriptionstringnoProduct or service description
interest_typeintegernoInterest/penalty type: * 0 Non-existent (Default) * 1 For daily percentage * 2 For daily amount * 7 For monthly percentage - Supported banks: Bradesco, BB, BTG, Caixa, Inter, Itaú, Safra, Santander, Sicoob and Sicredi Values: 0, 1, 2, 7.
days_for_interestintegernoNumber of days after the due date when the penalty will start to accrue. The default value is 1 day (the day after the due date).
interest_percentagenumbernoInterest percentage. From 0.0 to 100.0 (Ex 1.5% = 1.5) Required if interest_type equals 1 or 7. Up to 2 decimal places.
interest_valuenumbernoDaily interest amount (R$). Required if interest_type equals 2. Up to 2 decimal places.
discount_typeintegernoDiscount type: The discount type will be the same for all three discounts, if they exist. : * 0 Non-existent (Default) * 1 For fixed amount * 2 For percentage of boleto amount Values: 0, 1, 2.
days_for_discountintegernoDays for discount. Required if discount_type is different from 0 (zero)
discount_percentagenumbernoPercentage of the boleto amount equivalent to the discount. Required if discount_type equals 2
discount_valuenumbernoDiscount amount (R$). Required if discount_type equals 1.
days_for_second_discountintegernoDays for second discount.
second_discount_percentagenumbernoPercentage of the boleto amount equivalent to the second discount.
second_discount_valuenumbernoSecond discount amount (R$).
days_for_third_discountintegernoDays for third discount.
third_discount_percentagenumbernoPercentage of the boleto amount equivalent to the third discount.
third_discount_valuenumbernoThird discount amount (R$).
reduction_typeintegernoType of reduction: 1: Amount. 2: Percentage. 3: No reduction Values: 1, 2, 3.
reduction_amountnumbernoReduction amount. Required if reduction_type equals 1.
reduction_percentagenumbernoReduction percentage. Ex: 2% x R$ 250.00 = R$ 5.00. Required if reduction_type equals 2. Up to 2 decimal places.
divergent_payment_typeintegernoType of divergent payment: * 1 Accepts any divergent amount * 2 Accepts payments within a range of amounts or percentages * 3 Does not accept divergent amount payments * 4 Accepts payments above a minimum amount or percentage Supported banks: Itaú Values: null, 1, 2, 3, 4.
divergent_payment_value_typeintegernoType of value to consider for payment limits: Valid only for Itaú and Caixa. * 1 Reports divergent payments by amounts * 2 Reports divergent payments by percentages Supported banks: Itaú Values: null, 1, 2.
divergent_payment_maximum_valuenumbernoMaximum value for divergent payment range. Supported banks: Itaú
divergent_payment_minimum_valuenumbernoMinimum value for divergent payment range. Supported banks: Itaú
divergent_payment_maximum_percentagenumbernoMaximum percentage for divergent payment range. Supported banks: Itaú
divergent_payment_minimum_percentagenumbernoMinimum percentage for divergent payment range. Supported banks: Itaú
fine_typeintegernoFine type: * 0 Non-existent (Default) * 1 For percentage of boleto amount * 2 For fixed amount Values: 0, 1, 2.
days_for_fineintegernoNumber of days after the due date when the fine will start to accrue. The default value is 1 day (the day after the due date).
credit_bureauintegernoCredit Bureau/Negative Registry Agency. 0: Serasa. 1: Quod. 2: SPC Options available for each supported bank: * Banco do Brasil: Serasa and Quod. Values: null, 0, 1, 2.
days_for_negativationintegernoNumber of days after maturity to register negative on the title.
fine_percentagenumbernoLate fee percentage Ex: 2% x R$ 250.00 = R$ 5.00. Required if fine_type equals 1. Up to 2 decimal places.
fine_valuenumbernoFine amount (R$). Required if fine_type equals 2. Up to 2 decimal places.
document_numberstringnoDocument number, Size depends on the bank, format and sending method (API / EDI): * Itau |Cnab240| 10 | * Itau |Cnab400| 10 |
customer_person_namestringnoCustomer name. Supported banks: Santander
customer_cnpj_cpfstringnoCustomer CPF/CNPJ. Supported banks: Santander
customer_statestringnoState. Supported banks: Santander
customer_city_namestringnoCity (Name must be correct and complete). Supported banks: Santander
customer_zipcodestringnoPostal code (format 99999999). Supported banks: Santander
customer_addressstringnoAddress. Supported banks: Santander
customer_neighborhoodstringnoNeighborhood. Supported banks: Santander
guarantor_namestringnoFinal beneficiary name (Drawer/Guarantor). Supported banks: Santander
guarantor_cnpj_cpfstringnoFinal beneficiary CNPJ/CPF (Drawer/Guarantor). Supported banks: Santander
document_typestringnoDocument type: * Code | Abbreviation | Description * 01 | CH | Check * 02 | DM | Commercial Draft (Default) * 03 | DMI | Commercial Draft for Indication * 04 | DS | Service Draft * 05 | DSI | Service Draft for Indication * 06 | DR | Rural Draft * 07 | LC | Bill of Exchange * 08 | NCC | Commercial Credit Note * 09 | NCE | Export Credit Note * 10 | NCI | Industrial Credit Note * 11 | NCR | Rural Credit Note * 12 | NP | Promissory note * 13 | NPR | Rural Promissory note * 14 | TM | Commercial Triplicata * 15 | TS | Service Triplicata * 16 | NS | Insurance Note * 17 | RC | Receipt * 18 | FAT | Invoice * 19 | ND | Debit Note * 20 | AP | Insurance Policy * 21 | ME | School Monthly Fee * 22 | PC | Consortium Installment * 23 | NF | Nota Fiscal * 24 | DD | Debt Document * 25 | CPR | Commodity Futures Note * 26 | CTR | Contract * 27 | CSG | Co-insurance * 28 | EC | Condominium Charges * 29 | CPS | Service Provision Account * 30 | WR | Warrant * 31 | DP | Installment Draft * 32 | CSR | Serial Collection * 33 | CAR | Carnê * 34 | ARE | Elementary Risks Policy * 35 | CC | Credit Card * 36 | BDP | Proposal Boleto * 37 | NPD | Direct Promissory note * 38 | DAE | State Active Debt * 39 | DAM | Municipal Active Debt * 40 | DAU | Federal Active Debt * 41 | CCB | Banking Credit Cell * 42 | FI | Financing * 43 | RD | Expense Sharing * 44 | DRI | Rural Draft for Indication * 45 | ECI | Condominium Charges for Indication * 99 | Others | Others Supported banks: Santander Values: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 99.
control_numberstringnoControl number: May contain any information of interest to the Company. The information contained in this field will always be returned with the respective title in the return file. Supported banks: Santander
payment_countintegernoNumber of partial payments accepted for this boleto. Supported banks: Santander
issued_atstring (date)noIssuance date. Supported banks: Santander
bolepix_keystringnoBolepix key. Supported banks: Santander
pix_txidstringnoPix TxId. Supported banks: Santander

More fields and nested objects: kobana schema banking.bank-billets.update.

Responses

HTTPDescription
204Billet updated
404Billet not found
422Fields not supported by the bank

bank-billets cancel​

Cancel the Billet

kobana banking bank-billets cancel [ID] [OPTIONS]

PUT /v1/bank_billets/{id}/cancel

Cancels billets with status Opened (opened) or Overdue (overdue)

Path arguments: id

Request body

NameTypeRequiredDescription
cancellation_reasonintegernoCancellation reason: * 1 Other * 2 Fraud * 3 Death * 4 Operational error * 5 Settlement paid Values: 1, 2, 3, 4, 5.

More fields and nested objects: kobana schema banking.bank-billets.cancel.

Responses

HTTPDescription
204Billet cancelled
404Billet not found
422Billet cannot be cancelled

bank-billets duplicate​

Duplicate Billet

kobana banking bank-billets duplicate [ID] [OPTIONS]

POST /v1/bank_billets/{id}/duplicate

Duplicates billet allowing modification of new billet information and/or cancellation of the duplicated billet

Path arguments: id

Request body

NameTypeRequiredDescription
expire_at_in_daysintegernoNumber of days until maturity from today. Default: 7
amountnumbernoNew boleto amount
cancelbooleannoCancel the boleto that is being duplicated. Default: true
with_finesbooleannoUpdate the new boleto amount with interest and fine. Default: false
bank_billet_account_idintegernoCollection wallet ID. If not provided, it will use the default wallet.
bank_billet_layout_idintegernoBoleto template ID
customer_idintegernoCustomer ID. When this ID is passed, the fields customer_person_name, customer_cnpj_cpf, customer_zipcode, customer_address, customer_city_name, customer_state and customer_neighborhood are not required.
customer_person_namestringnoCustomer name
customer_cnpj_cpfstringnoCustomer CPF/CNPJ
customer_statestringnoState
customer_city_namestringnoCity (Name must be correct and complete)
customer_zipcodestringnoZIP Code (format 99999999)
customer_addressstringnoAddress
customer_address_complementstringnoComplement
customer_address_numberstringnoNumber
customer_emailstring (email)noPayer's email
customer_email_ccstring (email)noAlternative payer email
customer_neighborhoodstringnoNeighborhood
customer_phone_numberstringnoPhone (with area code, international code is optional)
customer_ignore_emailbooleannoNever send email to this customer
customer_ignore_smsbooleannoNever send SMS to this customer
customer_mobile_local_codestringnoMobile area code
customer_mobile_numberstringnoMobile phone
customer_nicknamestringnoNickname or trade name of the payer
customer_notesstringnoPayer notes
customer_contact_personstringnoContact
interest_typeintegernoInterest/penalty type: * 0 Non-existent (Default) * 1 For daily percentage * 2 For daily amount Values: 0, 1, 2.
days_for_interestintegernoNumber of days after the due date when the penalty will start to accrue. The default value is 1 day (the day after the due date).
interest_percentagenumbernoDaily interest percentage. From 0.0 to 100.0 (Ex 1.5% = 1.5) Required if interest_type equals 1.
interest_valuenumbernoDaily interest amount (R$). Required if interest_type equals 2.
interest_days_typeintegernoType of days for interest: * 0 Calendar * 1 Business Values: 0, 1.
fine_typeintegernoFine type: * 0 Non-existent (Default) * 1 For percentage of boleto amount * 2 For fixed amount Values: 0, 1, 2.
days_for_fineintegernoNumber of days after the due date when the fine will start to accrue. The default value is 1 day (the day after the due date).
fine_percentagenumbernoLate fee percentage Ex: 2% x R$ 250.00 = R$ 5.00. Required if fine_type equals 1
fine_valuenumbernoFine amount (R$). Required if fine_type equals 2.
discount_typeintegernoDiscount type: The discount type will be the same for all three discounts, if they exist. : * 0 Non-existent (Default) * 1 For fixed amount * 2 For percentage of boleto amount Values: 0, 1, 2.
days_for_discountintegernoDays for discount. Required if discount_type is different from 0 (zero)
discount_percentagenumbernoPercentage of the boleto amount equivalent to the discount. Required if discount_type equals 2
discount_valuenumbernoDiscount amount (R$). Required if discount_type equals 1.
days_for_second_discountintegernoDays for second discount.
second_discount_percentagenumbernoPercentage of the boleto amount equivalent to the second discount.
second_discount_valuenumbernoSecond discount amount (R$).
days_for_third_discountintegernoDays for third discount.
third_discount_percentagenumbernoPercentage of the boleto amount equivalent to the third discount.
third_discount_valuenumbernoThird discount amount (R$).
tagsarray<string>noTags associated with the boleto
tag_liststringnoTags associated with the boleto
charge_typeintegernoCharge type: * 1 Simple * 2 Linked * 3 Discounted * 4 Vendor Values: 1, 2, 3, 4.
dispatch_typeintegernoCharge type: When the boleto needs to be sent by mail. It is necessary to contract the service with the bank and you will pay a fee. * 1 Customer * 2 Bank Values: 1, 2.
guarantor_namestringnoFinal beneficiary name (Drawer/Guarantor)
guarantor_cnpj_cpfstringnoFinal beneficiary CNPJ/CPF (Drawer/Guarantor)
guarantor_address_numberstringnoFinal beneficiary number (Drawer/Guarantor)
guarantor_neighborhoodstringnoFinal beneficiary neighborhood (Drawer/Guarantor)
guarantor_phone_numberstringnoFinal beneficiary phone (with area code) (Drawer/Guarantor)
guarantor_city_namestringnoCity (Name must be correct and complete) of final beneficiary (Drawer/Guarantor)
guarantor_statestringnoState of final beneficiary (Drawer/Guarantor)
guarantor_zipcodestringnoPostal code (format 99999999) of final beneficiary (Drawer/Guarantor)
guarantor_addressstringnoAddress of final beneficiary (Drawer/Guarantor)
guarantor_address_complementstringnoComplement of final beneficiary (Drawer/Guarantor)
descriptionstringnoProduct or service description
instructionsstringnoInstructions for cashier
document_datestring (date)noDocument date
document_typestringnoDocument type: * Code | Abbreviation | Description * 01 | CH | Check * 02 | DM | Commercial Draft (Default) * 03 | DMI | Commercial Draft for Indication * 04 | DS | Service Draft * 05 | DSI | Service Draft for Indication * 06 | DR | Rural Draft * 07 | LC | Bill of Exchange * 08 | NCC | Commercial Credit Note * 09 | NCE | Export Credit Note * 10 | NCI | Industrial Credit Note * 11 | NCR | Rural Credit Note * 12 | NP | Promissory note * 13 | NPR | Rural Promissory note * 14 | TM | Commercial Triplicata * 15 | TS | Service Triplicata * 16 | NS | Insurance Note * 17 | RC | Receipt * 18 | FAT | Invoice * 19 | ND | Debit Note * 20 | AP | Insurance Policy * 21 | ME | School Monthly Fee * 22 | PC | Consortium Installment * 23 | NF | Nota Fiscal * 24 | DD | Debt Document * 25 | CPR | Commodity Futures Note * 26 | CTR | Contract * 27 | CSG | Co-insurance * 28 | EC | Condominium Charges * 29 | CPS | Service Provision Account * 30 | WR | Warrant * 31 | DP | Installment Draft * 32 | CSR | Serial Collection * 33 | CAR | Carnê * 34 | ARE | Elementary Risks Policy * 35 | CC | Credit Card * 36 | BDP | Proposal Boleto * 37 | NPD | Direct Promissory note * 38 | DAE | State Active Debt * 39 | DAM | Municipal Active Debt * 40 | DAU | Federal Active Debt * 41 | CCB | Banking Credit Cell * 42 | FI | Financing * 43 | RD | Expense Sharing * 44 | DRI | Rural Draft for Indication * 45 | ECI | Condominium Charges for Indication * 99 | Others | Others Values: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 99.
document_type_labelstringnoDocument type (Abbreviation)
document_numberstringnoDocument number
acceptancestringnoAcceptance: * N No (Default) * S Yes Values: N, S.
our_numberstringnoOur Number. If not provided, it will use the Next Our Number from the Collection Wallet.
processed_our_numberstringnoOur Number calculated with check digit (formatted)
processed_our_number_rawstringnoOur Number calculated with check digit (clean)
paid_amountnumbernoAmount paid
paid_atstring (date)noPayment date
days_for_revokeintegernoCalendar days for withdrawal/return: Null/Blank: Follows the bank's default. 0: Withdrawal/Return on the same day as maturity. 1 or more: Withdrawal/Return after maturity (Maturity + X calendar days).
days_for_negativationintegernoCalendar days for negative registry: Available only for the following banks and formats. * Bank | CNAB 240| CNAB 400 |Webservice * Bradesco | Yes | Yes | No * Itaú | No | Yes | No
days_for_sue_typeintegernoType of days for protest: * 0 Calendar * 1 Business Values: null, 0, 1.
days_for_sueintegernoCalendar days for protest
sue_codestringnoProtest code (CNAB 240). Check the possible values <a href="https://developers.kobana.com.br/reference/bancos-suportados" target="_blank">for each bank</a>.
revoke_codestringnoWithdrawal code (CNAB 240). Check the possible values <a href="https://developers.kobana.com.br/reference/bancos-suportados" target="_blank">for each bank</a>.
first_instructionstringnoFirst instruction (CNAB 400). Check the possible values <a href="https://developers.kobana.com.br/reference/bancos-suportados" target="_blank">for each bank</a>.
second_instructionstringnoSecond instruction (CNAB 400). Check the possible values <a href="https://developers.kobana.com.br/reference/bancos-suportados" target="_blank">for each bank</a>.
watermarkbooleannoAddress
divergent_payment_typeintegernoType of divergent payment: Valid only for Itaú and Caixa. * 1 Accepts any divergent amount * 2 Accepts payments within a range of amounts or percentages * 3 Does not accept divergent amount payments * 4 Accepts payments above a minimum amount or percentage Values: null, 1, 2, 3, 4.
divergent_payment_value_typeintegernoType of value to consider for payment limits: Valid only for Itaú and Caixa. * 1 Reports divergent payments by amounts * 2 Reports divergent payments by percentages Values: null, 1, 2.
divergent_payment_maximum_valuenumbernoMinimum value for divergent payment range.
divergent_payment_minimum_valuenumbernoMaximum value for divergent payment range.
divergent_payment_maximum_percentagenumbernoMinimum percentage for divergent payment range.
divergent_payment_minimum_percentagenumbernoMaximum percentage for divergent payment range.
divergent_payment_limitintegernoNumber of payments allowed. Required if divergent payment data is provided. Used only by Caixa.
prevent_registrationbooleannoPrevent sending registration to bank: If true, prevents the boleto from being registered. To be used in cases where the boleto was already registered outside of Kobana but you want to include it in the system.
control_numberstringnoControl number: May contain any information of interest to the Company. The information contained in this field will always be returned with the respective title in the return file.
ignore_emailbooleannoDo not send this boleto by email
ignore_smsbooleannoNever send this boleto by SMS
ignore_whatsappbooleannoNever send this boleto by WhatsApp
addonsstring (jsonb)noAddress
custom_dataobjectnoHash with key and value in JSON format.
metaobjectnoHash with key and value in JSON format.
notesstringnoNotes
custom_attachment_namestringnoName to be used in boleto files sent to the customer in notifications. Accepts use of variables. If left empty, the default is the word "boleto" followed by the ID.
split_paymentbooleannoPayment Split. Valid only for ABC Brasil (CNAB 240 remittance), Itaú and Bradesco (CNAB 400 remittance). If true, the boleto split will be registered. Provide the split accounts in split_accounts
split_payment_typeintegernoType of payment split: Valid only for Itau. Used only with Payment split true. * 1 Credit split by percentage (%) – Nominal value of the title * 2 Credit split in amount (R$) – Nominal value of the title * 3 Credit split by percentage (%) – Net amount received * 4 Credit split in amount (R$) – Net amount received, split proportionally Values: 1, 2, 3, 4.
split_accountsarray<object>noAccounts for payment split.
payment_placestringnoPayment location
installment_idintegernoCarnê ID
installment_numberintegernoInstallment number of the voucher
installment_totalintegernoTotal installments of the voucher
customer_subscription_idintegernoSubscription ID
beneficiary_namestringnoBeneficiary Name
beneficiary_cnpj_cpfstringnoCNPJ/CPF of Beneficiary
beneficiary_addressstringnoBeneficiary address
beneficiary_assignor_codestringnoAgency/Beneficiary code
bank_contract_slugstringnoWallet slug
agency_numberstringnoAgency
agency_digitstringnoBranch digit
account_numberstringnoAccount
account_digitstringnoAccount digit
extra1stringnoExtra field 1
extra1_digitstringnoDigit of extra field 1
extra2stringnoExtra field 2
extra2_digitstringnoDigit of extra field 2
created_via_apibooleannoIndicates if the boleto was created by API
created_atstring (date-time)noBoleto creation date and time
updated_atstring (date-time)noBoleto last update date and time
registered_atstring (date-time)noRegistration date and time
register_typeintegernoRegistration type: * 1 API * 2 Bank Values: 1, 2.
cancel_typeintegernoCancellation type: * 1 Customer * 2 Bank Values: 1, 2.
payment_countintegernoNumber of partial payments accepted for this boleto.
linestringnoDigitizable Line
barcodestringnoAddress
shorten_urlstringnoURL for viewing the boleto
urlstringnoURL for viewing the boleto
carne_urlstringnoURL for viewing the voucher (When it is an installment)
formatsobjectnoURLs with available formats. Ex.: PDF, Image, Pix etc
pix_enabledbooleannoIndicates if the boleto is hybrid and has Pix QR code
pix_qrcodestringnoHybrid boleto Pix QR code
statusstringnoBoleto status: * generating Generating * draft Draft * generation_failed Generation failed * opened Open * canceled Canceled * paid Paid * overdue Overdue * validation_failed Invalid * chargeback Charged back Values: generating, draft, generation_failed, validation_failed, opened, canceled, paid, overdue, blocked, chargeback.
recipient_accountstringnoRecipient account + check digit

More fields and nested objects: kobana schema banking.bank-billets.duplicate.

Responses

HTTPDescription
201Billet duplicated
404Billet not found

bank-billets pay​

Mark Billet as Paid

kobana banking bank-billets pay [ID] [OPTIONS]

PUT /v1/bank_billets/{id}/pay

Mark billet as paid

Path arguments: id

Request body

NameTypeRequiredDescription
paid_amountnumberyesAmount paid of the boleto.
paid_atstring (date)yesBoleto payment date
bank_ratestringnoBank fee amount.
direct_paymentbooleannoInforms if payment was made directly to the beneficiary.

More fields and nested objects: kobana schema banking.bank-billets.pay.

Responses

HTTPDescription
204Billet paid
404Billet not found

bank-billets send-email​

Send Billet by Email

kobana banking bank-billets send-email [ID] [OPTIONS]

POST /v1/bank_billets/{id}/send_email

Send billet by email

Path arguments: id

Request body

NameTypeRequiredDescription
formobjectyesEmail form.

More fields and nested objects: kobana schema banking.bank-billets.send-email.

Responses

HTTPDescription
200Email sent successfully
400Failed to send the email

bank-billets send-sms​

Send Billet by SMS

kobana banking bank-billets send-sms [ID] [OPTIONS]

POST /v1/bank_billets/{id}/send_sms

Send billet by sms

Path arguments: id

Request body

NameTypeRequiredDescription
formobjectyesSMS form.

More fields and nested objects: kobana schema banking.bank-billets.send-sms.

Responses

HTTPDescription
200SMS sent successfully
400Failed to send the sms