sync_config.quote.outbound in the API.
When HubSpot quote sync runs
Flexprice creates a quote when all of these are true:- A subscription is created as a draft.
- The Quotes toggle is on for the HubSpot connection.
- The subscription’s customer has
hubspot_deal_idin its metadata. Customers created by customer sync have it.
What Flexprice creates in HubSpot for a draft subscription
HubSpot quote properties
Flexprice associates the quote with:
- The deal in the customer’s
hubspot_deal_idmetadata. - The contact in the customer’s
hubspot_contact_idmetadata, when it is set. - The first quote template HubSpot returns for your account.
HubSpot only publishes quotes that have a template. If your account has no quote templates, Flexprice creates the quote without one, and you pick a template in HubSpot before publishing.
HubSpot quote line items
Flexprice adds one HubSpot line item for each subscription line item that has a fixed price and is active when the quote is created. Usage-based line items are not added.
These quote line items are separate from the deal line items that deal sync manages. If one line item fails, Flexprice still adds the others.
Every line item gets the subscription’s billing period as its frequency, including one-time charges such as setup fees, so HubSpot shows them as recurring.
Publishing the HubSpot quote
The quote arrives in HubSpot as a draft on the customer’s deal. Open it in HubSpot, check the template, line items, and expiration date, then publish and send it from HubSpot. To make such a quote editable, set its status toDRAFT through HubSpot’s API with your private app’s access token, then add line items in HubSpot. You can also delete the quote and create a new one in HubSpot.

