@salesforce/b2c-tooling-sdk / clients / MetricsClientConfig
Interface: MetricsClientConfig
Defined in: packages/b2c-tooling-sdk/src/clients/metrics.ts:95
Configuration for creating a Metrics API client.
Properties
middlewareRegistry?
optionalmiddlewareRegistry:MiddlewareRegistry
Defined in: packages/b2c-tooling-sdk/src/clients/metrics.ts:120
Middleware registry to use for this client. If not specified, uses the global middleware registry.
scopes?
optionalscopes:string[]
Defined in: packages/b2c-tooling-sdk/src/clients/metrics.ts:114
Optional scope override. If not provided, defaults to the domain scope (sfcc.metrics) plus the tenant-specific scope (SALESFORCE_COMMERCE_API:{tenant}).
shortCode
shortCode:
string
Defined in: packages/b2c-tooling-sdk/src/clients/metrics.ts:101
The short code for the SCAPI instance. This is typically a 4-8 character alphanumeric code.
Example
"kv7kzm78"tenantId
tenantId:
string
Defined in: packages/b2c-tooling-sdk/src/clients/metrics.ts:108
The tenant ID (with or without f_ecom_ prefix). Used to build the organizationId path parameter and tenant-specific OAuth scope.
Example
"zzxy_prd" or "f_ecom_zzxy_prd"