Our API integration with Pipedrive has worked perfectly for the last year, but we recently realized in the last 2 weeks, that our code that adds products to a deal are now returning errors.
Our investigation in other threads that there was a code push at the end of March that caused other issues with the API.
Our code is in PHP using the composer library. Here is an example.
try {
$pipedrive = new Pipedrive($this->token);
$itemResponse = $pipedrive->deals()->addProduct($id,$product_id, $item_price, $quantity, $options);
} catch (Exception $e) {
return false;
}
The error exception we are getting is “body/product_id must be integer, body/item_price must be number, body/quantity must be number”.
Using the debugger tools we can confirm that product_id is an integer and the item_price and quantity are both numbers. No strings.