Skip to content

Releases: SalesforceCommerceCloud/commerce-sdk

v2.7.1

07 May 00:45
f144aac

Choose a tag to compare

Documentation

Sample data has been updated to use inclusive language.

v2.7.0

28 Jan 20:08
3aa8a96

Choose a tag to compare

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_token and issue the shopper token (JWT).

v2.6.1

18 Jan 16:30

Choose a tag to compare

Bug Fixes

  • The Content-Type header is now set for all requests with payloads, enabling the Shopper Login endpoints to work as expected.

v2.6.0

17 Nov 15:17
e310f1f

Choose a tag to compare

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

21 Sep 21:00

Choose a tag to compare

  • Added support for boolean query parameters.

v2.5.1

15 Sep 20:09
dd56a19

Choose a tag to compare

API Changes

  • The Discovery API has added a new optional parameter FacetRequest to the QueryInput type
  • The getTrustedSystemAccessToken endpoint 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

02 Aug 14:52

Choose a tag to compare

API Changes

  • The endpoints getOrder and getOrders have 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

25 Jun 14:37

Choose a tag to compare

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

22 Apr 16:34
2dd3ecd

Choose a tag to compare

** 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

26 Feb 20:04
e4c3caf

Choose a tag to compare

** 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