Home > @poq/sdk-sfcc > ICartTransferService > transferCartToSfcc
Transfers items from provided cartTransferRequest object to SfccBasket. Basket is created for authenticated or guest user based on parameter authRequest.
Signature:
transferCartToSfcc(authInfo: AuthInfo, authRequest: AuthRequest, cartTransferPayload: CartTransferRequest): Promise<PoqResponse<CartTransferResponse>>;
Parameter | Type | Description |
---|---|---|
authInfo | AuthInfo | Auth information required to complete the request. |
authRequest | AuthRequest | Representing the authentication request type |
cartTransferPayload | CartTransferRequest | Cart transfer data. |
Returns:
Promise<PoqResponse<CartTransferResponse>>
This method authenticates the user on every execution. It is not suitable for use when there is available and valid TOKEN.