Can add/update Deal Products with devio/pipedrive client in PHP

Hello.

with the new release which was done to the endpints of the products =>. Improved validation for products and deal-products endpoints

I can’t update or create products through my code in php. Before everything was working fine. here is the data I pass {“id”:27584,“product_id”:1,“item_price”:50,“quantity”:1,“discount_percentage”:0} and still returns me Devio\Pipedrive\Exceptions\PipedriveException: body/product_id must be integer, body/item_price must be number, body/quantity must be number, body/discount_percentage must be number, body/discount_percentage must be null, body/discount_percentage must match a schema in anyOf in /var/www/vendor/devio/pipedrive/src/Http/Request.php:137

The id is the deal id which then is built in the url param from devio/pipedrive

2 Likes

Have the same problem, have you solved it @aldosheldija?

Not yet, did anyone solve this

1 Like

I have the same issue. Has anyone solved this?

Hi! Looks like the maintainer of devio/pipedrive client has updated the library (implemented the fix) 2 days ago: API break on addProduct to deals · Issue #127 · IsraelOrtuno/pipedrive · GitHub

Could you please try installing the latest version and checking again?

Hello.
I have the same problem. Can’t attach item.
“body/product_id must be integer, body/item_price must be number, body/quantity must be number”
I use postman. Also a mistake.
Entered all required fields according to Pipedrive API v1 Reference

Someone solved this?