---
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:104](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/bceb8da43dd8bc63d57932bbd905d36a1b40c949/packages/b2c-tooling-sdk/src/scapi/live.ts#L104)

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)[]
