> ## 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.

# PaymentDebtOrigination

> A debt origination request: one per user action that creates debts (a workbook upload, an issued tax document or a provider migration apply batch).

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the debt origination.

## Specific attributes

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

action\_required\_count

integer

default:"0"

public

required

Items of the request that require an operator action; maintained by the origination function.

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

action\_required

boolean

public

Generated: the request is in review or has items to resolve («Requieren acción» of Solicitudes, the `action_required` count of the summary). Read-only.

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

channel

varchar

public

required

How the debts are created: `workbook`, `tax_document` or `migration`.

**Rules**: Possible values: migration, tax\_document, workbook. Max length: 20 characters

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

correlation\_id

uuid

public

required

The correlation ID of the debt origination.

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

created\_count

integer

default:"0"

public

required

Items of the request whose debt exists.

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

item\_count

integer

default:"0"

public

required

Items of the request.

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

requested\_by

uuid

public

The user who started the request; null for the system.

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

search\_text

text

public

required

What Solicitudes searches («Buscar por nombre, archivo o lote»): the upload's file name, the batch id and the tax document's folio, lower case and without accents. Kept by a trigger; a write is ignored.

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

status

varchar

public

required

Lifecycle state of the request, as the spec of payment/debt-origination describes.

**Rules**: Possible values: canceled, completed, completed\_with\_issues, in\_review, processing, psp, received, rejected, validating. Max length: 30 characters

## Foreign keys

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

business\_unit

uuid

public

required

Reference to the Business Unit this debt origination belongs to. [Ref: Business Unit Schema](https://docs.bbrands.io/schemas/product/business-unit.md)

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

file\_upload

uuid

public

Optional reference to the File Upload associated with the debt origination. [Ref: File Upload Schema](https://docs.bbrands.io/schemas/file/file-upload.md)

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

service\_provider\_sync\_batch

uuid

public

Optional reference to the Service Provider Sync Batch associated with the debt origination. [Ref: Service Provider Sync Batch Schema](https://docs.bbrands.io/schemas/integration/service-provider-sync-batch.md)

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

tax\_document

uuid

public

The issued document of a scheduled debt (`tax_document` channel). [Ref: Tributary Document Schema](https://docs.bbrands.io/schemas/payment/tributary-document.md)

## 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.