---
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:200](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/clients/scapi-backend-utils.ts#L200)

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`
