Releases: SalesforceCommerceCloud/commerce-sdk
v2.7.1
Documentation
Sample data has been updated to use inclusive language.
v2.7.0
New APIs
- Shopper Context has been added to the SDK.
API Changes
Shopper Login
-
New Endpoints
Endpoint Name Description authorizePasswordlessCustomer Logs a customer in using Core with their customer profiles loaded in ECOM. Allows the user to authenticate when their identity provider (Core) is down. getPasswordLessAccessToken Evaluate the pwdless_tokenand issue the shopper token (JWT).
v2.6.1
v2.6.0
API Changes
CDN Zones
- New endpoints
| Endpoint Name | Description |
|---|---|
| workerUpdate | Updates the worker for the zone to the specified version |
Shopper Baskets
- New endpoints
| Endpoint Name | Description |
|---|---|
| transferBasket | Transfer the previous shopper's basket to the current shopper by updating the basket's owner. No other values change. You must obtain the shopper authorization token via SLAS, and it must contain both the previous and current shopper IDs. |
| mergeBasket | Merge data from the previous shopper's basket into the current shopper's active basket and delete the previous shopper's basket. This endpoint doesn't merge Personally Identifiable Information (PII). You must obtain the shopper authorization token via SLAS, and it must contain both the previous and current shopper IDs. After the merge, all basket amounts are recalculated and totaled, including lookups for prices, taxes, shipping, and promotions. |
| updatePaymentInstrumentInBasket | Success, the response body contains the basket with the updated payment instrument. |
Shopper Login
- New endpoints
| Endpoint Name | Description |
|---|---|
| retrieveCredQualityUserInfo | Retrieve credential quality statistics for a user. |
| getTrustedSystemAccessToken | Get a shopper JWT/access token for registered customers whose credentials are stored using a third party system. Mandatory fields for Trusted On Behalf Of to get an access token are grant_type, hint, login_id, login_origin, and channel_id. Valid grant type for Trusted On Behalf Of is client_credentials. ForTrusted System External On Behalf Of a basic auth authorization header of SLAS client id and SLAS client secret should be used in place of the bearer Token. For Trusted System Internal On Behalf Of the authorization header bearer token should be a C2C JWT. |
SLAS Admin
- New endpoints
| Endpoint Name | Description |
|---|---|
| retrieveCredQuailtyStats | Retrieve credential quality statistics for a user. |
| retrieveCredQuailtyUserStats | Retrieve credential quality statistics for a tenant. |
v2.5.2
v2.5.1
API Changes
- The Discovery API has added a new optional parameter
FacetRequestto theQueryInputtype - The
getTrustedSystemAccessTokenendpoint has been removed from the Shopper Login API. It was introduced prematurely in v2.4.0 and will be reintroduced in a future release.
v2.5.0
API Changes
- The endpoints
getOrderandgetOrdershave been added to the Orders API.
Enhancements
- The SDK now sends a custom user agent with requests,
commerce-sdk@<version>;.
If you specify your own user agent in the client config, it will be replaced.
If you specify your own user agent when making a request, it will be merged with
the SDK user agent.
v2.4.0
v2.4.0
Moved APIs
- The Shopper Search API is now in the Discovery API family. To maintain
backwards compatibility, the API is also available under the old Search family.
Future changes to the Shopper Search API will only be applied to the version in
the Discovery family.
New APIs
- Shopper Discovery Search has been added to the SDK.
API Changes
Shopper Login
- New endpoints
| Endpoint Name | Description |
|---|---|
| getTrustedSystemAccessToken | Get a shopper JWT/access token, along with a refresh token for registered customers whose credentials are stored using a third party system. |
⚠️ Planned future release will contain breaking changes ⚠️
Due to an issue with the generation of the type definitions, an upcoming release
of the SDK will change type definitions to include namespaces. As this is a
breaking change, a new major version will be released (v3.0.0). Only the names of
the types will change, not their contents or any of the exported code. If you
only use JavaScript, or if you use TypeScript but only import the client classes,
then your usage will not change. You will likely only need to make changes if
you import the type definitions directly.
v2.3.0
** New API **
SLAS (Shopper Login & API Authentication Service) Administration is now supported in the SDK
** API Changes**
Shopper Customers
New operations
registerExternalProfile
getExternalProfile
v2.2.0
** New API **
Shopper Login Authentication Service is now supported in the SDK
** API Changes**
CDN Zones API
- New operations
- getCertificates
- updateCertificates
Shopper Login BETA
-
New operation
- logoutCustomer
-
Operation changed
- authenticateCustomer changed from GET to POST
Catalogs
- New operations
- runCategoryRules
- getCategorizationStatus
- createUpdateRule
- deleteRule
- getCategoryRuleConditions
- deleteCategoryRuleConditions
Products
- New operation
- getCategorizationAttributeDefinitions