commerce-sdk
Advanced tools
Changelog
v2.10.0
CDN Zones API
New Endpoints
| Endpoint Name | Description | | ------------- |-------------| | validateCustomHostname | Restart the validation checks for a given custom hostname for a particular zone |
Shopper Login
New Endpoints
| Endpoint Name | Description | | ------------- |-------------| | getSessionBridgeAccessToken | Get a shopper JWT access token for a registered customer using session bridge | | getTrustedAgentAuthorizationToken | Obtains a new agent on behalf authorization token for a registered customer | | getTrustedAgentAccessToken | Get a shopper JWT access token for a registered customer using a trusted agent (Merchant) |
Changelog
v2.9.0
CDN Zones API
Removal of non operational endpoint workerUpdate
New Endpoints
| Endpoint Name | Description | | ------------- |-------------| | createStorefrontZone | Create a new storefront zone | | cachePurge | Request to purge the cache for the host given in the request body | | toggleOcapiCachingPageRule | Request to enable or disable OCAPI Caching page rule | | addCertificateForZone | Add Certificates For Zone |
Orders API
New Endpoints
| Endpoint Name | Description | | ------------- |-------------| | createOrders | Create an order in the Commerce Cloud platform by passing the order as json payload in the body of the POST request |
Shopper Login (SLAS) Admin
retrieveTenants
and deleteTenant
getPasswordResetToken
and resetPassword
Changelog
v2.8.0
fetchOptions
are able to be passed to modify the fetch call behaviorShopper Login
New Endpoints
| Endpoint Name | Description | | ------------- |-------------| | getPasswordResetToken | Request a reset password token | | resetPassword | Creates a new password |
README
has been updated to reflect support for Node 16 LTSChangelog
v2.7.1
Sample data has been updated to use inclusive language.
Changelog
v2.7.0
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). |
Changelog
v2.6.1
Content-Type
header is now set for all requests with payloads, enabling the Shopper Login endpoints to work as expected.Changelog
v2.6.0
CDN Zones
| Endpoint Name | Description | | ------------- |-------------| | workerUpdate | Updates the worker for the zone to the specified version |
Shopper Baskets
| 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
| 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.</br></br>Mandatory fields for <b>Trusted On Behalf Of</b> to get an access token are grant_type, hint, login_id, login_origin, and channel_id.</br></br>Valid grant type for <b>Trusted On Behalf Of</b> is <i>client_credentials.</i></br></br>For<b>Trusted System External On Behalf Of</b> a basic auth authorization header of SLAS client id and SLAS client secret should be used in place of the bearer Token.</br></br>For <b>Trusted System Internal On Behalf Of </b>the authorization header bearer token should be a C2C JWT.</br> |
SLAS Admin
| Endpoint Name | Description | | ------------- |-------------| | retrieveCredQuailtyStats | Retrieve credential quality statistics for a user. | | retrieveCredQuailtyUserStats | Retrieve credential quality statistics for a tenant. |
Changelog
v2.5.1
FacetRequest
to the QueryInput
typegetTrustedSystemAccessToken
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.