Quote Creation API wrong URL

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’;

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

But the quote gets created with url 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 and then I change it to 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?