Skip to main content

kobana banking discharges

Commands of kobana banking discharges. Every global option (Global options) applies here.

CommandHTTPDescription
discharges listGET /v1/dischargesList CNABs
discharges createPOST /v1/dischargesSend CNAB
discharges getGET /v1/discharges/{id}CNAB Information
discharges downloadGET /v1/discharges/{id}/downloadCNAB Download
discharges pay-offPUT /v1/discharges/{id}/pay_offSettle Billets
discharges reprocessPUT /v1/discharges/{id}/reprocessReprocess CNAB

discharges list​

List CNABs

kobana banking discharges list [OPTIONS]

GET /v1/discharges

List CNABs.

Query parameters

NameTypeRequiredDescription
created_fromstringnoFrom Return Creation Date.
created_tostringnoTo Return Creation Date.
bank_billet_account_idstringnoFilter by Wallet ID.
tagsstringnoFilter by tags (separated by comma).
pageintegernoPage Number
per_pageintegernoNumber of records per page

Responses

HTTPDescription
200Success in listing CNABs

discharges create​

Send CNAB

kobana banking discharges create [OPTIONS]

POST /v1/discharges

Sends a CNAB file of bank return for processing payments and billing debits.

Request body

Sent as a multipart/form-data form: files go in --file FIELD=PATH.

NameTypeRequiredDescription
filestring (binary)noFile
filenamestringnoFile name
bank_billet_account_idintegernoID of the Billing Account.
external_idstringnoExternal ID.
custom_dataobjectnoCustom data.
tagsarray<string>noTags.

More fields and nested objects: kobana schema banking.discharges.create.

Responses

HTTPDescription
201CNAB sent with custom_data and tags
422Invalid data

discharges get​

CNAB Information

kobana banking discharges get [ID] [OPTIONS]

GET /v1/discharges/{id}

Query specific information from a CNAB.

Path arguments: id

Responses

HTTPDescription
200CNAB found
404CNAB not found

discharges download​

CNAB Download

kobana banking discharges download [ID] [OPTIONS]

GET /v1/discharges/{id}/download

Path arguments: id

Responses

HTTPDescription
200Download successful
404CNAB not found

discharges pay-off​

Settle Billets

kobana banking discharges pay-off [ID] [OPTIONS]

PUT /v1/discharges/{id}/pay_off

Settle billets.

You must have already sent the CNAB. All billets identified within the CNAB will be marked as PAID and Webhooks will be triggered.

Path arguments: id

Responses

HTTPDescription
204Billets settled
404CNAB not found

discharges reprocess​

Reprocess CNAB

kobana banking discharges reprocess [ID] [OPTIONS]

PUT /v1/discharges/{id}/reprocess

Path arguments: id

Responses

HTTPDescription
204CNAB reprocessed
404CNAB not found