Newer Version Available
Commerce B2B and D2C Resources
Available resources are:
Address Management
For a detailed overview of Commerce Address Management resources and a sample use case, refer to the Salesforce Commerce Address Management APIs.
| Resource | Description |
|---|---|
| /commerce/webstores/webstoreId/accounts/accountId/addresses | Create a Commerce account address for a webstore, or retrieve a collection of addresses for a webstore account. |
| /commerce/webstores/webstoreId/accounts/accountId/addresses/addressId | Update or delete an address for a Commerce account associated with a webstore. |
Cart
For a detailed overview of Commerce Cart resources and a sample use case, refer to the Salesforce Commerce Cart APIs.
Checkout
For a detailed overview of Commerce Cart resources and a sample use case, refer to the Salesforce Commerce Checkout APIs.
| Resource | Description |
|---|---|
| /commerce/webstores/webstoreId/checkouts/activeOrCheckoutId | Get, delete, or update a Commerce store checkout. |
| /commerce/webstores/webstoreId/checkouts/activeOrCheckoutId/payments | Payment for a Commerce store checkout. |
| /commerce/webstores/webstoreId/checkouts/activeOrCheckoutId/orders | Place an order for a Commerce store checkout. |
| /commerce/webstores/webstoreId/checkouts | Start a Commerce store checkout. |
| /commerce/webstores/webstoreId/payments/token | Tokenize a payment for a Commerce store checkout. |
| /commerce/webstores/webstoreId/checkouts/activeOrCheckoutId/coupons | Apply a coupon code to a checkout. |
| /commerce/webstores/webstoreId/checkouts/activeOrCheckoutId/coupons/cartCouponId | Delete a coupon from a checkout. |
| /commerce/webstores/webstoreId/buyers/registrations | Allows a guest user to register an account at a store during checkout. |
Context
| Resource | Description |
|---|---|
| /commerce/webstores/webstoreId/application-context | Get application context information for a Commerce store. |
| /commerce/webstores/webstoreId/session-context | Get session context information for a Commerce store. |
Commerce Analytics
Commerce Analytics resources enable you to gain actionable insights into revenue, product performance, and customer behavior through comprehensive dashboards. See Set Up the Commerce Analytics Dashboards.
| Resource | Description |
|---|---|
| /commerce/intelligence/kpis | Retrieve a list of key performance indicators (KPIs) along with the insights each KPI supports. |
| /commerce/intelligence/kpis/kpiName | Retrieve information about a specified key performance indicator. |
Commerce Subscriptions
| Resource | Description |
|---|---|
| /commerce/webstores/webstoreId/subscriptions | Retrieve a collection of Commerce subscriptions. |
| /commerce/webstores/webstoreId/subscriptions/actions/initiate-cancellation | Cancel an active Commerce subscription. |
| /commerce/webstores/webstoreId/subscriptions/subscriptionId/saved-payment-methods | Update the saved payment method associated with a specific Commerce subscription. |
Externally Managed Accounts
| Resource | Description |
|---|---|
| /commerce/webstores/webstoreId/external-managed-accounts | Get a collection of externally managed accounts. |
Extensions
| Resource | Description |
|---|---|
| /commerce/extension/extensions | Get a collection of Commerce extensions available for your org. |
| /commerce/extension/providers | Get Commerce extension providers or register a Commerce extension provider. |
| /commerce/extension/providers/providerId | Get, delete, or modify a Commerce extension provider. |
| /commerce/extension/mappings | Get and set extension provider mappings, which associate an extension provider with a webstore. |
| /commerce/extension/mappings/mappingId | Delete, get, or modify a Commerce extension mapping. |
Import
| Resource | Description |
|---|---|
| /commerce/management/import/category/jobs | Create a job to asynchronously import category data using a .csv file. |
| /commerce/management/import/category/jobs/jobId | Cancel or get the status of a job to asynchronously import category data using a .csv file. |
| /commerce/management/import/product/jobs | Create a job to asynchronously import product data using a .csv file. |
| /commerce/management/import/product/jobs/jobId | Cancel or get the status of a job to asynchronously import global product data using a .csv file. |
My Profile
For a detailed overview of Commerce My Profile resources and a sample use case, refer to the Salesforce Commerce My Profile API.
| Resource | Description |
|---|---|
| /commerce/webstores/${webstoreId}/myprofile | Retrieve the buyer's account details. Update buyer account details. |
Order Summary
For a detailed overview of Commerce Order Summary resources and a sample use case, refer to the Salesforce Commerce Order Summary APIs.
Composite Products, Products, Product Categories, Product Searches
| Resource | Description |
|---|---|
| /commerce/management/webstore/${webstoreId}/composite-products | Add a product to your store and associate it with the specified category and media records. |
| /commerce/management/webstore/${webstoreId}/composite-products/${productId} | Update an existing product record with the specified category and media records. |
| /commerce/management/webstore/${webstoreId}/composite-variations | Create variation products with media and pricing details for a given parent product. |
| /commerce/webstores/webstoreId/products | Get fields and default images for a list of products. |
| /commerce/webstores/webstoreId/products/productId | Get a product. |
| /commerce/webstores/webstoreId/products/productId/children | Get a collection of child products related to a parent product. |
| /commerce/webstores/webstoreId/product-categories/children | Get product categories for a specific parent product category or get all the top-level product categories for the store. |
| /commerce/webstores/webstoreId/product-categories/productCategoryId | Get a product category. |
| /commerce/webstores/webstoreId/product-category-path/product-categories/productCategoryId | Get the product category path from the root category to the current category. |
| /commerce/webstores/webstoreId/search/products | Search products by search term or category in a webstore. |
| /commerce/webstores/webstoreId/search/product-search | Search products. |
| /commerce/webstores/webstoreId/search/sort-rules | Get sort rules for the live index. |
| /commerce/webstores/webstoreId/search/suggestions | Get suggestions for product searches. |
Product Prices, Promotions
For a detailed overview of Commerce Pricing and Promotions resources and a sample use case, refer to the Salesforce Commerce Pricing and Promotions APIs.
| Resource | Description |
|---|---|
| /commerce/webstores/webstoreId/pricing/products/productId | Get the list and buyer price for a product. |
| /commerce/webstores/webstoreId/pricing/products | Get the prices for multiple products. |
| /commerce/promotions/composite-promotions | Create a new promotion and all of the associated objects, including segments, qualifiers, targets, and translations. The API returns the ID of the created promotion. Retrieve the details of a specified promotion. |
| /commerce/promotions/actions/evaluate | Determine which promotions the customer is eligible for based on the store and buyer group, and compute the applicable price adjustments based on the coupons and the items in the cart. This API evaluates only the first 50 active manual promotions and first 50 active automatic promotions, based on priority. This API computes and returns applicable price adjustments, but it does not apply those adjustments to the webcart record. If you want to enable promotions based on shipping, contact Salesforce Customer Support. |
| /commerce/promotions/actions/evaluate-products | Determine which promotions apply to a product or set of products, and compute the applicable price adjustments. This API evaluates discrete products, including product variants and independent products but not parent products. Domain dependent and independent use cases are both supported. For example, a domain dependent call uses webstoreId and effectiveAccountId to evaluate products in a cart based on internal products or product categories. A domain independent call uses an external dataset based on SKUs or product categories. |
| /commerce/promotions/actions/decrease-use/coupon-codes | Get coupon code redemption usage to revert a previously redeemed coupon code. |
| /commerce/promotions/actions/increase-use/coupon-codes | Get coupon code redemption addition (increase) usage. |
Taxes
For a detailed overview of Commerce Taxes resources and a sample use case, refer to the Salesforce Commerce Tax APIs.
| Resource | Description |
|---|---|
| /commerce/webstores/webstoreId/taxes/actions/calculate-taxes | Calculate taxes for a Commerce webstore. |
| /commerce/webstores/webstoreId/taxes/products/productId | Get taxes for a product based on the store, state, country, and buyer account or guest profile ID. |
Wishlists
For a detailed overview of Commerce Wishlists resources and a sample use case, refer to the Salesforce Commerce Wishlists APIs.
| Resource | Description |
|---|---|
| /commerce/webstores/webstoreId/wishlists | Get wishlists and create a wishlist. |
| /commerce/webstores/webstoreId/wishlists/wishlistId | Get, update the name of, and delete a wishlist. |
| /commerce/webstores/webstoreId/wishlists/wishlistId/actions/add-wishlist-to-cart | Add a wishlist to a cart. |
| /commerce/webstores/webstoreId/wishlists/wishlistId/wishlist-items | Get wishlist items or add items to the wishlist. |
| /commerce/webstores/webstoreId/wishlists/wishlistId/wishlist-items/wishlistItemId | Delete a wishlist item. |
Search Settings
For a detailed overview of Commerce Search Settings resources and a sample use case, refer to the Salesforce Commerce Search Settings APIs.
| Resource | Description |
|---|---|
| /commerce/management/webstores/webstoreId/search/attribute-settings/facetable-fields | Get and update facetable attributes. |
| /commerce/management/webstores/webstoreId/search/attribute-settings/searchable-fields | Get and update searchable attributes. |
| /commerce/management/webstores/webstoreId/search/boost-bury-rules | Get all boost and bury rules for a webstore. Create a boost and bury rule. You can create up to 25 boost and bury rules for a webstore, and each boost and bury rule supports a limit of 100 products. You can use up to 500 unique products across all boost and bury rules. |
| /commerce/management/webstores/webstoreId/search/boost-bury-rules/ruleId | Get a boost and bury rule. Delete a boost and bury rule. |
| /commerce/management/webstores/webstoreId/search/indexes | Get indexes and create an index of a product catalog. |
| /commerce/management/webstores/webstoreId/search/indexes/indexId | Get a search index. |
| /commerce/management/webstores/webstoreId/search/index-logs | Get search index logs for a webstore. |
| /commerce/management/webstores/webstoreId/search/product-settings | Get and update product search settings. |
| /commerce/management/webstores/webstoreId/search/results-rules | Create or retrieve search include rules for a webstore. You can create up to 25 rules for a webstore. Search include rules are not configurable in the UI. |
| /commerce/management/webstores/webstoreId/search/sort-rules | Create or retrieve sort rules for a webstore. |