[Vtigercrm-developers] Creating quotes via webservice

Sukhdev Mohan s.mohan at myti.it
Fri Oct 23 10:42:18 GMT 2020


Hi,

You need to add LineItems to the array you are sending. It’s an array with productid, quantity and unit_price attributes.



Best Regards,
Sukhdev Mohan | Software Developer



> Il giorno 23 ott 2020, alle ore 12:33, Chris Landa <stylesuxx at gmail.com> ha scritto:
> 
> I have problems creating quotes via web service on vTiger 7.3
> productid is a required field, which does not make sense to me, since I want to add multiple products to the quote - I would expect a field with Line items here or something similar.
> 
> Anyway, even when adding the productid property a quote is not created. Instead I get an empty 200 response.
> 
> What am I missing here?
> 
> This is the element I am passing:
> 
> $quote = array(
>       'subject' => 'Subject 1234',
>       'quotestage' => 'Created',
>       'account_id' => '11x43',
>       'contact_id' => '12x37',
>       'assigned_user_id' => '19x1',
>       'bill_street' => 'Bill street',
>       'ship_street' => 'Bill street',
>       'productid' => '14x39',
> );
> 
> Kind regards,
> Chris
> _______________________________________________
> http://www.vtiger.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20201023/eb6faac9/attachment.html>


More information about the vtigercrm-developers mailing list