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

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

# Function: mergeScapiSchemas()

> **mergeScapiSchemas**(`bundled`, `live`, `local`): [`ScapiSchemaDocument`](../interfaces/ScapiSchemaDocument.md)[]

Defined in: [packages/b2c-tooling-sdk/src/scapi/live.ts:110](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1cc5681b8c76554833dc7a40097f33641882a372/packages/b2c-tooling-sdk/src/scapi/live.ts#L110)

Bundled contracts, replaced by live contracts, replaced by local contracts with the same id.

## Parameters

### bundled

readonly [`ScapiSchemaDocument`](../interfaces/ScapiSchemaDocument.md)[]

### live

readonly [`ScapiSchemaDocument`](../interfaces/ScapiSchemaDocument.md)[]

### local

readonly [`ScapiSchemaDocument`](../interfaces/ScapiSchemaDocument.md)[] = `[]`

## Returns

[`ScapiSchemaDocument`](../interfaces/ScapiSchemaDocument.md)[]
