Hi there, hope everything is good!
I’m trying to clone a deal using the Freshsales Suite’s (CRM) API. I need to clone a deal inserting new products and information in the deal to be cloned, however when a send a request to the clone api (api/deals/[id]/clone
) with the body including the product, like so:
{
"name": "cloned deal",
...
"products": [
{
"product_id": 16000092053,
"unit_price": 1.0,
"quantity": 1,
"discount": 0.0
}
]
}
I receive the following message:
{
"errors": {
"code": 400,
"message": [
"The product you are looking may not be available in Freshsales or you don't have the permission to access it."
]
}
}
I have Admin. role in my Freshsales, and the products I’m referring to, exists.
Whenever I send the request without the products, it works. So I imagine that it’s not possible to send the products like I’m doing. If so, is there no other way of cloning a deal and at the same time inserting new products?
Thanks!