Skip to main content

kobana dunning disputes

Commands of kobana dunning disputes. Every global option (Global options) applies here.

CommandHTTPDescription
disputes listGET /v1/disputesList disputes
disputes createPOST /v1/disputesOpen dispute
disputes getGET /v1/disputes/{id}Get dispute
disputes updatePATCH /v1/disputes/{id}Run dispute action

disputes list​

List disputes

kobana dunning disputes list [OPTIONS]

GET /v1/disputes

Lists the organization’s disputes, ordered by opening date (newest first). Custom sorting is not supported.

Query parameters

NameTypeRequiredDescription
pageintegernoPage number (starts at 1).
per_pageintegernoItems per page (max 100).
statusstringnoFilter by status (open | under_review | resolved_valid | resolved_invalid | canceled). Values: open, under_review, resolved_valid, resolved_invalid, canceled.
charge_idstringnoFilter by charge (UUID).
person_idstringnoFilter by customer (UUID).

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
200Paginated dispute list.
404Resource not found or outside your organization.
413Request body larger than 2 MB.

disputes create​

Open dispute

kobana dunning disputes create [OPTIONS]

POST /v1/disputes

Opens a dispute against a charge and immediately pauses the collection rule. If the charge already has an open or under-review dispute, the existing one is returned (no duplicates). Supports Idempotency-Key.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Request body

NameTypeRequiredDescription
charge_idstring (uuid)yesDisputed charge.
typestringyesDispute type (already_paid | not_recognized | wrong_amount | service_not_provided | incorrect_invoice | wrong_recipient | other). Values: already_paid, not_recognized, wrong_amount, service_not_provided, incorrect_invoice, wrong_recipient, other.
reasonstringnoDebtor/operator account of the issue.
disputed_amountnumbernoDisputed amount (number). Omit to dispute the full amount.
documentsarray<object>noEvidence attachments/references.
assigned_to_idstring (uuid)noUser assigned to the review (must belong to the organization).
sla_daysintegernoSLA days to resolve (max 60; system default when omitted).
custom_metadataobjectnoUser metadata (free-form JSON object, read-write). See custom_data for the legacy field on core resources.

More fields and nested objects: kobana schema dunning.disputes.create.

Responses

HTTPDescription
201Dispute opened (or the charge’s existing open dispute).
400Invalid request (validation error).
404Resource not found or outside your organization.
413Request body larger than 2 MB.

disputes get​

Get dispute

kobana dunning disputes get [ID] [OPTIONS]

GET /v1/disputes/{id}

Returns a dispute by ID, with the full charge, customer and assignee.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
200Dispute found.
404Resource not found or outside your organization.
413Request body larger than 2 MB.

disputes update​

Run dispute action

kobana dunning disputes update [ID] [OPTIONS]

PATCH /v1/disputes/{id}

Runs a workflow action on the dispute: start_review, resolve or cancel. Invalid transitions (e.g., start_review when the status is not open) return 409.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Request body

The body is not a plain object (or has variants). See kobana schema dunning.disputes.update.

Responses

HTTPDescription
200Dispute updated by the action.
400Invalid request (validation error).
404Resource not found or outside your organization.
409Conflict with the current resource state (or reused idempotency key).
413Request body larger than 2 MB.