Salesforce Commerce Cloud Shopper API

The Shopper API from Salesforce Commerce Cloud — 9 operation(s) for shopper.

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /shopper/auth/v1/organizations/{organizationId}/oauth2/token Get a shopper login access token · Get an SLAS access token #
Ask an LLM
“How do I get an OAuth 2.0 access token for the Shopper Login and API Access Service?”
“Can I exchange a refresh token for a new SLAS access token?”
Tell an agent
Get an SLAS access token for organization {organizationId}.
Exchange refresh token {refresh_token} for a new access token in {organizationId}.
GET /shopper/products/v1/organizations/{organizationId}/products Get several products by ID · Get products #
Ask an LLM
“How do I fetch product details for a list of product IDs?”
“Can I get all images and prices for a batch of products?”
Tell an agent
Get products {ids} in organization {organizationId} for site {siteId}.
Fetch products {ids} in {organizationId} with prices per pricebook {perPricebook}.
GET /shopper/products/v1/organizations/{organizationId}/products/{id} Get a product · Get a product #
Ask an LLM
“How do I get the details of one product by its ID?”
“Can I fetch a single product from a site in my organization?”
Tell an agent
Get product {id} in site {siteId} of organization {organizationId}.
Show product {id} on site {siteId} for organization {organizationId}.
GET /shopper/search/v1/organizations/{organizationId}/product-search Search products · Product search #
Ask an LLM
“How do I search products by keyword?”
“Can I sort and refine product search results?”
Tell an agent
Search products in organization {organizationId} for site {siteId} using {q}.
Search {organizationId} site {siteId} for {q} sorted by {sort}.
POST /shopper/baskets/v1/organizations/{organizationId}/baskets Create a shopper basket · Create a basket #
Ask an LLM
“How do I create an empty basket for a shopper to add items to?”
“Can I start a new basket on a specific site in my organization?”
Tell an agent
Create a new basket on site {siteId} for organization {organizationId}.
Start a fresh shopper basket on site {siteId} of organization {organizationId}.
GET /shopper/baskets/v1/organizations/{organizationId}/baskets/{basketId} Get a shopper basket · Get a basket #
Ask an LLM
“How do I view the items in a shopper's basket?”
“What is the total of a specific basket?”
Tell an agent
Get basket {basketId} in organization {organizationId} for site {siteId}.
Show the contents of basket {basketId} in {organizationId}.
DELETE /shopper/baskets/v1/organizations/{organizationId}/baskets/{basketId} Delete a shopper basket · Delete a basket #
Ask an LLM
“How do I clear a shopper's basket?”
“Can I delete a basket by its ID?”
Tell an agent destructive · confirm first
Delete basket {basketId} in organization {organizationId} for site {siteId}.
Clear shopper basket {basketId} on site {siteId} in {organizationId}.
POST /shopper/baskets/v1/organizations/{organizationId}/baskets/{basketId}/items Add items to a basket · Add items to a basket #
Ask an LLM
“How do I add products to a shopper's basket?”
“Can I add several items to a basket at once?”
Tell an agent
Add items to basket {basketId} in organization {organizationId} for site {siteId}.
Add products to basket {basketId} on site {siteId} in {organizationId}.
POST /shopper/orders/v1/organizations/{organizationId}/orders Place an order from a basket · Create an order from a basket #
Ask an LLM
“How do I turn a shopper's basket into an order?”
“Can I place an order from a specific basket ID?”
Tell an agent
Place an order from basket {basketId} in organization {organizationId} for site {siteId}.
Create an order on site {siteId} in {organizationId} using basket {basketId}.
GET /shopper/orders/v1/organizations/{organizationId}/orders/{orderNo} Get an order · Get an order #
Ask an LLM
“How do I look up an order by its number?”
“What is the status of a placed order?”
Tell an agent
Get order {orderNo} in organization {organizationId} for site {siteId}.
Show order {orderNo} on site {siteId} in {organizationId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/salesforce-commerce-cloud:salesforce-commerce-cloud-shopper-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

salesforce-commerce-cloud-shopper-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Salesforce Commerce API (SCAPI) - Subset Shopper API
  description: 'Representative subset of the Salesforce B2C Commerce API (SCAPI) covering

    common Shopper endpoints (Login, Products, Search, Baskets, Orders,

    Customers). SCAPI is a RAML-defined API family organized into Shopper,

    Data, and Admin tiers. Shopper APIs authenticate via the Shopper Login

    and API Access Service (SLAS) and other tiers use OAuth 2.0 via

    Salesforce Account Manager.'
  version: v1
  contact:
    name: Salesforce Commerce Cloud
    url: https://developer.salesforce.com/docs/commerce/commerce-api/overview
servers:
- url: https://{shortCode}.api.commercecloud.salesforce.com
  description: SCAPI per-realm endpoint
  variables:
    shortCode:
      default: zzte-053
      description: B2C Commerce Cloud realm short code
security:
- bearerAuth: []
tags:
- name: Shopper
paths:
  /shopper/auth/v1/organizations/{organizationId}/oauth2/token:
    post:
      summary: Get an SLAS access token
      description: 'Shopper Login and API Access Service (SLAS) OAuth 2.0 token endpoint.

        Supports guest and authenticated shopper flows.'
      operationId: getSlasToken
      parameters:
      - name: organizationId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                grant_type:
                  type: string
                  enum:
                  - client_credentials
                  - authorization_code
                  - refresh_token
                  - refresh_token_pkce
                code:
                  type: string
                code_verifier:
                  type: string
                client_id:
                  type: string
                refresh_token:
                  type: string
                channel_id:
                  type: string
                usid:
                  type: string
      responses:
        '200':
          description: SLAS token response
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                  refresh_token:
                    type: string
                  expires_in:
                    type: integer
                  token_type:
                    type: string
                  usid:
                    type: string
                  customer_id:
                    type: string
                  enc_user_id:
                    type: string
      tags:
      - Shopper
  /shopper/products/v1/organizations/{organizationId}/products:
    get:
      summary: Get products
      description: Returns hydrated product information for one or more products.
      operationId: getProducts
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: ids
        in: query
        required: true
        schema:
          type: string
        description: Comma-separated list of product IDs (up to 24).
      - name: siteId
        in: query
        required: true
        schema:
          type: string
      - name: inventoryIds
        in: query
        schema:
          type: string
      - name: currency
        in: query
        schema:
          type: string
      - name: locale
        in: query
        schema:
          type: string
      - name: allImages
        in: query
        schema:
          type: boolean
      - name: perPricebook
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: Product list result
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      tags:
      - Shopper
  /shopper/products/v1/organizations/{organizationId}/products/{id}:
    get:
      summary: Get a product
      operationId: getProduct
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: siteId
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Product detail
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      tags:
      - Shopper
  /shopper/search/v1/organizations/{organizationId}/product-search:
    get:
      summary: Product search
      operationId: productSearch
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: siteId
        in: query
        required: true
        schema:
          type: string
      - name: q
        in: query
        schema:
          type: string
      - name: refine
        in: query
        schema:
          type: array
          items:
            type: string
      - name: sort
        in: query
        schema:
          type: string
      - name: currency
        in: query
        schema:
          type: string
      - name: locale
        in: query
        schema:
          type: string
      - name: offset
        in: query
        schema:
          type: integer
      - name: limit
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: Product search result
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      tags:
      - Shopper
  /shopper/baskets/v1/organizations/{organizationId}/baskets:
    post:
      summary: Create a basket
      operationId: createBasket
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: siteId
        in: query
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Created basket
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      tags:
      - Shopper
  /shopper/baskets/v1/organizations/{organizationId}/baskets/{basketId}:
    get:
      summary: Get a basket
      operationId: getBasket
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: basketId
        in: path
        required: true
        schema:
          type: string
      - name: siteId
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Basket
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      tags:
      - Shopper
    delete:
      summary: Delete a basket
      operationId: deleteBasket
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: basketId
        in: path
        required: true
        schema:
          type: string
      - name: siteId
        in: query
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Basket deleted
      tags:
      - Shopper
  /shopper/baskets/v1/organizations/{organizationId}/baskets/{basketId}/items:
    post:
      summary: Add items to a basket
      operationId: addItemsToBasket
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: basketId
        in: path
        required: true
        schema:
          type: string
      - name: siteId
        in: query
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                type: object
                additionalProperties: true
      responses:
        '200':
          description: Updated basket
      tags:
      - Shopper
  /shopper/orders/v1/organizations/{organizationId}/orders:
    post:
      summary: Create an order from a basket
      operationId: createOrder
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: siteId
        in: query
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - basketId
              properties:
                basketId:
                  type: string
      responses:
        '200':
          description: Created order
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      tags:
      - Shopper
  /shopper/orders/v1/organizations/{organizationId}/orders/{orderNo}:
    get:
      summary: Get an order
      operationId: getOrder
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: orderNo
        in: path
        required: true
        schema:
          type: string
      - name: siteId
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Order
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      tags:
      - Shopper
components:
  parameters:
    OrganizationId:
      name: organizationId
      in: path
      required: true
      schema:
        type: string
      description: B2C Commerce Cloud organization ID (e.g. f_ecom_zzte_053).
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'OAuth 2.0 access token from SLAS (Shopper APIs) or Salesforce Account

        Manager (Data and Admin APIs), sent as `Authorization: Bearer <token>`.

        '