Skip to content
Streamkap
Esc
↑↓navigate↵open⌘Jpreview
On this page

Salesforce B2C Commerce

Stream B2C Commerce orders, customers, products, prices, promotions, campaigns, stores and more into Streamkap with a read-only Account Manager API client.

The Salesforce B2C Commerce source (formerly Demandware, Commerce Cloud, SFCC) reads one B2C Commerce instance through the Salesforce Commerce API (SCAPI) Admin APIs, and, where you add a second API client, through the Open Commerce API (OCAPI). It offers 53 resources, 37 of them selected by default. Each resource you select becomes a topic named source_<id>.salesforce_commerce.<resource>. Every credential is yours, created in Account Manager, and read-only: Streamkap never asks for a write scope or a write permission, and never runs a job.

What Syncs

Resources are grouped as the form groups them. “Default” means selected on a new source. Site-scoped resources are read once per site, so they cost their requests once per site. Where a read is “hourly” or “daily”, that assumes the default 5-minute poll interval.

Orders

Orders are site-scoped. The eight child resources are cut from each order’s own payload, so in steady state they cost no request of their own; while a source catches up on a backfill, a child that is behind its order reads the orders again.

Resource What it holds Key (id) Default Needs
orders Every order: status, totals, customer and c_* custom attributes <site_id>|<orderNo> Yes Read every poll, by modification time
order_billing_addresses The billing address <site_id>|<orderNo> Yes From the order
order_product_items Line items <site_id>|<orderNo>|<itemId> Yes From the order
order_shipments Shipments <site_id>|<orderNo>|<shipmentId> Yes From the order
order_shipment_addresses Shipping addresses <site_id>|<orderNo>|<shipmentId> Yes From the order
order_shipping_items Shipping line items <site_id>|<orderNo>|<itemId> Yes From the order
order_payment_instruments Payment instruments (the payment card as JSON) <site_id>|<orderNo>|<paymentInstrumentId> Yes From the order
order_price_adjustments Price adjustments at order, product-item and shipping-item level (adjustment_level) The order, level, owner and adjustment Yes From the order
coupon_redemptions Coupons redeemed on the order <site_id>|<orderNo>|<coupon item> Yes From the order
order_notes The order’s notes <site_id>|<orderNo>|<note id> No OCAPI and a Business Manager user. One extra request per changed order.

Customers

Resource What it holds Key (id) Default Needs
customers Customers of each customer list <customer_list_id>|<customerNo> Yes A pass over the whole list each day, or a filtered read each poll. See How Each Kind Arrives.
customer_addresses Saved addresses <customer_list_id>|<customerNo>|<addressId> No One extra request per changed customer: each poll where customers are read by change time, each day where they are read by the daily pass. See Customer Addresses.
customer_groups Customer groups <site_id>|<id> Yes Hourly
customer_group_members Members of each static customer group <site_id>|<group_id>|<customer_no> No OCAPI. One listing per static group, daily. A dynamic group has no member list.

Catalogue

Products are read for the whole organization, not once per site.

Resource What it holds Key (id) Default Needs
products Every product type (master, variant, variation group, set, bundle, option), with c_* attributes and variants as JSON <id> Yes Read every poll, by modification time
product_image_groups Image groups by view type and variation The product, view type and variation Yes From the product
product_image_group_images The images of each group The group and image position Yes From the product
product_image_group_variation_attributes Variation attributes of each group The group and attribute Yes From the product
product_image_group_variation_attribute_values Their values The group, attribute and value Yes From the product
product_assigned_categories The categories a product is assigned to <product_id>|<catalog_id>|<category_id> Yes From the product
product_primary_categories The primary category per catalog <product_id>|<catalog_id> Yes From the product
product_prices Price per site and product <site_id>|<product_id> No A daily walk of every product per site: about 25,000 requests a day for 1,000,000 products on 5 sites.
product_availability Available-to-sell, in stock and online per site and product <site_id>|<product_id> No The same walk, and stock changes re-send most rows each day.
catalogs Catalogs <id> Yes Hourly
categories Categories of each catalog <catalog_id>|<id> Yes Daily
category_product_assignments Product-to-category assignments, with position <catalog_id>|<category_id>|<product_id> No Categories times pages, daily. product_assigned_categories already lists the assignments; this adds position and deletes.
shared_product_options Shared product options <catalog_id>|<id> No OCAPI, hourly
shared_product_option_values Their values <catalog_id>|<option_id>|<id> No OCAPI

Pricing and Promotions

Resource What it holds Key (id) Default Needs
price_books Price books <id> Yes Hourly
price_book_site_assignments Which sites use which price book <price_book_id>|<site_id> Yes Hourly
price_book_entries Every price in every price book <price_book_id>|<productId> No Entries divided by 200 requests a day (300,000 entries is 1,500).
promotions Promotions <site_id>|<id> Yes Hourly
promotion_tags A promotion’s tags <site_id>|<promotion_id>|<tag> Yes From the promotion
promotion_ab_tests A/B tests a promotion is assigned to, active or upcoming The promotion, test and segment Yes From the promotion
campaign_promotions Promotions assigned to campaigns, active or upcoming <site_id>|<campaign_id>|<promotion_id> Yes From the promotion
ab_tests A/B tests of each site, segments as JSON <site_id>|<id> No OCAPI, hourly
campaigns Campaigns <site_id>|<campaignId> Yes Read every poll, by modification time
campaign_coupons, campaign_customer_groups, campaign_source_code_groups What each campaign targets The campaign and the coupon, customer group or source code group Yes From the campaign
campaign_promotion_assignments Which promotion is assigned to which campaign <site_id>|<campaignId>|<promotionId> Yes Hourly
coupons Coupons (never their codes) <site_id>|<couponId> Yes Hourly
source_code_groups Source code groups <site_id>|<id> Yes Hourly
gift_certificates Gift certificates <site_id>|<merchantId> Yes A pass over the whole list each day
gift_certificate_transactions Their transactions The certificate, time, type and order Yes From the gift certificate

Sites, Stores and Custom Objects

Resource What it holds Key (id) Default Needs
sites Sites <id> Yes Hourly
stores Stores of each site <site_id>|<id> Yes Hourly
site_locales Locales of each site <site_id>|<id> No OCAPI, hourly
custom_objects Custom objects of the types you list, site-level and organization-level <object_type>|<site_id or ->|<key> No Custom object types: the API cannot list them.
custom_object_attribute_definitions, custom_object_attribute_groups The attribute definitions and groups of each type <object_type>|<id> No OCAPI and Custom object types, daily

Inventory

Resource What it holds Key (id) Default Needs
inventory_lists Inventory lists <id> No OCAPI (it lists every list), or Inventory list IDs
inventory_list_records Stock per product per list <inventory_list_id>|<product_id> No With OCAPI, records divided by 200 requests a day. Without it, one request per product per list per day: 50,000 products on one list is about 3.5 hours of requests.

Presets

Add a preset offers three selections. Each leaves out what costs extra requests or needs OCAPI.

  • Orders and customers: orders, its eight children, customers, customer_groups and sites.
  • Catalogue: products and its six children, catalogs, categories, price_books, price_book_site_assignments and stores.
  • Promotions: promotions and its three children, campaigns and its three children, campaign_promotion_assignments, coupons, source_code_groups, gift_certificates and gift_certificate_transactions.

What Each Row Contains

  • id is the Kafka key: the parts in the tables above joined with |. A | or % inside a value is percent-escaped, so no two rows share a key. A key longer than 33 bytes in UTF-8 (a 20-letter Arabic product ID already is) is replaced by ~ and a 32-character digest, and the parts stay in their own columns (site_id, orderNo, and so on), so nothing hides the natural identity.
  • Columns carry Salesforce’s field names. Identifiers are text, so a leading zero in orderNo or customerNo is kept. Money is a double. Dates are UTC text such as 2026-10-29T08:15:00.000Z. Nested values (addresses on a customer, variants on a product, localized names such as {"ar_SA": "…", "default": "…"}) are one JSON text column, never a column per locale.
  • Custom attributes (c_*) are one top-level text column each. A string stays as it is and any other value is written as JSON (true, 12, ["a","b"]), so a merchant who changes an attribute’s type breaks nothing. A name that is not plain ASCII, or that differs from another only by case, gets a deterministic ASCII column name.
  • streamkap_changed_at is when Streamkap read the row.
  • Any script is carried as sent: Arabic, Hebrew, Cyrillic, CJK, emoji.

Prerequisites

  • A B2C Commerce instance (production, staging, development or a sandbox) and its realm.
  • An Account Manager user who can create API clients and assign them the Salesforce Commerce API role.
  • From Business Manager, Administration → Site Development → Salesforce Commerce API Settings: your realm’s short code (eight letters and digits, such as kv7kzm78) and the instance’s organization ID (such as f_ecom_zzte_053). Opening that page needs the Business Manager Administrator role in Account Manager. If the realm has no short code yet, click Request Short Code; it can take up to 24 hours to work.
  • Optionally: site IDs to limit what is read, the custom object types, and the inventory list IDs. See Settings Tab.
  • Only for the optional resources that need OCAPI: a realm that still has OCAPI settings (see Optional OCAPI client).

No separate licence or plan is needed beyond access to the instance and the Salesforce Commerce API role. Salesforce no longer makes OCAPI settings available to realms provisioned for new customers from 1 September 2026, so the resources that need OCAPI are unavailable there. An existing customer can ask Salesforce support to enable them on a new realm.

Create the API Client

Streamkap signs in as an Account Manager API client that you make for it, with read scopes only. Do this once at Account Manager.

  1. Open API Client and choose Add API Client. Enter a Display Name and a Password. Use letters and digits only, as Salesforce asks.

  2. Under Organizations, choose Add and add your organization.

  3. Under Roles, choose Add, select the category Salesforce Commerce API, and use its filter button to select your organization and each instance to read. This tenant filter is what lets the client reach the instance: without it, every call answers 403.

  4. Under OpenID Connect, set Default Scopes to mail roles tenantFilter profile openId. Do not add SALESFORCE_COMMERCE_API to the client’s scopes: it is a role, and Streamkap adds it to the token request itself.

  5. Under Allowed Scopes, add these read scopes, one per line:

    sfcc.sites
    sfcc.orders
    sfcc.customerlists
    sfcc.customergroups
    sfcc.products
    sfcc.catalogs
    sfcc.price-books
    sfcc.promotions
    sfcc.gift-certificates
    sfcc.source-codes
    sfcc.stores
    sfcc.custom-objects
    sfcc.inventory-lists
  6. Set Token Endpoint Auth Method to client_secret_post and Access Token Format to JWT, choose Save, and copy the API Client ID.

All scopes are read-only; Streamkap never asks for a .rw scope. Streamkap requests only the scopes of the resources you select, plus sfcc.sites, so listing all of them lets you add resources later without editing the client. sfcc.custom-objects is missing from Salesforce’s published scope list, but the Custom Objects API needs it.

Scope Resources
sfcc.sites Always requested: sites and site discovery
sfcc.orders orders, its eight children, order_notes
sfcc.customerlists customers, customer_addresses
sfcc.customergroups customer_groups, customer_group_members
sfcc.products products, its six children, product_prices, product_availability, price_book_entries, and the product walk under inventory_list_records
sfcc.catalogs catalogs, categories, category_product_assignments, shared_product_options, shared_product_option_values
sfcc.price-books price_books, price_book_site_assignments, price_book_entries
sfcc.promotions promotions and its children, campaigns and its children, campaign_promotions, campaign_promotion_assignments, coupons
sfcc.gift-certificates gift_certificates, gift_certificate_transactions
sfcc.source-codes source_code_groups
sfcc.stores stores
sfcc.custom-objects custom_objects
sfcc.inventory-lists inventory_lists, inventory_list_records

Why a Separate Client for OCAPI

Salesforce does not let one API client use both APIs: a client for OCAPI must not have the Salesforce Commerce API role, and a client with the role cannot be used for OCAPI. So the client above never carries OCAPI permissions. If you want the OCAPI resources, make a second client as described next. Streamkap refuses a source whose OCAPI client ID is the same as the API client’s.

Optional OCAPI Client

Eight resources are read only through OCAPI, because the SCAPI Admin APIs have no read for them: order_notes, customer_group_members, shared_product_options, shared_product_option_values, ab_tests, site_locales, custom_object_attribute_definitions and custom_object_attribute_groups. OCAPI also lists every inventory list and its records for inventory_lists and inventory_list_records. Skip this section if you select none of them.

  1. In Account Manager, create a second API client as in Create the API Client, but without the Salesforce Commerce API role. Under Organizations, add your organization. Copy its API Client ID and keep its Password.

  2. In Business Manager, open Administration → Site Development → Open Commerce API Settings, select type Data and context Global, and add the permissions for this client. Test access prints the exact document for the resources you selected, with your client ID filled in. All of them together look like this:

    {
      "_v": "25.6",
      "clients": [
        {
          "client_id": "<OCAPI client ID>",
          "resources": [
            {"resource_id": "/inventory_lists", "methods": ["get"], "read_attributes": "(**)"},
            {"resource_id": "/inventory_lists/*/product_inventory_records", "methods": ["get"], "read_attributes": "(**)"},
            {"resource_id": "/sites/*/ab_tests", "methods": ["get"], "read_attributes": "(**)"},
            {"resource_id": "/sites/*/ab_tests/*", "methods": ["get"], "read_attributes": "(**)"},
            {"resource_id": "/sites/*/customer_groups/*/members", "methods": ["get"], "read_attributes": "(**)"},
            {"resource_id": "/sites/*/customer_groups/*/members/*", "methods": ["get"], "read_attributes": "(**)"},
            {"resource_id": "/catalogs/*/shared_product_options", "methods": ["get"], "read_attributes": "(**)"},
            {"resource_id": "/catalogs/*/shared_product_options/*", "methods": ["get"], "read_attributes": "(**)"},
            {"resource_id": "/custom_object_definitions/*/attribute_definitions", "methods": ["get"], "read_attributes": "(**)"},
            {"resource_id": "/custom_object_definitions/*/attribute_groups", "methods": ["get"], "read_attributes": "(**)"},
            {"resource_id": "/sites/*/locale_info/locales", "methods": ["get"], "read_attributes": "(**)"}
          ]
        }
      ]
    }

    Every permission is get only: never a write method or write_attributes.

  3. Wait up to three minutes: Salesforce caches OCAPI settings that long before they apply.

  4. In Streamkap, enter OCAPI client ID, OCAPI client password and Instance hostname together: the host name Business Manager is served on, such as abcd-001.dx.commercecloud.salesforce.com or production-eu01-acme.demandware.net. Enter it without https://, a path or a port. A storefront domain does not serve OCAPI and is refused.

Optional Business Manager User

Only order_notes needs this, on top of the OCAPI client. Order notes come from the OCAPI Shop API, which signs in with a Business Manager user as well as the OCAPI client.

  1. Use a user (or make one for Streamkap) that has, in Account Manager, the Business Manager User or Business Manager Administrator role with a tenant filter for this instance, and, in Business Manager, a role with read access to orders.

  2. Under Open Commerce API Settings, add a Shop type entry, context Global or each site, for the OCAPI client:

    {"resource_id": "/orders/*/notes", "methods": ["get"], "read_attributes": "(**)"}
  3. In Streamkap, enter Business Manager user login and Business Manager user password.

Two limits come from the sign-in itself. Neither the login nor the password may contain a colon, because the sign-in joins login, password and client password with colons; set a password without one for this user. And an IP allowlist on Business Manager makes the sign-in fail with unauthorized_client, since Streamkap publishes no egress list to allow.

Streamkap Setup

1. Create the Source

2. Connection Settings (Auth Tab)

  • Source name: A unique name for this source.
  • Short code: Your realm’s eight-character short code.
  • Organization ID: f_ecom_<realm>_<instance>, such as f_ecom_zzte_053, or just <realm>_<instance>. One source reads one instance; staging and development are other organization IDs and other sources.
  • API client ID and API client password: From Create the API Client.
  • OCAPI client ID, OCAPI client password and Instance hostname (optional, all three together): From Optional OCAPI client.
  • Business Manager user login and Business Manager user password (optional, both together, with the OCAPI fields): From Optional Business Manager user.

Test connection signs in as the API client and reads one site. See Test connection and Test access. Click Next.

3. Settings Tab

  • Resources: The resources to sync. A resource needs its scope in the client’s Allowed Scopes; Test connection names any that is missing.
  • Site IDs (optional): The sites to read, as Business Manager lists them under Administration → Sites → Manage Sites. Empty reads every site. A site taken off the list stops being read and its rows are kept.
  • Customer list IDs (optional): Read customers from these lists. Empty reads each site’s own customer list.
  • Custom object types: Required with custom_objects and the two custom-object attribute resources. The type IDs are under Administration → Site Development → Custom Object Types.
  • Inventory list IDs: Required with inventory_lists or inventory_list_records unless the OCAPI client is set. They are under Merchant Tools → Products and Catalogs → Inventory.
  • Backfill start date (optional): See Backfill Start Date.

Test access reads each selected resource with its poll’s first request, one record, on the first site, and checks every other configured site with one read (one site search when you set no Site IDs). It reports which customers path the source will use, and each OCAPI resource with the permission document to paste. It makes at most 60 requests. See Test connection and Test access.

4. Review and Create

Check the summary and click Create. One source covers one organization ID, any number of sites: see One source per vendor account. Then send the topics to a destination: see Send topics to a destination.

Changes and Deletes

Set the destination to upsert on id.

How Each Kind Arrives

  • Orders are read in order of modification time, by site, and every change arrives as an update. Orders are never deleted: B2C Commerce removes them only by retention, which no read can see. Every order the API lists arrives, open and replaced included, since Streamkap sends no status filter.
  • Products, campaigns and custom objects are read for what changed since the last poll. A delete arrives through the weekly reconciliation described below, up to a week after it happens.
  • Customers arrive by one of two paths, picked per customer list when you run Test access or on the first poll. If the instance accepts a modification-time filter on customer search, customers are read each poll for what changed. If it refuses it, the list is walked whole once a day and each customer whose own modification time is newer than the last pass arrives. The choice is kept; a later refusal switches that list to the daily walk. Deletes arrive through the weekly reconciliation on both paths.
  • Gift certificates are walked whole once a day, and the certificates modified since the last pass arrive. Deletes arrive through the weekly reconciliation.
  • Small lists (promotions, coupons, source code groups, price books, stores, sites, catalogs, categories, customer groups, category assignments) have no modification filter, so they are listed again each hour or day and compared with what was sent. A changed or new row arrives as an update, and a row no longer listed is deleted. If more than about 1,500 rows differ at once, every row is sent again as a safeguard, and a delete in that pass may not be named; no row is ever deleted by mistake.
  • Listings that page by offset (the OCAPI lists, price book entries, site assignments, campaign promotion assignments) delete only after Streamkap reads the single record and Salesforce answers that it is gone. A row that merely moved between pages is kept.
  • Child resources of orders and products send no deletes. A child row whose parent_last_modified is older than its parent’s current lastModified is no longer current: match on the parent to find it. Children of promotions, campaigns, gift certificates and the other listed parents are deleted with their sketch, as the small lists are.
  • Customer addresses and order notes are never deleted.
  • A removed site stops being read. Nothing is deleted for it.

A delete arrives as a record with __deleted = true. See Deletes.

Weekly Reconciliation

Once a week, for customers, gift certificates, products, campaigns and custom objects, Streamkap lists the IDs that exist and confirms each one it holds that is missing with a single read. Only Salesforce’s “not found” answer, with its error body, deletes a row; any other answer raises an error and deletes nothing.

Duplicates From the Daily Re-Read

Search indexes lag, so once a day Streamkap reads each order, product, campaign, custom object and customer position 24 hours back. Unchanged rows from that window arrive again as upserts: delivery is at least once, and an upsert on id makes it harmless. Each poll also looks back 15 minutes, and products, campaigns, custom objects and filtered customers stop 15 minutes short of now, so a row the index has not caught up with is not skipped.

Backfill Start Date

Backfill start date applies to orders, products, campaigns, custom objects, customers and gift certificates: the first sync reads rows modified on or after it, or all history if it is unset. Every other resource is read whole, because the date does not apply to it. It applies to resources and sites added later too, and changing it does not read again what already synced.

Customer Lists

customers are keyed by their customer list, since two lists can use the same customerNo. Streamkap reads each site’s customer list, or the Customer list IDs you enter; a list shared by several sites is read once.

Customer Addresses

customer_addresses is a read per changed customer, so it is off by default. A customer’s lastModified may move on activity such as a login, which makes an active shopper count as changed each day; Streamkap has not yet confirmed this against a live instance. Address deletes are not sent.

Behavior & Limits

Request Budget

Streamkap sends at most 4 requests a second for the whole source, one at a time, which is about 345,600 requests a day shared by every resource and site. The Admin APIs publish no rate and share capacity with your storefront, so Streamkap stays at that pace and slows down under load (see Load Shedding).

  • Idle, per site: orders costs 1 request a poll, or about 3 when the instance filters modification time by day only. Each product, campaign and custom-object read costs 1. Small lists cost 1 to 3 an hour. Daily passes cost one request per 200 customers or gift certificates (1,200,000 customers is 6,000).
  • Backfill: 1,000,000 orders is about 5,000 pages, around 21 minutes at that rate, or about an hour when the filter is day-granular. 1,000,000 products is about 5,000 requests.
  • Per extra site: site-scoped resources multiply by the number of sites (50 sites with 12 hourly resources is about 600 requests an hour).
  • A different poll interval scales every “hourly” and “daily” here.

The 10,000-Row Search Window

Salesforce limits an order or customer search to 10,000 rows: the offset plus the page size cannot pass 10,000. Streamkap treats every searched list the same way. Streamkap reads past it without losing a row:

  • Searches (products, customers, campaigns, promotions, coupons, custom objects and the other searched lists) page by ID: each page asks for IDs after the last one seen, sorted by ID, always at offset 0. Each key is listed once and the offset never grows.
  • Orders cannot be searched by ID, so each site is read in order of modification, each page starting from where the last stopped and never past offset 9,800. When a group of orders is too large to page through, it is split by export status, then payment status, then shipping status, then confirmation status, and finally by halves of the creation date, and every part is read in turn. A split is joined back once its parts are a day past the split point. A group that still cannot advance fails the poll and names the site, the position and the group.
  • Offset listings confirm every disappearance before a delete, so a list that shifts while it is read deletes nothing wrongly.

If an instance refuses an ID-sorted search, that resource stops with a message that says so; there is no offset fallback.

Responses Over 10 MB

B2C Commerce answers a response over 10 MB with a 500. A page of 200 orders with a thousand line items and notes can reach it. Streamkap halves the page, down to one record, and grows it again after clean pages.

  • An order that still fails alone is quarantined, not skipped silently. Streamkap logs a warning once a day for each such order, naming the site and the modification times on either side of it: “an order on site … modified between … and … could not be read (too large for the API, or a failing merchant hook); it is retried daily”. It retries each quarantined order once a day and sends it when it reads. Up to 1,000 are held at once. If another order cannot be read while 1,000 are held, the poll fails rather than skip it, and the daily retry frees room as held orders recover.
  • A merchant hook can cause it too. A hook that errors when orders are read, or that takes over 60 seconds, makes the read fail with a 500 or 504. The same message covers it. If more than 20 orders are quarantined in one poll, the poll fails: that is a hook failing on every read, not one record. Fix the hook in Business Manager.
  • Any other resource that fails at one record stops, naming the site and the last ID read, since a keyset cannot step over an ID it cannot see.
  • Every request waits up to 75 seconds, a little more than the 60 seconds Salesforce gives an Admin API call.

Load Shedding

B2C Commerce does not publish an Admin API quota. Instead, when an instance is under load the API answers 503, and each response carries an sfdc_load header from 0 to 100. Streamkap paces on it:

  • Below 80, at 4 requests a second.
  • From 80 (the WARN level), at 2 a second.
  • From 90 (the THROTTLE level), at 1 a second, and the source holds for 30 seconds before its next request.
  • A response served from the CDN cache is ignored.

The source shows Throttled while it waits and resumes on its own. A 503 with no load header may be the hook circuit breaker (50 hook errors in the last 100 requests) rather than load; the message says so. See Connector status.

Created and Failed Orders

Orders with status created or failed are checkout attempts, not placed orders, and the Admin API does not return them. They are unreachable and never arrive. Orders that are open or replaced do arrive.

Products Are Read for the Organization

products and the product children are read once for the organization, without a site, and so carry no site_id. Prices and availability are per site and are the opt-in product_prices and product_availability.

Per-Resource Failures

A refused scope or tenant filter (403), a site, custom object type or inventory list that does not exist, and a merchant hook that fails on a read pause only the affected resource. Its status names the fix and the rest keep syncing. An OCAPI or Business Manager permission problem fails only the resource that reads through it, never the SCAPI resources. A rejected API client or an unknown organization affects the whole source. See Connector status.

Editing the Source

  • API client password, OCAPI client password or Business Manager user password: click Replace, enter the new value and save. The stored value is kept if you leave it untouched.
  • Short code, organization ID or instance hostname: entering a new value needs the matching secret in the same save, so Streamkap can check the credentials against the new place.
  • Site IDs: a site added syncs from the backfill start; a site removed stops syncing, and its rows stay.
  • Resources: a new resource needs its scope in the client’s Allowed Scopes. Adding or removing one follows Editing an API source.

Troubleshooting

Test connection and Test access name the problem and the fix. Messages come from two places: the form checks (and Test connection on a new source) say “Account Manager rejected…” or “…refused…” as below, and Test access, Test connection on a saved source and a running source’s status say the shorter forms in the second table. Both read like this:

Message starts Cause Fix
“Account Manager rejected the API client ID or password (invalid_client) …” or “The API client ID or password is wrong: copy them again from Account Manager > API Client.” The client ID or password is wrong, or the client was deleted Copy the API Client ID from Account Manager → API Client, enter the password set on it, or set a new password on the client and Replace it
“Account Manager refused the scopes Streamkap requested (invalid_scope) …” or “One of these scopes is missing from the API client’s Allowed Scopes in Account Manager: …” A scope is missing from Allowed Scopes, or (first form) the role’s filter does not name the instance. The message lists the scopes Streamkap asked for. Add each sfcc.* scope, one per line, and select the instance in the role’s filter
“Account Manager does not let this API client use the client_credentials grant (unauthorized_client) …” or “The API client may not use the client_credentials grant …” The client’s Token Endpoint Auth Method or Access Token Format is not set as Streamkap needs Set Token Endpoint Auth Method to client_secret_post and Access Token Format to JWT, and test again
“Account Manager refused the API client’s sign-in (…)” Another Account Manager error; the message carries its code and, on a saved source, the HTTP status Check the client ID, its password and its organization under Account Manager → API Client
“Account Manager answered without an access token; retry …” or “Account Manager redirected the sign-in instead of answering …” Account Manager answered something other than a token Test again; if it persists, contact Streamkap support
“The B2C Commerce API refused the access token Account Manager issued … (401)” or “Salesforce Commerce refused the access token Account Manager issued: check that the API client ID belongs to this organization …” The access token is not a JWT, or the client does not belong to this organization Set Access Token Format to JWT, and check the client’s organization
“The B2C Commerce API refused every request for … (403) …” or “Salesforce Commerce refused every read. In Account Manager, open the API client’s Roles …” The role’s tenant filter does not name this instance In API Client → Roles, edit the role’s filter and select the organization and instance
“The B2C Commerce API has no … under short code … (404) …” or “Salesforce Commerce has no such organization. Check the short code and organization ID …” The short code or organization ID is wrong, or they belong to different realms Check both on the Salesforce Commerce API Settings page
“Short code must be your realm’s eight letters and digits …”, “Organization ID must be f_ecom_<realm>_<instance> …” A field is not in its form Copy both from Salesforce Commerce API Settings
“API client ID must be the UUID Account Manager shows as the API Client ID.” The ID is not a UUID; a password pasted into the ID field is not echoed Copy the API Client ID
“The OCAPI client ID must be a second API client …” The OCAPI client is the same as the API client Make a second client without the Salesforce Commerce API role
“Instance hostname must be the host name Business Manager is served on …” A storefront domain, a URL, a path or a port was entered Enter the host name Business Manager opens on, alone
“Check the instance hostname: it is the host Business Manager is served on.” A request to the instance host was redirected: the instance host is wrong, or the realm is inactive or moved Enter the host name Business Manager opens on, alone
“The Business Manager user login cannot contain a colon …”, “The Business Manager password cannot contain a colon …” A colon in the login or password Use a login and password without one
“The OCAPI client ID is required with …”, “The OCAPI client secret is required with …”, “The instance hostname is required with the OCAPI client …”, “The Business Manager user signs in through the OCAPI client …” The OCAPI fields or the Business Manager fields are only partly filled Fill all three OCAPI fields together, and the OCAPI fields before the Business Manager user
“Resources … read the Open Commerce API (OCAPI): fill in the OCAPI fields …”, “Resource order_notes reads the notes through Business Manager …” An OCAPI resource, or order notes, is selected without the fields it reads through Fill the fields, or deselect the resource
“Custom object types are required with …”, “Inventory list IDs are required with …” A resource that needs IDs is selected without them Enter the IDs, or deselect the resource

Test access then reads each selected resource. A refused resource is a row of its own; the rest keep running:

Row says Cause Fix
“The API client lacks … Add the scopes listed in the form to the API client’s Allowed Scopes …” That resource’s scope is not in Allowed Scopes Add the scope from the table above, or deselect the resource
“Add the scopes listed in the form … If every resource is refused, the role’s tenant filter lacks this instance …” (on a running source) A scope the role refuses, or a tenant filter without this instance; one response cannot tell which Add the scopes, and check the role’s tenant filter
“The realm has no site ‘…’. Check the site IDs …”, “Check the site IDs in Business Manager > Administration > Sites > Manage Sites …” A Site ID is wrong, was deleted, or the site is offline Check the site IDs under Manage Sites, or bring the site online
“Check the custom object type IDs …”, “Check the inventory list IDs …” A configured type or list is not on the realm Correct the IDs under Custom Object Types or Inventory
“Salesforce Commerce has no customer list by that ID: check the customer list IDs.” A Customer list ID is wrong Correct the ID
“In Business Manager > Administration > Site Development > Open Commerce API Settings, choose type Data and context Global, add the permissions Test access shows …” The OCAPI client has no Data permission entry for the resource, or it was saved under three minutes ago Paste the document Test access prints under Open Commerce API Settings, type Data, context Global, and wait three minutes
“Check the OCAPI client ID: that API client must exist in Account Manager …” The OCAPI client ID is not known to the instance Check the OCAPI client ID and that its organization is added
“The OCAPI client ID or OCAPI client secret is wrong: copy them again …” The OCAPI client’s token was refused Copy the ID and password again
“This realm has no OCAPI (realms provisioned since September 1, 2026 do not get it) …” The realm was provisioned for a new customer since 1 September 2026, or OCAPI is disabled Deselect the OCAPI resources. Use Inventory list IDs for inventory. The SCAPI resources are unaffected.
“The Business Manager user grant was refused: check the login and password …” The Business Manager login or password is wrong, the user lacks order read access or a tenant filter, or an IP allowlist blocks the sign-in See Optional Business Manager user
“This instance’s customer search cannot filter by last modification, so customers are read by a daily pass …” (warning) The instance’s customer search refuses a modified-since filter Nothing: a change can take up to a day to arrive. See Customer Lists.
“The first site names no customer list: set the customer list IDs to read customers.” (warning) The site has no customer list of its own Enter the Customer list IDs
“The first site has no order yet to read notes on.” (warning) Order notes cannot be checked on an empty site Nothing: the check passes once an order exists
“salesforce_commerce orders: an order on site … could not be read (too large for the API, or a failing merchant hook); it is retried daily” (in the logs) An order is over 10 MB or a merchant hook fails on it See Responses Over 10 MB
“A merchant hook (custom cartridge code) fails when this data is read …” More than 20 orders in one poll could not be read, so a hook fails on every order read Ask your Salesforce Commerce developer to fix the hook the instance’s logs name; reads resume once it answers
“This instance refused a search sorted by ID …” An instance does not accept the sort Streamkap needs on that resource Deselect the resource and contact Streamkap support with the error shown
“Salesforce Commerce refused the read with HTTP …” Another 4xx the connector has no remedy for Read the reason in the message; contact Streamkap support if it does not name a fix
“salesforce_commerce …: a row of … after … could not be read even one at a time (too large for the API, or a failing merchant hook)” A resource other than orders failed on one record, and a keyset cannot step over it Fix the hook or the record named in the message; see Responses Over 10 MB
“salesforce_commerce …: the instance answered 503 again after a retry (it sheds load, or a merchant hook’s circuit breaker is open); the next poll tries again” The instance is under load, or the hook circuit breaker is open Nothing: the source resumes. See Load Shedding.
  • API sources - how API sources work, Test access, deletes, status and sending topics to a destination
  • Salesforce - Salesforce CRM objects, and the Commerce (B2B/D2C) preset