Salesforce Commerce B2C

Number of APIs: 116

Salesforce Commerce APIs

SCAPI End2End Shopper Journey

A set of API endpoint calls from all different commerce B2C API domains. Serves as a sample set of call for a shopper journey and is connected to a commerce B2C trial environment.

Shopper Login and API Access Service (SLAS)

This Qodex collection contains 6 use cases that SLAS supports. This collection will show how to get an authorization code, access token, create a shopper basket, place an item in the basket, and then delete the basket using a private SLAS client and a SLAS public client.

  1. Salesforce Commerce API families-SLAS-Session Bridge • Ecom User • Private Client - SLAS - Session bridge - Get JWT for DWSID cookie POST {{HOST}}/shopper/auth/v1/organizations/{{organizationId}}/oauth2/session-bridge/token

  2. Salesforce Commerce API families-SLAS-Session Bridge • Ecom User • Public Client - SFCC - Add to Cart, Get DWSID POST {{ocapi_uri}}/on/demandware.store/Sites-{{ocapi_site}}-Site/{{locale}}/Cart-AddProduct?format=ajax

  3. Salesforce Commerce API families-SLAS Admin - SLAS Admin - create/update private client PUT {{HOST}}/shopper/auth-admin/{{version}}/tenants/{{tenant}}/clients/{{private_client_id}}

  4. Salesforce Commerce API families-SLAS-Session Bridge • Guest User • Private Client - SLAS - Session bridge - Get JWT for DWSID cookie POST {{HOST}}/shopper/auth/v1/organizations/{{organizationId}}/oauth2/session-bridge/token

  5. Salesforce Commerce API families-SLAS-Guest User • Private Client - SLAS - Private Client - Guest - Get Refresh Guest Access Token POST {{HOST}}/shopper/auth/v1/organizations/{{organizationId}}/oauth2/token

  6. Salesforce Commerce API families-SLAS-Session Bridge • Ecom User • Private Client - SFCC - Login-Show, get CSRF GET {{ocapi_uri}}/on/demandware.store/Sites-{{ocapi_site}}-Site/{{locale}}/Login-Show

  7. Salesforce Commerce API families-SLAS Admin - SLAS Admin - retrieve clients GET {{HOST}}/shopper/auth-admin/{{version}}/tenants/{{tenant}}/clients

  8. Salesforce Commerce API families-SLAS Admin - SLAS Admin - delete client DELETE {{HOST}}/shopper/auth-admin/{{version}}/tenants/{{tenant}}/clients/{{public_client_id}}

  9. Salesforce Commerce API families-SLAS-Ecom User • Private Client - SLAS - Private Client - Ecom User - Get Refresh Access Token POST {{HOST}}/shopper/auth/v1/organizations/{{organizationId}}/oauth2/token

  10. Salesforce Commerce API families-SLAS-Guest User • Public Client - SLAS - Public Client - Guest - Authorize GET {{HOST}}/shopper/auth/v1/organizations/{{organizationId}}/oauth2/authorize?redirect_uri={{redirect_url}}&response_type=code&client_id={{public_client_id}}&hint=guest&code_challenge={{PUBLIC_GUEST_CODE_CHALLENGE}}