Skip to main content

kobana dunning notifications

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

CommandHTTPDescription
notifications listGET /v1/notificationsList notifications
notifications createPOST /v1/notificationsCreate notification
notifications getGET /v1/notifications/{id}Get notification
notifications updatePUT /v1/notifications/{id}Update notification
notifications deleteDELETE /v1/notifications/{id}Delete notification
notifications resendPOST /v1/notifications/{id}/resendResend notification

notifications list​

List notifications

kobana dunning notifications list [OPTIONS]

GET /v1/notifications

Lists the organization’s notifications with pagination and filters. Sortable via sort_by (created_at | updated_at | sent_at | delivered_at | channel | status).

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.
channelstringnoFilter by channel; accepts a single value or a comma-separated list (email | sms | whatsapp | voice | manual).
statusstringnoFilter by status; accepts a single value or a comma-separated list (pending | queued | sent | delivered | read | failed | bounced).
person_idstringnoFilter by customer (UUID).
charge_idstringnoFilter by charge (UUID).
includestringnoRelations to include, comma-separated (person, charge, step; template is an alias for step).

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

notifications create​

Create notification

kobana dunning notifications create [OPTIONS]

POST /v1/notifications

Creates a manual notification for a customer, optionally linked to a charge and a rule step. The recipient is validated according to the channel.

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)yesRecipient customer.
channelstringyesChannel (email | sms | whatsapp | voice | manual). Values: email, sms, whatsapp, voice, manual.
recipientstringyesRecipient; validated according to the channel (email for email, phone for sms/whatsapp/voice).
bodystringyesMessage body.
charge_idstring (uuid)noCharge related to the notification.
collection_rule_step_idstring (uuid)noCollection rule step that originated the notification.
subjectstringnoSubject (for channels that support it, e.g., email).
external_idstringnoIdentifier in YOUR system or in the delivery provider.
custom_dataobjectnoAPI-consumer custom metadata. Limits: 64 KB serialized and 16 nesting levels.
tagsarray<string>noFree-form tags.

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

Responses

HTTPDescription
201Notification created with pending status.
400Invalid request (validation error).
404Resource not found or outside your organization.
413Request body larger than 2 MB.

notifications get​

Get notification

kobana dunning notifications get [ID] [OPTIONS]

GET /v1/notifications/{id}

Returns a notification by ID; use include to attach relations.

Path arguments: id

Query parameters

NameTypeRequiredDescription
includestringnoRelations to include, comma-separated (person, charge, step; template is an alias for step).

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

notifications update​

Update notification

kobana dunning notifications update [ID] [OPTIONS]

PUT /v1/notifications/{id}

Updates a notification’s status, delivery timestamps and metadata (partial). Useful for integrations confirming send/delivery.

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
statusstringnoNew status; fills the matching timestamp (sentAt/deliveredAt/readAt/failedAt) when not provided. Values: pending, queued, sent, delivered, read, failed, bounced.
sent_atstringnoISO 8601 timestamp or YYYY-MM-DD date; null clears the field.
delivered_atstringnoISO 8601 timestamp or YYYY-MM-DD date; null clears the field.
read_atstringnoISO 8601 timestamp or YYYY-MM-DD date; null clears the field.
failed_atstringnoISO 8601 timestamp or YYYY-MM-DD date; null clears the field.
failure_reasonstringnoFailure reason reported by the provider.
external_idstringnoIdentifier in YOUR system or in the delivery provider.
custom_dataobjectnoAPI-consumer custom metadata. Limits: 64 KB serialized and 16 nesting levels.
tagsarray<string>noFree-form tags.
costnumbernoSend cost (number, minimum 0).

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

Responses

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

notifications delete​

Delete notification

kobana dunning notifications delete [ID] [OPTIONS]

DELETE /v1/notifications/{id}

PERMANENTLY deletes a notification (hard delete — the model has no soft delete). Only a notification not yet delivered: a delivered one is probative evidence and responds 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.

Responses

HTTPDescription
204Notification deleted.
404Resource not found or outside your organization.
409The notification was already delivered — it is probative evidence and cannot be deleted.
413Request body larger than 2 MB.

notifications resend​

Resend notification

kobana dunning notifications resend [ID] [OPTIONS]

POST /v1/notifications/{id}/resend

Creates a NEW pending notification copied from the original (the new record’s metadata references the original via resend_of). Only allowed when the original is failed or bounced; otherwise returns 400. Supports Idempotency-Key.

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
201New notification created from the original.
400Invalid request (validation error).
404Resource not found or outside your organization.
413Request body larger than 2 MB.