Authorization Scopes Catalog

Scopes control which B2C Commerce endpoints a token can access, and define the permissions and actions that a token can perform, ensuring that only authorized operations are allowed.

Scopes are formatted as sfcc.{{family}}[.rw]. The optional .rw suffix indicates read and write permissions.

To assign scopes to tokens and configure them based on your storefront needs:

  1. Understand the capabilities of your storefront and what shoppers can do.
  2. Determine the API families with which your storefront needs to interact and the specific actions needed: Shopper APIs, SCAPI Admin APIs, and SLAS Admin APIs.
  3. Identify the required scopes using the following tables.
    • For security reasons, limit the scopes to the minimum that you need.
    • Optimize the size of your JWT. Scopes make up a large portion of the SLAS JWT, and in many cases, this SLAS token is stored as a cookie and is passed back-and-forth in both requests and responses.
      • For each selected scope, configure the specific permissions to avoid redundancy. If you include the -rw version for a scope, avoid using the read-only counterpart, as it is redundant, and can make the token unnecessarily bulky.
      • Make sure to only include scopes for the applicable API family. For example, do not include SCAPI Admin API scopes in a SLAS JWT.
  4. Configure your token with the correct scopes:
  5. Save and test. Save the token configuration and test it to ensure that it works as expected. Use the token in API calls to verify that it has the correct permissions and that it can perform the required actions.

By default, the following SLAS scopes are assigned:

These scopes are only useful inside of a SLAS JWT.

To configure tokens with the correct scopes so that they can be passed to the Shopper APIs, see Authorization for Shopper APIs.

ScopeAPI FamilyAPI NamePurpose
sfcc.shopper-baskets-ordersCheckoutShopper BasketsRead baskets and orders from a shopper perspective.
sfcc.shopper-baskets-orders.rwCheckoutShopper BasketsThe client app can create, read, update, and delete an order, including information such as shipping or tax information.
sfcc.shopper-categoriesProductShopper ProductsRead categories to be displayed on a storefront for shoppers.
sfcc.shopper-context.rwShopperShopper ContextCreate, read, update, and delete Shopper Context.
sfcc.shopper-custom-objects.{object-type}Custom ObjectShopper Custom ObjectsRead custom object information. Access can be restricted at the {object-type} level. This extends the standard objects provided by B2C Commerce.
sfcc.shopper-customers.loginCustomerShopper CustomersLog in a shopper.
sfcc.shopper-customers.registerCustomerShopper CustomersRegister a shopper.
sfcc.shopper-experienceExperienceShopper ExperienceRead pages created in Page Designer.
sfcc.shopper-gift-certificatesPricingShopper Gift CertificatesRead gift certificates from a shopper perspective.
sfcc.shopper-myaccountCustomerShopper CustomersRead all data in a shopper account.
sfcc.shopper-myaccount.addressesCustomerShopper CustomersRead shopper addresses.
sfcc.shopper-myaccount.addresses.rwCustomerShopper CustomersCreate, read, update, and delete addresses in a shopper account.
sfcc.shopper-myaccount.basketsCustomerShopper CustomersRead a shopper’s baskets.
sfcc.shopper-myaccount.ordersCustomerShopper CustomersRead a shopper’s orders.
sfcc.shopper-myaccount.paymentinstrumentsCustomerShopper CustomersRead a shopper’s payment instruments.
sfcc.shopper-myaccount.paymentinstruments.rwCustomerShopper CustomersCreate, read, update, and delete payment instruments in a shopper account.
sfcc.shopper-myaccount.productlistsCustomerShopper CustomersRead wishlists associated with a shopper account.
sfcc.shopper-myaccount.productlists.rwCustomerShopper CustomersCreate, read, update, and delete wishlists associated with a shopper account.
sfcc.shopper-myaccount.rwCustomerShopper CustomersCreate, read, update, and delete all data in a shopper account.
sfcc.shopper-product-searchSearchShopper SearchEnable search for products and product suggestions.
sfcc.shopper-productlistsCustomerShopper CustomersRead public product lists or wishlists.
sfcc.shopper-productsProductShopper ProductsRead products merchandized and available to be sold on a particular site.
sfcc.shopper-promotionsPricingShopper PromotionsRead promotions from a shopper perspective.
sfcc.shopper-seoSiteShopper SEORead SEO-related information.
sfcc.shopper-storesStoreShopper StoresSearch for and read details on stores.

These scopes are only useful inside of an Account Manager JWT.

To configure tokens with the correct scopes so that they can be passed to the SCAPI Admin APIs, see Authorization for Admin APIs.

ScopeAPI FamilyAPI NamePurpose
sfcc.catalogsProductCatalogsRead catalog information.
sfcc.catalogs.rwProductCatalogsCreate, read, update, and delete catalogs.
sfcc.cdn-zonesCDN ZonesCDN ZonesRead information related to CDN Zones.
sfcc.cdn-zones.rwCDN ZonesCDN ZonesCreate, read, update, and delete information related to CDN Zones.
sfcc.customerlistsCustomerCustomersRead customer list associated with a site.
sfcc.customerlists.rwCustomerCustomersCreate, read, update, and delete customer lists associated with a site.
sfcc.gift-certificatesPricingGift CertificatesRead gift certificates.
sfcc.gift-certificates.rwPricingGift CertificatesCreate, read, update, and delete gift certificates.
sfcc.inventory.availabilityInventoryInventory AvailabilityRead availability. Account Manager Authentication.
sfcc.inventory.availability.rwInventoryInventory AvailabilitCreate, read, update, and delete availability. Account Manager Authentication.
sfcc.inventory.impex-graphsInventoryInventory ImpexRead location graph exports. Account Manager Authentication.
sfcc.inventory.impex-inventoryInventoryInventory ImpexRead inventory exports. Account Manager Authentication.
sfcc.inventory.impex-inventory.rwInventoryInventory ImpexRead inventory imports. Account Manager Authentication.
sfcc.inventory.reservationsInventoryInventory ReservationRead reservation information. Account Manager Authentication.
sfcc.inventory.reservations.rwInventoryInventory ReservationCreate, read, update, and delete reservations. Account Manager Authentication.
sfcc.ordersCheckoutOrdersList and view orders from a management perspective.
sfcc.orders.rwCheckoutOrdersCreate, read, update, and delete an existing order, for example, with a status update.
sfcc.preferencesConfigurationPreferencesRetrieve site and environment-specific settings.
sfcc.cors-preferences.rwConfigurationCORSCreate, read, update, and delete Cross-Origin Resource Sharing (CORS) preferences.
sfcc.productsProductProductsRead products assigned to a catalog.
sfcc.products.rwProductProductsCreate, read, update, and delete products from a catalog.
sfcc.promotionsPricingPromotionsRead assignments.
sfcc.promotionsPricingPromotionsRead campaigns.
sfcc.promotionsPricingPromotionsRead coupons.
sfcc.promotionsPricingPromotionsRead promotions.
sfcc.promotions.rwPricingPromotionsCreate, read, update, or delete assignments.
sfcc.promotions.rwPricingPromotionsCreate, read, update, or delete campaigns.
sfcc.promotions.rwPricingPromotionsCreate, read, update, or delete coupons.
sfcc.promotions.rwPricingPromotionsCreate, read, update, or delete promotions.
sfcc.source-codesPricingSource Code GroupsRead source codes.
sfcc.source-codes.rwPricingSource Code GroupsCreate, read, update, or delete source codes.
ScopeAPI FamilyAPI NamePurpose
sfcc.pwdless_loginShopperShopper LoginAllow users with an eCom profile to request a token by email that can be used to log in without a password even when their identity provider (Salesforce) is unavailable.
sfcc.session_bridgeShopperShopper LoginAllow session bridging.
sfcc.ta_ext_on_behalf_ofShopperShopper LoginCall trusted agent endpoints.
sfcc.ts_ext_on_behalf_ofShopperShopper LoginCall trusted system endpoints.

Here's an example set of scopes required for a shopping application (like a PWA Kit storefront):