commerce-sdk-isomorphic
Advanced tools
Changelog
v1.10.4
expand
query parameter for getProduct
endpoint as optional instead of requiredChangelog
v1.10.3
expand
query parameter for shopper-products
retrieveCredQualityUserInfo
endpoint from shopper-login
as this functionality was removed from SLASChangelog
v1.10.2
shopper-login
and shopper-context
operations have been updated on generated documentation siteChangelog
v1.10.0
fetchOptions: {redirect: 'manual'}
as called on the server-side to prevent following of redirects prior to this upgrade had no effect on the client because cross-fetch
used XMLHttpRequest
and was silently ignored. The new approach respects this redirect: 'manual'
directive, potentially causing redirects on the client (given these optional parameters) to not be followed, which breaks flows including the SLAS authorizeCustomer
method, which could fail with an opaqueredirect
error.Shopper Baskets
New Endpoints
| Endpoint Name | Description | | ------------- |-------------| | updateAsAgentBasket | Marks a basket as an agent basket. | | addPriceAdjustmentToBasket | Adds a custom manual price adjustment to the basket. | | removePriceAdjustmentFromBasket | Removes a custom manual price adjustment from the basket. | | updatePriceAdjustmentInBasket | Updates a custom manual price adjustment on the basket. | | updateAsStorefrontBasket | Marks a basket as a storefront basket. |
Changelog
v1.8.0
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) |
channel_id
(siteId
) parameterChangelog
v1.7.1
Changelog
v1.7.0
<API Name>Types
.Example usage:
import {ShopperBaskets, ShopperBasketsTypes} from "commerce-sdk-isomorphic"
const basketsClient = new ShopperBaskets(config)
const basket: ShopperBasketsTypes.Basket = await basketsClient.getBasket({ basketId: "some-basket" })
Changelog
v1.6.0
Shopper Login
New Endpoints
| Endpoint Name | Description | | ------------- |-------------| | getPasswordResetToken | Request a reset password token | | resetPassword | Creates a new password |
loginRegisteredUserB2C
no longer calls redirectURI
when running server sideREADME
updated to explicitly note lack of CORS support for SCAPI