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

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/mrt](../index.md) / createStorefrontScapi

# Function: createStorefrontScapi()

> **createStorefrontScapi**(`conn`, `params`): `Promise`\<\{ `project`: [`MrtProjectView`](../interfaces/MrtProjectView.md); `raw`: `unknown`; \}\>

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/project.ts:648](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/8fc17d8708d025c83fb0c44ca73198a200605153/packages/b2c-tooling-sdk/src/operations/mrt/project.ts#L648)

Creates a storefront (MRT project) via the SCAPI MRT Storefronts API. Returns
202 Accepted with the storefront in the `in_progress` setup status; poll the
storefront by ID to track provisioning.

## Parameters

### conn

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

### params

#### sites

`string`[]

#### storefrontName

`string`

#### type

`"storefront_next"`

## Returns

`Promise`\<\{ `project`: [`MrtProjectView`](../interfaces/MrtProjectView.md); `raw`: `unknown`; \}\>

## Throws

carrying the HTTP status on a non-2xx response.
