client-nodejs icon indicating copy to clipboard operation
client-nodejs copied to clipboard

addAProduct doesn't set prices

Open 1valdis opened this issue 3 years ago • 3 comments

I'm trying to create a product with a price:

const result = await pipedrive.ProductsController.addAProduct({ body: {
  name: 'Something',
  active_flag: false,
  prices: [ { currency: 'EUR', price: 123.45 } ],
}});

But the resulting product has empty prices array and doesn't have the price in the UI. What am I doing wrong?

1valdis avatar Mar 12 '21 09:03 1valdis

If I make this same request, but with active_flag: true, the prices are set ccorrectly. So it looks like I can't set prices while creating inactive products? This is an unexpected behavior.

1valdis avatar Mar 12 '21 10:03 1valdis

Hey! Sorry for the late response. Indeed, this seems unexpected, I've contacted the endpoint owners and hopefully this will get fixed in the near future.

RuTsEST avatar Nov 18 '21 13:11 RuTsEST

Hey :) Thank you, better later than never, waiting for the resolution 👍

1valdis avatar Nov 18 '21 15:11 1valdis