Skip to main content

Charges

Each customer's receivables — what the collection rule chases. notify sends a manual notification outside the rule, settlement-pdf produces the settlement letter (paid charges only), and the bulk-* commands archive, cancel or assign a rule to up to 100 charges per call.

CommandHTTPDescription
charges listGET /v1/chargesList charges
charges createPOST /v1/chargesCreate charge
charges getGET /v1/charges/{id}Get charge
charges updatePUT /v1/charges/{id}Update charge
charges deleteDELETE /v1/charges/{id}Delete charge
charges notifyPOST /v1/charges/{id}/notifyNotify charge
charges settlement-pdfGET /v1/charges/{id}/settlement-pdfSettlement letter (PDF)
charges bulk-archive createPOST /v1/charges/bulk-archiveBulk-archive charges
charges bulk-assign-rule createPOST /v1/charges/bulk-assign-ruleBulk-assign a collection rule
charges bulk-cancel createPOST /v1/charges/bulk-cancelBulk-cancel charges

Examples​

--params carries query, path and header parameters (id, page, filters, X-Workspace-Id); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.

# Overdue charges
kobana dunning charges list \
--params '{"status": "overdue", "per_page": 100}' \
--fields "id,person_id,document_number,current_amount,due_date"

# Create a charge
kobana dunning charges create \
--json '{"person_id": "PERSON_ID", "original_amount": 1500, "issue_date": "2026-07-01", "due_date": "2026-08-01"}'

# Notify manually by e-mail
kobana dunning charges notify \
--params '{"id": "CHARGE_ID"}' \
--json '{"channel": "email", "recipient": "maria@exemplo.com.br", "subject": "Lembrete", "body": "Sua cobrança vence amanhã."}'

# Settlement letter as PDF
kobana dunning charges settlement-pdf --params '{"id": "CHARGE_ID"}' --output quitacao.pdf

# Assign a rule to several charges
kobana dunning charges bulk-assign-rule create \
--json '{"ids": ["CHARGE_ID_1", "CHARGE_ID_2"], "collection_rule_id": "RULE_ID"}'

# Bulk-cancel charges
kobana dunning charges bulk-cancel create \
--json '{"ids": ["CHARGE_ID_1", "CHARGE_ID_2"]}' --dry-run

Next steps​