Skip to main content

kobana billing bank-accounts

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

CommandHTTPDescription
bank-accounts listGET /v1/bank_accountsList bank accounts
bank-accounts createPOST /v1/bank_accountsCreate a bank account
bank-accounts getGET /v1/bank_accounts/{id}Get a bank account
bank-accounts updatePATCH /v1/bank_accounts/{id}Update a bank account
bank-accounts deleteDELETE /v1/bank_accounts/{id}Delete a bank account

bank-accounts list​

List bank accounts

kobana billing bank-accounts list [OPTIONS]

GET /v1/bank_accounts

The organization bank accounts customers transfer to on a bank_transfer charge (POST /invoices/{id}/pay).

Query parameters

NameTypeRequiredDescription
pageintegernoPage (starts at 1). Default: 1.
per_pageintegernoItems per page. Default: 20. Maximum: 100.
sort_bystringnoSort field. Default depends on the resource.
sort_orderstringnoSort direction. Default: desc. Values: asc, desc.
activestringnoFilter by active (true) or inactive (false) accounts. Values: true, false.
bank_idstringnoFilter by bank (UUID from /banks).

Responses

HTTPDescription
200Paginated list of bank accounts.
404Resource not found in the current organization.

bank-accounts create​

Create a bank account

kobana billing bank-accounts create [OPTIONS]

POST /v1/bank_accounts

Request body

NameTypeRequiredDescription
namestringyesAccount nickname, for the operator.
bank_idstring (uuid)yesBank UUID (see /banks).
agencystringyesBranch number, digits only.
account_numberstringyesAccount number, digits only.
typestringnochecking or savings. Values: checking, savings.
agency_digitstringnoBranch check digit, when there is one.
account_digitstringnoAccount check digit, when there is one.
holder_namestringnoHolder shown to the customer. Empty uses the legal name of the invoice issuing company (or the organization).
holder_documentstringnoHolder CPF/CNPJ, digits only. Empty uses the document of the issuing company (or the organization).
company_idstring (uuid)noIssuing company it belongs to (optional).
activebooleannoOnly active destinations can be chosen for a new charge.

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

Responses

HTTPDescription
201Bank account created.
400Request body failed validation.
404Resource not found in the current organization.
422Request body failed validation.

bank-accounts get​

Get a bank account

kobana billing bank-accounts get [ID] [OPTIONS]

GET /v1/bank_accounts/{id}

Path arguments: id

Responses

HTTPDescription
200Bank account found.
404Resource not found in the current organization.

bank-accounts update​

Update a bank account

kobana billing bank-accounts update [ID] [OPTIONS]

PATCH /v1/bank_accounts/{id}

Path arguments: id

Request body

NameTypeRequiredDescription
namestringnoAccount nickname, for the operator.
bank_idstring (uuid)noBank UUID (see /banks).
typestringnochecking or savings. Values: checking, savings.
agencystringnoBranch number, digits only.
agency_digitstringnoBranch check digit, when there is one.
account_numberstringnoAccount number, digits only.
account_digitstringnoAccount check digit, when there is one.
holder_namestringnoHolder shown to the customer. Empty uses the legal name of the invoice issuing company (or the organization).
holder_documentstringnoHolder CPF/CNPJ, digits only. Empty uses the document of the issuing company (or the organization).
company_idstring (uuid)noIssuing company it belongs to (optional).
activebooleannoOnly active destinations can be chosen for a new charge.

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

Responses

HTTPDescription
200Bank account updated.
400Request body failed validation.
404Resource not found in the current organization.
422Request body failed validation.

bank-accounts delete​

Delete a bank account

kobana billing bank-accounts delete [ID] [OPTIONS]

DELETE /v1/bank_accounts/{id}

Soft delete. Charges already sent keep showing the details the customer received.

Path arguments: id

Responses

HTTPDescription
200Bank account deleted.
404Resource not found in the current organization.