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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [clients](../index.md) / scapiUnavailableMessage

# Function: scapiUnavailableMessage()

> **scapiUnavailableMessage**(`domainName`): `string`

Defined in: [packages/b2c-tooling-sdk/src/clients/scapi-backend-utils.ts:227](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1cc5681b8c76554833dc7a40097f33641882a372/packages/b2c-tooling-sdk/src/clients/scapi-backend-utils.ts#L227)

Message for when explicit SCAPI is requested but the instance can't reach it.

Names both reasons the SCAPI client config can be unavailable — missing
coordinates OR an auth flow that can't request scopes — because a user who
hits this in explicit `--api-backend scapi` mode often *does* have shortCode
and tenantId configured; the real blocker can be browser user auth, which
SCAPI Admin APIs do not currently support, or a fixed-scope stored token.
The old message only mentioned missing credentials, which was misleading.

## Parameters

### domainName

`string`

## Returns

`string`
