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

# PaymentLink

> The schema definition for the PaymentLink resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the payment link.

## Specific attributes

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

amount

numeric

public

required

The amount of the payment link.

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

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

canceled\_at

timestamp

public

Timestamp when the payment link was canceled.

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

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

expires\_at

timestamp

public

Timestamp when the payment link expires.

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

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

external\_id

varchar

public

required

The external ID of the payment link.

**Rules**: Max length: 250 characters

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

status

varchar

default:"active"

public

required

The status of the payment link.

**Rules**: Possible values: active, canceled, expired. Max length: 30 characters

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

url

text

public

required

The URL of the payment link.

## Foreign keys

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

payment\_debt\_collect

uuid

public

required

Reference to the Payment Debt Collect this payment link belongs to. [Ref: Payment Debt Collect Schema](https://docs.bbrands.io/schemas/payment/payment-debt-collect.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.