Skip to main content

Protests

Protesting a charge at a notary office, with its fees and the sending, summons and protest dates. cancel requests the cancellation of a protest that is neither paid nor already cancelled.

CommandHTTPDescription
protests listGET /v1/protestsList protests
protests createPOST /v1/protestsCreate protest
protests getGET /v1/protests/{id}Get protest
protests updatePUT /v1/protests/{id}Update protest
protests deleteDELETE /v1/protests/{id}Delete protest
protests cancelPOST /v1/protests/{id}/cancelRequest protest cancellation

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.

# List protests
kobana dunning protests list --fields "id,person_id,charge_id,status,amount,protest_date"

# Protest a charge
kobana dunning protests create \
--json '{"person_id": "PERSON_ID", "charge_id": "CHARGE_ID", "amount": 150}'

# Request cancellation
kobana dunning protests cancel \
--params '{"id": "PROTEST_ID"}' \
--json '{"cancellation_reason": "Acordo firmado"}' --dry-run

Next steps​