Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / instance / InstanceConfig

Interface: InstanceConfig

Defined in: packages/b2c-tooling-sdk/src/instance/index.ts:86

Instance configuration (hostname, code version, etc.)

Properties

apiBackend?

optional apiBackend: "ocapi" | "scapi" | "auto"

Defined in: packages/b2c-tooling-sdk/src/instance/index.ts:110

Backend preference for operations that support both OCAPI (legacy) and SCAPI. Defaults to 'auto' when unset. Lets the instance answer "should this operation prefer SCAPI?" without the caller re-reading config.


codeVersion?

optional codeVersion: string

Defined in: packages/b2c-tooling-sdk/src/instance/index.ts:90

Code version for deployments


hostname

hostname: string

Defined in: packages/b2c-tooling-sdk/src/instance/index.ts:88

B2C instance hostname


shortCode?

optional shortCode: string

Defined in: packages/b2c-tooling-sdk/src/instance/index.ts:99

SCAPI short code (e.g. kv7kzm78). Required, together with tenantId, to reach the Salesforce Commerce API. Populated from resolved configuration.


tenantId?

optional tenantId: string

Defined in: packages/b2c-tooling-sdk/src/instance/index.ts:104

SCAPI tenant/organization ID (e.g. zzxy_prd). Required, together with shortCode, to reach the Salesforce Commerce API.


tlsOptions?

optional tlsOptions: TlsOptions

Defined in: packages/b2c-tooling-sdk/src/instance/index.ts:94

TLS options for mTLS/self-signed certificate support


webdavHostname?

optional webdavHostname: string

Defined in: packages/b2c-tooling-sdk/src/instance/index.ts:92

Separate hostname for WebDAV (if different from main hostname)

Released under the Apache-2.0 License.