Hi there!!!
I’m exercising Hubspot API to create a quote. I was able of creating a quote, including most of the fields within the quote. But I am unable of selecting a template for the quote, so it can not be finished.
I’m programming in javascript and when creating the quote I fetch to the URL ‘https://api.hubapi.com/crm/v4/objects/quotes’ for creating the quote. It works.
In the payload I include next properties:
properties: {
hs_title: `Title`,
hs_expiration_date: date_selected,
hs_comments: comments_selected,
hs_status: “DRAFT”,
hs_template_type: “QUOTE”,
hs_language: “es”,
hs_sender_firstname: ‘Romeo’,
hs_sender_lastname: ‘Santos’,
hs_sender_jobtitle: ‘Account Manager’,
hs_sender_company_name: ‘Company’,
hs_sender_email: ‘roma@paris.com’,
hs_sender_company_address: “Street 1223”,
hs_sender_company_city: “City”,
hs_sender_company_zip: “12345”,
hs_sender_company_country: “XXX”,
hs_currency : ‘EUR’
}
All the fields are correctly placed in the quote and quote is created as draft, but no template is selected.
I have tried both:
hs_template_type: “CUSTOMIZABLE_QUOTE_TEMPLATE”
hs_template_type: “QUOTE”
But none is working. When checking the created quote in the Hubspot web, it appears linked to the deal, but the template appears empty, pending to be selected.
How can I select a template to be added to the quote? What should I update or change for this purpose?