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

# ServiceProviderResource

> The schema definition for the ServiceProviderResource resource.

## Primary key

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

document\_id

uuid

default:"Random UUID"

public

required

Unique identifier of the service provider resource.

## Specific attributes

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

external\_id

varchar

public

required

The external ID of the service provider resource.

**Rules**: Max length: 250 characters

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

first\_ingested\_at

timestamp

public

required

Timestamp when the service provider resource was first ingested.

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

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

last\_changed\_at

timestamp

public

required

Timestamp when the service provider resource was last changed.

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

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

last\_observed\_at

timestamp

public

required

Timestamp when the service provider resource was last observed.

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

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

parent\_external\_id

varchar

public

The parent external ID of the service provider resource.

**Rules**: Max length: 250 characters

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

parent\_kind

varchar

public

The parent kind of the service provider resource.

**Rules**: Max length: 50 characters

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

party\_tax\_identifier

varchar

public

The party tax identifier of the service provider resource.

**Rules**: Max length: 50 characters

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

projection\_sha256

varchar

public

required

The projection sha256 of the service provider resource.

**Rules**: Max length: 64 characters

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

provider\_amount

numeric

public

The provider amount of the service provider resource.

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

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

provider\_currency

varchar

public

The provider currency of the service provider resource.

**Rules**: Max length: 3 characters

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

provider\_due\_at

timestamp

public

Timestamp when the service provider resource was provider due.

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

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

provider\_issued\_at

date

public

Issue date of the invoice's tax document as the provider gives it (read by the provider adapter, kept outside the projection hash). Apply uses it as the issued date of the tax document it creates.

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

provider\_occurred\_at

timestamp

public

Timestamp when the service provider resource was provider occurred.

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

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

provider\_paid\_at

timestamp

public

Timestamp when the service provider resource was provider paid.

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

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

provider\_reference

varchar

public

The provider reference of the service provider resource.

**Rules**: Max length: 250 characters

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

provider\_status

varchar

public

The provider status of the service provider resource.

**Rules**: Max length: 50 characters

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

provider\_transaction\_external\_id

varchar

public

The provider transaction external ID of the service provider resource.

**Rules**: Max length: 250 characters

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

raw

jsonb

public

The raw of the service provider resource.

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

raw\_policy\_version

varchar

public

required

The raw policy version of the service provider resource.

**Rules**: Max length: 20 characters

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

raw\_purged\_at

timestamp

public

Timestamp when the service provider resource was raw purged.

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

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

raw\_sha256

varchar

public

required

The raw sha256 of the service provider resource.

**Rules**: Max length: 64 characters

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

resource\_kind

varchar

public

required

The resource kind of the service provider resource.

**Rules**: Max length: 50 characters

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

source\_query

varchar

public

The source query of the service provider resource.

**Rules**: Max length: 250 characters

## Foreign keys

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

service\_provider\_connection

uuid

public

required

Reference to the Service Provider Connection this service provider resource belongs to. [Ref: Service Provider Connection Schema](https://docs.bbrands.io/schemas/integration/service-provider-connection.md)

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

service\_provider\_resource\_type

uuid

public

required

Reference to the Service Provider Resource Type this service provider resource belongs to. [Ref: Service Provider Resource Type Schema](https://docs.bbrands.io/schemas/integration/service-provider-resource-type.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.