Developer forum

Forum » Development » DWAPI add item to cart not working any longer

DWAPI add item to cart not working any longer

Jon Thorne
Jon Thorne
Reply

Hi,

Since v9.13.6 the api to add products to a cart is no longer working (was working in v9.13.5):

/dwapi/ecommerce/carts/{secret}/items

with payload: 

ProductId:{productid}
Quantity: 1

Returns: "The product does not exist."

The product does exist and is active. Is there a new requirement for this API call that I need to know about?

Regards, Jon.


Replies

 
Mikkel Hammer
Mikkel Hammer
Reply

Hi Jon,

Try adding ProductLanguageId to the payload and see if that helps :)

Best regards,
Mikkel Hammer

 
John Broers
Reply

Hi Jon,

I ran into the same problem. For me adding a (empty) ProductVariantId to the payload fixed it.

'ProductId': {ProductId},
'ProductVariantId': '',
'Quantity': 1,
 
BR,
John

 

You must be logged in to post in the forum