> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# PaymentDebtOriginationJob

> The schema definition for the PaymentDebtOriginationJob resource.

## Primary key

[Navigate to header](#param-commercial-activity)

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the payment debt origination job.

## Specific attributes

[Navigate to header](#param-commercial-activity)

actor

uuid

public

The user who confirmed the job; null for the system.

[Navigate to header](#param-commercial-activity)

actor\_label

varchar

public

required

The name of the user who confirmed the job, or «Sistema».

**Rules**: Max length: 255 characters

[Navigate to header](#param-commercial-activity)

amount

numeric

default:"0"

public

required

The sum of the amounts of the frozen selection.

**Rules**: Precision: 18, Scale: 2

[Navigate to header](#param-commercial-activity)

batch\_count

integer

default:"0"

public

required

The batches of 1 000 items of the frozen selection.

[Navigate to header](#param-commercial-activity)

batches\_done

integer

default:"0"

public

required

The batches applied (discard, export) or published (retry).

[Navigate to header](#param-commercial-activity)

blocked

integer

default:"0"

public

required

Items the job could not act on: a row still in the queue, or a precheck block.

[Navigate to header](#param-commercial-activity)

confirmed\_at

timestamp

public

required

When the operator confirmed the job: the instant the selection was frozen.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

correlation\_id

uuid

public

required

The correlation ID of the payment debt origination job.

[Navigate to header](#param-commercial-activity)

deliverable\_path

text

public

The object path of the export file in the exports bucket.

[Navigate to header](#param-commercial-activity)

downloads

jsonb

public

required

Every download of the export file, append-only: an array of { at, by }.

[Navigate to header](#param-commercial-activity)

expires\_at

timestamp

public

Until when the export file can be downloaded (30 days after it was written).

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

failure\_reason

varchar

public

Why the job failed: a step ran out of deliveries, or the job stalled.

**Rules**: Max length: 80 characters

[Navigate to header](#param-commercial-activity)

filter

jsonb

public

The filter the operator confirmed; null for an explicit selection.

[Navigate to header](#param-commercial-activity)

finished\_at

timestamp

public

When the job completed, failed or was cancelled.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

group\_id

uuid

public

required

Shared by every action the job records: one line of the activity.

[Navigate to header](#param-commercial-activity)

item\_outcomes

text

public

required

One character per frozen item, aligned with positions: the outcome a retry recorded (p processed, s skipped, b blocked), or . while none; each item is counted once.

[Navigate to header](#param-commercial-activity)

kind

varchar

public

required

What the job does: discard, export, replace, restore, retry, revalidate or submit (a send of the valid rows of a request in review).

**Rules**: Possible values: discard, export, replace, restore, retry, revalidate, submit. Max length: 10 characters

[Navigate to header](#param-commercial-activity)

positions

PgArray

public

required

The frozen selection: the item positions, ascending.

[Navigate to header](#param-commercial-activity)

processed

integer

default:"0"

public

required

Items the job acted on.

[Navigate to header](#param-commercial-activity)

progressed\_at

timestamp

public

The last real progress of the job (a recorded outcome or an applied batch): the stalled-job reconcile fails a job by its age.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

reason

text

public

The reason the operator gave; required to discard or retry.

[Navigate to header](#param-commercial-activity)

skipped

integer

default:"0"

public

required

Items that changed after the confirmation, or break the upload rules.

[Navigate to header](#param-commercial-activity)

started\_at

timestamp

public

When the job started running.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

status

varchar

public

required

The state of the job: queued, running, completed, failed or cancelled.

**Rules**: Possible values: cancelled, completed, failed, queued, running. Max length: 20 characters

[Navigate to header](#param-commercial-activity)

submission

integer

public

The send number of a submit job within its request (1, 2, …); null for every other kind.

[Navigate to header](#param-commercial-activity)

total

integer

default:"0"

public

required

Items in the frozen selection.

[Navigate to header](#param-commercial-activity)

versions

PgArray

public

required

The version of each frozen item at the confirmation, aligned with positions.

## Foreign keys

[Navigate to header](#param-commercial-activity)

payment\_debt\_origination

uuid

public

required

The request whose items the job acts on.

## Tracking attributes

[Navigate to header](#param-commercial-activity)

created\_at

timestamp

public

required

Timestamp when the record was created.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

deleted\_at

timestamp

public

Timestamp when the record was soft-deleted, when applicable.

**Rules**: Precision: 6, with timezone

[Navigate to header](#param-commercial-activity)

is\_actived

boolean

default:"true"

public

required

Indicates whether the record is currently active.

[Navigate to header](#param-commercial-activity)

is\_deleted

boolean

default:"false"

public

required

Indicates whether the record has been soft-deleted.

[Navigate to header](#param-commercial-activity)

updated\_at

timestamp

public

Timestamp when the record was last updated.

**Rules**: Precision: 6, with timezone


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.