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

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

# Function: mrtScapiUnavailableMessage()

> **mrtScapiUnavailableMessage**(): `string`

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/mrt-backend.ts:64](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/operations/mrt/mrt-backend.ts#L64)

Error message for when explicit `--mrt-backend scapi` is requested but the
SCAPI MRT prerequisites are missing. Names both reasons the connection can
be unavailable — missing coordinates OR an auth flow SCAPI Admin does not
accept. Unlike the OCAPI scapiUnavailableMessage, MRT resolves auth
through the shared `getOAuthStrategy()` path, so a stored `b2c auth client`
session counts as a supported flow here.

## Returns

`string`
