Deal wide discount GET/UPDATE not available

I can access the discount per product line, but I cannot get any information about a deal wide discount.
Is there a way to get/update the “additional discount” through the API?

For example in my order I have 1 item with a 20% discount and then I need to apply a 10% order wide discount.


I cannot simply change in my case from 20% to 30% for the line, because the final value would be wrong, in this particular case the formula would be 1 - (((12.5 * 600) * (1 - 0.2)) * (1 - 0.1)) / (12.5 * 600)) = 0.28, so in this case to “fake apply” a 10% discount to a 20% discount I’d need to change it to 28% but I don’t want that anyway as I lose context information.

2 Likes

Hello, have you received any response?

Hi all!

Recently, deal discounts API have been added as part of V2 (Link).

The 4 available endpoints are:

  • Get all discounts of a Deal
  • Add a discount to a Deal
  • Update a Discount to a Deal
  • Delete a Discount from a Deal

Hope it helps.

Hi It gives an error
response: {“success”:false,“error”:“Scope and URL mismatch”,“errorCode”:403,“error_info”:“Please check developers.pipedrive.com”}

I didn’t found the scope related to discounts

I am also getting the same error ie: response: {“success”:false,“error”:“Scope and URL mismatch”,“errorCode”:403,“error_info”:“Please check developers.pipedrive.com”} when trying to access: /api/v2/deals/{id}/discounts.

Additionally I cant see that api in the scopes list: Scopes and permission explanations.

I dont have any issues in using the other GET apis ifor deals.

Is there something I need to do?