client-nodejs
client-nodejs copied to clipboard
addAProduct doesn't set prices
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?
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.
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.
Hey :) Thank you, better later than never, waiting for the resolution 👍