Skip to main content

kobana dunning negativations

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

CommandHTTPDescription
negativations listGET /v1/negativationsList bureau reports
negativations createPOST /v1/negativationsCreate bureau report
negativations getGET /v1/negativations/{id}Get bureau report
negativations updatePUT /v1/negativations/{id}Update bureau report
negativations removePOST /v1/negativations/{id}/removeRequest bureau report removal

negativations list​

List bureau reports

kobana dunning negativations list [OPTIONS]

GET /v1/negativations

Lists the organization’s bureau reports with pagination and filters. Use include=person,charge to embed customer and charge summaries.

Query parameters

NameTypeRequiredDescription
pageintegernoPage number (starts at 1).
per_pageintegernoItems per page (max 100).
sort_bystringnoSort field (created_at | updated_at | amount | registered_at). Values: createdAt, updatedAt, amount, registeredAt.
sort_orderstringnoSort direction (asc | desc). Values: asc, desc.
statusstringnoFilter by status (pending | active | removed | failed). Values: pending, active, removed, failed.
bureaustringnoFilter by credit bureau (serasa | spc | boa_vista). Values: serasa, spc, boa_vista.
person_idstringnoFilter by customer (UUID).
charge_idstringnoFilter by charge (UUID).
includestringnoComma-separated relations to embed (person, 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 bureau report list.
404Resource not found or outside your organization.
413Request body larger than 2 MB.

negativations create​

Create bureau report

kobana dunning negativations create [OPTIONS]

POST /v1/negativations

Creates a bureau report for a charge. The record starts as pending and is ONLY submitted to the bureau after human review and approval (legal workflow; negativation.review_required event). Returns 409 if a pending/active report already exists for the same charge and bureau.

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)yesReported customer (UUID).
charge_idstring (uuid)yesReported charge (UUID).
bureaustringyesCredit bureau (serasa | spc | boa_vista). Values: serasa, spc, boa_vista.
amountnumberyesAmount to report (positive decimal number).
external_idstringnoIdentifier in YOUR system or the bureau protocol number.
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.negativations.create.

Responses

HTTPDescription
201Bureau report created (awaiting human review).
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.

negativations get​

Get bureau report

kobana dunning negativations get [ID] [OPTIONS]

GET /v1/negativations/{id}

Returns a bureau report by ID, with customer 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
200Bureau report found.
404Resource not found or outside your organization.
413Request body larger than 2 MB.

negativations update​

Update bureau report

kobana dunning negativations update [ID] [OPTIONS]

PUT /v1/negativations/{id}

Updates a bureau report (partial). This is the approval step of the legal workflow: it requires the review (approve) permission and is where status moves from pending to active after human review.

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
statusstringnoStatus (pending = awaiting mandatory human review, active = live at the bureau, removed = withdrawn, failed = failed). Values: pending, active, removed, failed.
external_idstringnoIdentifier in YOUR system or the bureau protocol number.
registered_atstring (date-time)noDate the report went live at the bureau (ISO 8601).
removed_atstring (date-time)noDate the report was removed from the bureau (ISO 8601).
removal_reasonstringnoReason for removing the report.
response_dataobjectnoRaw bureau response (integration payload).
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.
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.negativations.update.

Responses

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

negativations remove​

Request bureau report removal

kobana dunning negativations remove [ID] [OPTIONS]

POST /v1/negativations/{id}/remove

Requests removal of a report from the bureau. Only allowed for active records; status becomes removed and the reason (if sent) is stored in removal_reason.

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
removal_reasonstringnoReason for removing the report.

More fields and nested objects: kobana schema dunning.negativations.remove.

Responses

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