Poq.SDK.Node

Home > @poq/sdk-sfcc > ICartTransferService > transferCartToSfcc

ICartTransferService.transferCartToSfcc() method

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

Parameters

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

Cart transfer response.

Remarks

This method authenticates the user on every execution. It is not suitable for use when there is available and valid TOKEN.