Skip to main content

kobana dunning interactions

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

CommandHTTPDescription
interactions listGET /v1/interactionsList interactions
interactions createPOST /v1/interactionsLog interaction
interactions getGET /v1/interactions/{id}Get interaction
interactions updatePUT /v1/interactions/{id}Update interaction
interactions deleteDELETE /v1/interactions/{id}Delete interaction

interactions list​

List interactions

kobana dunning interactions list [OPTIONS]

GET /v1/interactions

Lists the organization’s interactions with pagination and filters. Sortable via sort_by (contacted_at | interaction_type | created_at | updated_at; default contacted_at desc).

Query parameters

NameTypeRequiredDescription
pageintegernoPage number (starts at 1).
per_pageintegernoItems per page (max 100).
sort_bystringnoSort field (public snake_case name, e.g. due_date).
sort_orderstringnoSort direction (asc | desc). Values: asc, desc.
interaction_typestringnoFilter by type (call | email | whatsapp | meeting | note). Values: call, email, whatsapp, meeting, note.
directionstringnoFilter by direction (inbound | outbound). Values: inbound, outbound.
outcomestringnoFilter by outcome (promise_to_pay | negotiation | dispute | no_contact | callback_requested | payment_confirmed). Values: promise_to_pay, negotiation, dispute, no_contact, callback_requested, payment_confirmed.
person_idstringnoFilter by customer (UUID).
charge_idstringnoFilter by charge (UUID).
includestringnoRelations to include, comma-separated (person, user, charge).

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 interaction list.
404Resource not found or outside your organization.
413Request body larger than 2 MB.

interactions create​

Log interaction

kobana dunning interactions create [OPTIONS]

POST /v1/interactions

Logs an interaction with a customer, optionally linked to a charge. 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
person_idstring (uuid)yesCustomer of the interaction.
interaction_typestringyesType (call | email | whatsapp | meeting | note). Values: call, email, whatsapp, meeting, note.
directionstringyesDirection (inbound = customer reached out, outbound = we contacted the customer). Values: inbound, outbound.
charge_idstring (uuid)noCharge related to the interaction.
summarystringnoInteraction summary/notes.
outcomestringnoOutcome (promise_to_pay | negotiation | dispute | no_contact | callback_requested | payment_confirmed). Values: promise_to_pay, negotiation, dispute, no_contact, callback_requested, payment_confirmed, null.
promise_datestring (date-time)noPromised payment date.
promised_amountnumbernoPromised amount (positive number).
contacted_atstring (date-time)noContact time (ISO 8601; defaults to now).
duration_secondsintegernoContact duration in seconds.
external_idstringnoIdentifier in YOUR system (integration key).
custom_dataobjectnoAPI-consumer custom metadata. Limits: 64 KB serialized and 16 nesting levels.
custom_metadataobjectnoUser metadata (free-form JSON object, read-write). See custom_data for the legacy field on core resources.
tagsarray<string>noFree-form tags.

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

Responses

HTTPDescription
201Interaction logged (includes customer, user and charge summaries).
400Invalid request (validation error).
404Resource not found or outside your organization.
413Request body larger than 2 MB.

interactions get​

Get interaction

kobana dunning interactions get [ID] [OPTIONS]

GET /v1/interactions/{id}

Returns an interaction by ID, with customer, user and charge summaries.

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
200Interaction found.
404Resource not found or outside your organization.
413Request body larger than 2 MB.

interactions update​

Update interaction

kobana dunning interactions update [ID] [OPTIONS]

PUT /v1/interactions/{id}

Updates an interaction’s editable fields (partial).

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

NameTypeRequiredDescription
summarystringnoInteraction summary/notes.
notesstringnoAlias for summary (stored in the same field; when both are sent, notes wins).
outcomestringnoOutcome (promise_to_pay | negotiation | dispute | no_contact | callback_requested | payment_confirmed). Values: promise_to_pay, negotiation, dispute, no_contact, callback_requested, payment_confirmed, null.
promise_datestring (date-time)noPromised payment date.
promised_amountnumbernoPromised amount (positive number).
custom_dataobjectnoAPI-consumer custom metadata. Limits: 64 KB serialized and 16 nesting levels.
custom_data_modestringnoHow custom_data is applied on update: replace (default) overwrites the whole object; merge deep-merges the payload over the stored value — nested objects merge, scalars/arrays/null overwrite the key. Values: replace, merge.
custom_metadataobjectnoUser metadata (free-form JSON object, read-write). See custom_data for the legacy field on core resources.
custom_metadata_modestringnoHow the custom_metadata sent is reconciled with the stored value: replace (default) replaces the whole object; merge deep-merges — nested objects merge, scalars and arrays replace the key, and a key sent as null is stored as null (not removed). Update only. Values: replace, merge.
tagsarray<string>noFree-form tags.

More fields and nested objects: kobana schema dunning.interactions.update.

Responses

HTTPDescription
200Interaction updated.
400Invalid request (validation error).
404Resource not found or outside your organization.
413Request body larger than 2 MB.

interactions delete​

Delete interaction

kobana dunning interactions delete [ID] [OPTIONS]

DELETE /v1/interactions/{id}

Soft-deletes an interaction; the record remains for the audit trail.

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
204Interaction deleted.
404Resource not found or outside your organization.
413Request body larger than 2 MB.