APIs and SDKs

Sanity Connect for SFCC configuration reference

Reference for all configuration options in Sanity Connect for Salesforce Commerce Cloud, including preferences, mappings, and jobs.

This page documents all configuration options for Sanity Connect for Salesforce Commerce Cloud. For installation and setup instructions, see the main guide.

Site preferences

After importing the cartridge metadata, a Sanity custom preference group is available under Merchant Tools → Site Preferences → Custom Preferences. Each preference has a built-in description in Business Manager.

Preference IDTypeNotes
isSanityIntegrationEnabledBooleanMaster on/off switch for the integration
sanityApiHostUrlStringDefault: api.sanity.io
sanityBearerTokenPasswordAPI token with write access; masked in Business Manager
sanityProjectIdStringFound in sanity.io/manage
sanityDatasetStringe.g., staging, development, production
sanityVersionStringe.g., v2025-11-28
sanityApiQueryParamsStringe.g., returnIds=true&autoGenerateArrayKeys=true&visibility=deferred&tag=sanity.sfcc
isExternalImageBooleanEnable if your catalog uses externally hosted product images
sfccToSanityCategoryAttributeMappingsJSONSee Category attribute mappings below
sfccToSanityProductAttributeMappingsJSONSee Product attribute mappings below

Attribute mappings

The two mapping preferences (sfccToSanityCategoryAttributeMappings and sfccToSanityProductAttributeMappings) are JSON configuration objects that define which SFCC attributes are pushed to Sanity and what they are named in Sanity documents.

They are designed to be extended without code changes – to add a custom attribute, add a new key to the JSON and redeploy.

Each attribute entry follows this shape:

"<sfccAttributeName>": {
  "sanityName": "<sanityFieldName>",
  "localized": true | false,
  "dataType": "String" | "Boolean" | "Date" | "Image" | "HTML" | "Array" | "enum"
}

Category attribute mappings

Default value for sfccToSanityCategoryAttributeMappings:

Product attribute mappings

Default value for sfccToSanityProductAttributeMappings:

Job step parameters

Both sync jobs (FULL_Sanity_Export_Categories_and_Products and DELTA_Sanity_Export_Categories_and_Products) use the same step-level parameters. Each locale your storefront supports requires its own job step.

Category sync step

ParameterDescriptionValues
isEnabledEnable or disable this step for the given localetrue / false
localeLocale to syncValid BM locale string, e.g. en_US, fr, de
sendLocalizedAttributesOnlySend only localized attributes when enabledtrue / false

Product sync step

ParameterDescriptionValues
isEnabledEnable or disable this step for the given localetrue / false
localeLocale to syncValid BM locale string, e.g. en_US, fr, de
sendLocalizedAttributesOnlySend only localized attributes when enabledtrue / false
ingestionStrategyFull catalog sync or delta-onlyFULL / DELTA
includeMasterProductsOutOfStockInclude out-of-stock master productstrue / false

Further reading

Was this page helpful?