You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to update Shopper Input using store APIs?

Summary:

Unable to update shopper input using addItemsToCart and updateCartItem actions

Content (required):

We are working on implementing a per-line item shipping address. For this, I'm using a custom shopper input WAT_shippingAddress. When the user selects one of the addresses listed beside the line item, I call 'updateCartItems' action with this added to payload:


shopperInput: {

WAT_shippingAddress: selectedAddressId

}


However, I was getting an error:


Shopper input: WAT_shippingAddress, does not belong to watRod.


I tried setting the shopper input on adding the item to cart, by appending the same into payload of 'addItemsToCart' action. However, I am getting the same error. I verified and made sure the shopper input defined via ccadmin/v1/shopperInputs/WAT_shippingAddress.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!