# Quote Creation API wrong URL

**URL:** <https://community.hubspot.com/t/quote-creation-api-wrong-url/96245>\
**Category:** APIs & Integrations\
**Tags:** zapier\
**Created:** [December 15, 2023, 10:38pm UTC](https://community.hubspot.com/t/quote-creation-api-wrong-url/96245 "2023-12-15T22:38:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JFenchel](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@JFenchel](https://community.hubspot.com/u/JFenchel)\
**Post date:** [December 15, 2023, 10:38pm UTC](https://community.hubspot.com/t/quote-creation-api-wrong-url/96245/1 "2023-12-15T22:38:17Z")

</div>

We are using Zapier to create quotes using API calls because we don’t have custom code in Hubspot.

Here is our code that creates the quote

var url = ‘[https://api.hubapi.com/crm/v3/objects/quotes](https://api.hubapi.com/crm/v3/objects/quotes)’;

var data = {

properties: {

hs\_title: 'Subscription Quote: ’ + inputData.dealName,

hs\_expiration\_date: Date.parse(inputData.expirationDate),

hs\_status: “DRAFT”,

hs\_language: “en”,

hs\_sender\_email: inputData.ownerEmail },

associations: [ { to: {

id: 269679940438

},

types: [ { associationCategory: “HUBSPOT\_DEFINED”,

associationTypeId: 286 } ]

} ] };

var options = {

method: ‘POST’,

headers: {

‘Authorization’: ‘auth-key’

‘Content-Type’: ‘application/json’ },

body: JSON.stringify(data) };

var response=await fetch(url, options);

var data=await response.json();

return data;

The quote template with ID 269679940438 has url [invoices.ourdomain.com](http://invoices.ourdomain.com)

But the quote gets created with url [blog.ourdomain.com](http://blog.ourdomain.com).

If I either recall and edit the quote or create a quote manually it has the correct url

It looks like whenever I create a new quote template it defaults to [blog.ourdomain.com](http://blog.ourdomain.com) and then I change it to [invoice.ourdomain.com](http://invoice.ourdomain.com), does that have anything to do with why the API calls are giving the quotes the wrong domain? Is there a way to change the default quote URL?
