Skip to main content

kobana banking bank-billet-accounts

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

CommandHTTPDescription
bank-billet-accounts listGET /v1/bank_billet_accountsList Wallets
bank-billet-accounts createPOST /v1/bank_billet_accountsCreate Collection Wallet
bank-billet-accounts getGET /v1/bank_billet_accounts/{id}Wallet Information
bank-billet-accounts updatePUT /v1/bank_billet_accounts/{id}Update Wallet
bank-billet-accounts deleteDELETE /v1/bank_billet_accounts/{id}Delete Collection Wallet
bank-billet-accounts askGET /v1/bank_billet_accounts/{id}/askRequest Collection Wallet Approval
bank-billet-accounts set-defaultPUT /v1/bank_billet_accounts/{id}/set_defaultChange Default Collection Wallet
bank-billet-accounts validatePUT /v1/bank_billet_accounts/{id}/validateValidate Collection Wallet

bank-billet-accounts list​

List Wallets

kobana banking bank-billet-accounts list [OPTIONS]

GET /v1/bank_billet_accounts

List Wallets.

Query parameters

NameTypeRequiredDescription
pageintegernoPage Number
per_pageintegernoNumber of records per page

Responses

HTTPDescription
200Wallets Found

bank-billet-accounts create​

Create Collection Wallet

kobana banking bank-billet-accounts create [OPTIONS]

POST /v1/bank_billet_accounts

Creates a new collection wallet for issuing bank billets. The wallet needs to be approved before it can be used in production.

Request body

NameTypeRequiredDescription
bank_contract_slugstringyesWallet slug
financial_account_uidstring (uuid)yesUID of the Financial Account. When informed, the agency and account data will be automatically populated from the financial account.
beneficiary_namestringyesBeneficiary Name
beneficiary_cnpj_cpfstringyesCNPJ/CPF of Beneficiary
beneficiary_address_streetstringyesBeneficiary street
beneficiary_address_street_numberstringyesBeneficiary street number
beneficiary_address_complementstringyesBeneficiary address complement
beneficiary_address_neighborhoodstringyesBeneficiary neighborhood
beneficiary_address_citystringyesBeneficiary city
beneficiary_address_statestringyesBeneficiary state
beneficiary_address_zipcodestringyesBeneficiary postal code (format 99999999)
beneficiary_addressstringyesBeneficiary complete address.
idintegernoWallet ID
next_our_numberintegernoNext Our Number. Default: 1
next_remittance_numberintegernoLast remittance sequential Default: 1
agency_numberstringnoAgency. Automatically filled when financial_account_uid is provided.
agency_digitstringnoAgency Digit. Automatically filled when financial_account_uid is provided.
account_numberstringnoAccount. Automatically filled when financial_account_uid is provided.
account_digitstringnoAccount check digit. Automatically filled when financial_account_uid is provided.
extra1stringnoExtra field 1. Depending on the wallet chosen, it may be required.
extra1_digitstringnoDigit of extra field 1. Depending on the wallet chosen, it may be required.
extra2stringnoExtra field 2. Depending on the wallet chosen, it may be required.
extra2_digitstringnoDigit of extra field 2. Depending on the wallet chosen, it may be required.
extra3stringnoRemittance code
payment_placestringnoPayment location
contractstringnoContract
contract_typestringnoContract type
financial_accountobjectnoFinancial account associated with the wallet
bolepix_enabled_atstringnoDate and time when the hybrid boleto was enabled.
bolepixobjectnoHybrid boleto configuration
namestringnoAccount name. Not received at creation or update, only returned in query and listing
statusstringnoWallet status: When the wallet has just been registered, it receives the status pending. At this point the user must accept the terms and start the homologation. When clicking on "Proceed with Homologation", the status changes to homologating. A boleto and a Homologation remittance will be generated to be sent to the bank. After completion, the status changes to validating. From this point on, the user needs to inform the value of the boleto that was generated or send the return processed by the bank. When the value is correctly informed, or in the processed return, the bank says everything is correct, the status changes to active. * pending Homologation not started * homologating In homologation, awaiting boleto payment * validating Boleto paid, awaiting validation * active Active and ready to use Values: pending, homologating, validating, active.
defaultbooleannoDefault. The default field determines the collection wallet that will be used in the creation of the boleto when no wallet is provided. When the first wallet is homologated (moves to status = active), it receives the value default = true
configurationobjectnoDefault data configuration for boleto
bank_contractobjectnoWallet data. Not received at creation or update, only returned in query and listing.
custom_namestringnoWallet name for identification within Kobana.
kindstringnoCNAB type: * cnab400 CNAB 400 * cnab240 CNAB 240 Values: cnab400, cnab240.
remittance_disabledbooleannoDisables remittance generation.
remittance_disabled_atstring (date-time)noDate and time when remittance generation was disabled.
allow_expiration_on_weekendsbooleannoAllow maturity on weekends and holidays
created_atstring (date-time)noWallet creation date and time
updated_atstring (date-time)noWallet last update date and time
created_via_apibooleannoIndicates if the wallet was created by API

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

Responses

HTTPDescription
201Collection wallet created with financial_account_uid
422Invalid wallet - Beneficiary CPF

bank-billet-accounts get​

Wallet Information

kobana banking bank-billet-accounts get [ID] [OPTIONS]

GET /v1/bank_billet_accounts/{id}

Query specific information from a Wallet

Path arguments: id

Responses

HTTPDescription
200Wallet found
404Wallet not found

bank-billet-accounts update​

Update Wallet

kobana banking bank-billet-accounts update [ID] [OPTIONS]

PUT /v1/bank_billet_accounts/{id}

Updates specific information of a Wallet.

Path arguments: id

Request body

NameTypeRequiredDescription
kindstringnoCNAB type: * cnab400 CNAB 400 * cnab240 CNAB 240 Values: cnab400, cnab240.
bank_contract_slugstringnoWallet slug. Active wallets will not be able to have the bank_contract_slug field changed.
financial_accountobjectnoFinancial account associated with the wallet
payment_placestringnoPayment location
custom_namestringnoWallet name for identification within Kobana.
allow_expiration_on_weekendsbooleannoAllow maturity on weekends and holidays
beneficiary_namestringnoBeneficiary Name
beneficiary_cnpj_cpfstringnoCNPJ/CPF of Beneficiary
agency_numberstringnoAgency. Automatically filled when financial_account_uid is provided.
agency_digitstringnoAgency check digit. Optional: will be calculated automatically using Module 11 when the bank requires it and is not provided. Automatically filled when financial_account_uid is provided.
account_numberstringnoAccount. Automatically filled when financial_account_uid is provided.
account_digitstringnoAccount check digit. Automatically filled when financial_account_uid is provided.
extra1stringnoExtra field 1.
extra1_digitstringnoDigit of extra field 1.
extra2stringnoExtra field 2.
extra2_digitstringnoDigit of extra field 2.
contractstringnoContract
contract_typestringnoContract type
extra3stringnoRemittance code
beneficiary_address_streetstringnoBeneficiary street
beneficiary_address_street_numberstringnoBeneficiary street number
beneficiary_address_complementstringnoBeneficiary address complement
beneficiary_address_neighborhoodstringnoBeneficiary neighborhood
beneficiary_address_citystringnoBeneficiary city
beneficiary_address_statestringnoBeneficiary state
beneficiary_address_zipcodestringnoBeneficiary postal code (format 99999999)
beneficiary_addressstringnoBeneficiary complete address.
bolepix_enabledbooleannoEnable Bolepix (legacy — prefer the bolepix object)
bolepixobjectnoHybrid boleto configuration
bolepix_keystringnoPix key that will be used in Bolepix
defaultbooleannoDefault. The default field determines the collection portfolio that will be used when creating the boleto when no portfolio is informed. At the moment the first portfolio is approved (moves to status = active), it receives the value default = true
remittance_disabledbooleannoDisables remittance generation.
next_our_numberintegernoLast our number
next_remittance_numberintegernoLast remittance sequential Default: 1
bank_billet_account_next_our_number_attributesobjectno
bank_billet_account_next_remittance_number_attributesobjectno

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

Responses

HTTPDescription
204Wallet updated
404Wallet not found
422Unprocessable Entity

bank-billet-accounts delete​

Delete Collection Wallet

kobana banking bank-billet-accounts delete [ID] [OPTIONS]

DELETE /v1/bank_billet_accounts/{id}

Deletes a Collection Wallet. Optionally, also deletes the associated Financial Account.

Path arguments: id

Query parameters

NameTypeRequiredDescription
delete_financial_accountbooleannoWhen true, also deletes the Financial Account associated with the Wallet.

Responses

HTTPDescription
202Wallet and Financial Account deleted (delete_financial_account=true)
204Wallet queued for deletion (delete_financial_account=false)
404Wallet not found

bank-billet-accounts ask​

Request Collection Wallet Approval

kobana banking bank-billet-accounts ask [ID] [OPTIONS]

GET /v1/bank_billet_accounts/{id}/ask

Request Collection Wallet approval

Path arguments: id

Responses

HTTPDescription
200Approval request completed successfully
404Wallet not found
422Wallet already approved

bank-billet-accounts set-default​

Change Default Collection Wallet

kobana banking bank-billet-accounts set-default [ID] [OPTIONS]

PUT /v1/bank_billet_accounts/{id}/set_default

Path arguments: id

Request body

NameTypeRequiredDescription
defaultbooleanyesSets the default Wallet (Default: true) or remove from default (Default: false)

More fields and nested objects: kobana schema banking.bank-billet-accounts.set-default.

Responses

HTTPDescription
204Wallet set as default successfully
404Wallet not found
422Unprocessable Entity

bank-billet-accounts validate​

Validate Collection Wallet

kobana banking bank-billet-accounts validate [ID] [OPTIONS]

PUT /v1/bank_billet_accounts/{id}/validate

Path arguments: id

Request body

NameTypeRequiredDescription
homologation_amountstringyesAmount received by the billet (R$) Ex.: 1.87

More fields and nested objects: kobana schema banking.bank-billet-accounts.validate.

Responses

HTTPDescription
204Wallet approved successfully
404Wallet not found
422Unprocessable Entity