---
schema_version: "1"
id: 9ec1fbec87d439b8a4acd9eab4b6fedb73ea26316afe8861601310b18f7e3e9d
title: B2C Setup Guide
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/retail/latest/b2c-setup-guide.md
canonical_url: https://docs.mulesoft.com/retail/latest/b2c-setup-guide
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 71158f2ba879b52b0b4286244eb697d224fbfc06cd15134ac6f33f910c720ffe
description: MuleSoft Documentation Site
release: "3.2"
latest: true
---
---
product: Retail
version: 3.2
is-latest-version: true
---

# B2C Setup Guide

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

The following document provides guidance on how to configure your B2C Commerce instance to provide
access to the Data and Shopper APIs used by the B2C Commerce System API implementation template.

## API Client ID Settings

Before doing anything with the Salesforce Commerce API, you need an API Client ID. The API Client ID
is a credential that is granted from Account Manager, which consists of both an ID value and a
secret. Both the ID and the secret should be protected and treated as a username and password
combination to using the Salesforce Commerce API.

In Account Manager, create a new API Client with the following settings:

- **Roles**: Salesforce Commmerce API role with access to the target instance

- **OpenID Connect allowed scopes**:

  sfcc.orders sfcc.orders.rw sfcc.products sfcc.products.rw sfcc.shopper-baskets-orders
  sfcc.shopper-baskets-orders.rw sfcc.shopper-myaccount sfcc.shopper-myaccount.rw
  sfcc.shopper-myaccount.addresses sfcc.shopper-myaccount.addresses.rw
  sfcc.shopper-customers.register sfcc.customerlists.rw

- **Token Endpoint Auth Method**: client\_secret\_post

- **Access Token Format**: JWT

Refer to the Add an API Client ID documentation in the Commerce Cloud Infocenter for more
information.

## Open Commerce API Settings

OCAPI is the other set of APIs used by the implementation template. These settings are configured in
Business Manager, on the **Administration -> Site Development -> Open Commerce API Settings** page.
There are two groups of APIs that must be configured: Shop APIs and Data APIs. Access to Shop APIs
must be configured at the Global (organization-wide) level, while access to Data APIs can be
configured globally or at the individual site level.

### Shop APIs

Access to the following resources and methods of the Shop APIs is required:

<table><colgroup><col> <col></colgroup><thead><tr><th>Resource</th><th>Methods</th></tr></thead><tbody><tr><td><p>/customers</p></td><td><p>POST</p></td></tr><tr><td><p>/customers/*</p></td><td><p>GET/PATCH</p></td></tr><tr><td><p>/customers/*/addresses</p></td><td><p>GET/POST</p></td></tr><tr><td><p>/customers/<strong>/addresses/</strong></p></td><td><p>GET/PATCH/DELETE</p></td></tr><tr><td><p>/customers/*/baskets</p></td><td><p>GET</p></td></tr><tr><td><p>/customers/*/orders</p></td><td><p>GET</p></td></tr><tr><td><p>/orders/*</p></td><td><p>GET/PATCH</p></td></tr><tr><td><p>/order_search</p></td><td><p>POST</p></td></tr><tr><td><p>/product_lists</p></td><td><p>GET</p></td></tr><tr><td><p>/product_lists/*</p></td><td><p>GET/PATCH</p></td></tr><tr><td><p>/product_lists/*/items</p></td><td><p>GET/POST</p></td></tr><tr><td><p>/product_lists/<strong>/items/</strong></p></td><td><p>PATCH/DELETE</p></td></tr><tr><td><p>/product_search</p></td><td><p>GET</p></td></tr><tr><td><p>/product_search/availability</p></td><td><p>GET</p></td></tr><tr><td><p>/product_search/images</p></td><td><p>GET</p></td></tr><tr><td><p>/product_search/prices</p></td><td><p>GET</p></td></tr><tr><td><p>/product_search/variations</p></td><td><p>GET</p></td></tr><tr><td><p>/products/*</p></td><td><p>GET</p></td></tr><tr><td><p>/products/*/images</p></td><td><p>GET</p></td></tr><tr><td><p>/products/*/availability</p></td><td><p>GET</p></td></tr><tr><td><p>/products/*/prices</p></td><td><p>GET</p></td></tr><tr><td><p>/products/*/variations</p></td><td><p>GET</p></td></tr></tbody></table>

### Data APIs

Access to the following resources and methods of the Data APIs is required:

<table><colgroup><col> <col></colgroup><thead><tr><th>Resource</th><th>Method</th></tr></thead><tbody><tr><td><p>/products/*</p></td><td><p>GET/PUT/PATCH</p></td></tr><tr><td><p>/products/<strong>/variation_attributes/</strong></p></td><td><p>GET/PUT</p></td></tr><tr><td><p>/products/<strong>/variation_attributes/</strong>/values/*</p></td><td><p>GET/PUT</p></td></tr><tr><td><p>/products/<strong>/variations/</strong></p></td><td><p>GET/PUT</p></td></tr><tr><td><p>/product_search</p></td><td><p>POST</p></td></tr><tr><td><p>/inventory_lists/<strong>/product_inventory_records/</strong></p></td><td><p>GET/PATCH/PUT</p></td></tr><tr><td><p>/catalogs/<strong>/categories/</strong>/products/*</p></td><td><p>GET/PATCH/PUT</p></td></tr><tr><td><p>/sites/<strong>/orders/</strong>*</p></td><td><p>PUT/PATCH</p></td></tr></tbody></table>

## See Also

- [Prerequisites](https://docs.mulesoft.com/retail/latest/prerequisites)

- [MuleSoft Accelerator for Retail](https://docs.mulesoft.com/retail/latest/)
