---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [scapi](../index.md) / ScapiLiveSchemaSource

# Interface: ScapiLiveSchemaSource

Defined in: [packages/b2c-tooling-sdk/src/scapi/documents.ts:31](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/scapi/documents.ts#L31)

A tenant whose live contracts can be fetched. `tenant` may be a function, so
missing configuration or credentials fall back to bundled contracts like any
other live-loading failure.

## Properties

### cache

> **cache**: [`ScapiLiveSchemaCache`](../classes/ScapiLiveSchemaCache.md)

Defined in: [packages/b2c-tooling-sdk/src/scapi/documents.ts:34](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/scapi/documents.ts#L34)

Shared cache; reuse one per process so contracts persist across calls.

***

### tenant

> **tenant**: [`ScapiLiveSchemaTenant`](ScapiLiveSchemaTenant.md) \| () => [`ScapiLiveSchemaTenant`](ScapiLiveSchemaTenant.md) \| `Promise`\<[`ScapiLiveSchemaTenant`](ScapiLiveSchemaTenant.md)\>

Defined in: [packages/b2c-tooling-sdk/src/scapi/documents.ts:32](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/scapi/documents.ts#L32)
