# Quotes API - Automatically set 'Your info'

**URL:** <https://community.hubspot.com/t/quotes-api-automatically-set-your-info/68477>\
**Category:** APIs & Integrations\
**Created:** [November 3, 2022, 1:01pm UTC](https://community.hubspot.com/t/quotes-api-automatically-set-your-info/68477 "2022-11-03T13:01:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [November 3, 2022, 1:01pm UTC](https://community.hubspot.com/t/quotes-api-automatically-set-your-info/68477/1 "2022-11-03T13:01:02Z")

</div>

Hi everyone,

I’m currently using a workflow to create a quote, associate a deal, associate line items, associate a company and associate a contact.

Everything is working as expected except for the fact that the ‘Your information’ is not set.  
I do not see my personal information in the ‘Your info’ step and the company information is also missing.  
If I create a quote from the UI and select a deal, that data is set automatically.  
What am I missing? I am setting a HubSpot owner ID through the API for my quote.

 ![Schermafbeelding 2022-11-03 om 13.47.56.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/9/69396d8a67bba6bb5577fe2d11a9554badc8d73f.png)

Here is my code:

```lia-code-sample
const axios = require('axios');

exports.main = async (event, callback) => {
 const dealName = event.inputFields['dealname'];
 const ownerID = event.inputFields['hubspot_owner_id'];

 const quoteID = await axios({
 method: 'post',
 url: 'https://api.hubapi.com/crm/v3/objects/quotes',
 headers: { 'Authorization': `Bearer ${process.env.dealtoken}`, 'Content-Type': 'application/json' },
 data: JSON.stringify({
 "properties": {
 "hs_title": dealName,
 "hs_expiration_date": "2023-12-30",
 "hubspot_owner_id": ownerID
 }
 })
 }).then((response) => {
 console.log(`Succesfully created quote ${response.data.id}`)
 return response.data.id
 }).catch((error) => {
 console.log(error.response.data)
	throw new Error(error.response.data.message)
 })

 callback({
 outputFields: {
 quoteID: quoteID
 }
 });
}

```

I am setting the status to ‘DRAFT’ at the end of my workflow.

---

<div class="post-metadata">

**Author:** ![CMcKay](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cmckay/32/80666_2.png) [@CMcKay](https://community.hubspot.com/u/CMcKay)\
**Post date:** [November 3, 2022, 4:27pm UTC](https://community.hubspot.com/t/quotes-api-automatically-set-your-info/68477/2 "2022-11-03T16:27:16Z")

</div>

```lia-code-sample
hs_sender_image_url
hs_sender_company_name
hs_sender_firstname
hs_sender_company_domain
hs_sender_lastname
hs_sender_company_address
hs_sender_email
hs_sender_company_address2
hs_sender_phone
hs_sender_company_city
hs_sender_jobtitle
hs_sender_company_state
hs_sender_company_zip
hs_sender_company_country
hs_sender_company_image_url

```

All these properties aren’t dynamically set based on the hubspot\_owner\_id when creating through the api, they only get set when creating the through the ui, so you’ll have to manually set them. Also something interesting I found while testing is that on quote create the owner will get unassociated after a couple of seconds. Loom as proof: [Quotes - 3 November 2022 | Loom](https://www.loom.com/share/dece8286dce04d59bd62fcb754243567)

I fixed this by immediately after deal creation sending a patch request with the same exact information.

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [November 3, 2022, 4:43pm UTC](https://community.hubspot.com/t/quotes-api-automatically-set-your-info/68477/3 "2022-11-03T16:43:05Z")

</div>

@CMcKay saves the day as usual. Please tell me you are a community champion, cause you definitely deserve to be one.

This should definitely be in the docs.

---

<div class="post-metadata">

**Author:** ![CMcKay](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cmckay/32/80666_2.png) [@CMcKay](https://community.hubspot.com/u/CMcKay)\
**Post date:** [November 3, 2022, 5:03pm UTC](https://community.hubspot.com/t/quotes-api-automatically-set-your-info/68477/4 "2022-11-03T17:03:09Z")

</div>

@Teun Hold up a second, you can accept your own solution? 😜

Not a community champion, more of an above average community respondant, hahaha.

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [November 3, 2022, 5:06pm UTC](https://community.hubspot.com/t/quotes-api-automatically-set-your-info/68477/5 "2022-11-03T17:06:20Z")

</div>

That was a mistake 🤣, but I can not unaccept this as a solution.

If they would count Slack solutions as well, you would be competing with Karsten Köhler.

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [November 3, 2022, 5:07pm UTC](https://community.hubspot.com/t/quotes-api-automatically-set-your-info/68477/6 "2022-11-03T17:07:08Z")

</div>

Oh wait, I can unaccept solutions!

---

<div class="post-metadata">

**Author:** ![CMcKay](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cmckay/32/80666_2.png) [@CMcKay](https://community.hubspot.com/u/CMcKay)\
**Post date:** [November 3, 2022, 5:28pm UTC](https://community.hubspot.com/t/quotes-api-automatically-set-your-info/68477/7 "2022-11-03T17:28:31Z")

</div>

He’s the real deal.
