Skip to main content

Deals

Written by Nick Maxwell

Data Dictionary

Field

Type

Notes

Amount

Number

The Amount in the Currency of the Deal, Derived from text_to_numeric properties.amount

Amount (RC)

Number

The amount of the deal in the home currency for HubSpot (eg the primary currency), Derived from text_to_numeric properties.amount_in_home_currency

Archived

Boolean

True if the Deal has been archived, Derived from text_to_boolean Archived

Associated Companies

JSON

A JSON array that holds the Company ID and Association Type of any Companies associated with this record.

Associated Contacts

JSON

A JSON array that holds the Contact ID and Association Type of any Contacts associated with this record.

Associated Deals

JSON

A JSON array that holds the Deal ID and Association Type of any Deals associated with this record.

Associated Quotes

JSON

API: Array of Associated Quotes.results

Campaign

Text

API: properties.hs_campaign

Closed Amount

Number

The Closed Amount in the Currency of the Deal, Derived from text_to_numeric properties.hs_closed_amount

Closed Amount (RC)

Number

Derived from text_to_numeric properties.hs_closed_amount_in_home_currency

Closed Lost Reason

Text

API: properties.closed_lost_reason

Closed Won Count

Integer

Derived from text_to_bigint properties.hs_closed_won_count

Closed Won Date

Date

Derived from text_to_date properties.hs_closed_won_date and 'YYYY-MM-DD'

Connection Name

Text

The name of the Connection. Typically the name of the HubSpot Organisation., Derived from clean_name Connection Name

Created

Datetime

The date and time that the record was created., Derived from text_to_timestamptz properties.hs_createdate

Created By

Integer

The Owner ID of the person that created the record. Find related details in the Owners table., Derived from text_to_bigint properties.hs_created_by_user_id

Created Date

Date

The date that the record was created. This is useful so you can create a relationship with the Dates table, and analyze data over days, weeks, months and so on., Derived from timestamptz_as_text_to_date properties.hs_createdate

Currency

Text

ISO 3 letter Currency Code for the Deal., API: properties.deal_currency_code

Currency Rate

Number

The rate used to convert between the Deal currency and the home currency., Derived from text_to_numeric properties.hs_exchange_rate

Custom Properties

JSON

Derived from handle_null_json deal.custom_properties

Data current as of

Datetime

Gives the date and time that this record was taken from HubSpot.

Days To Close

Integer

The number of days between the Deal Created Date and Close Won Date, Derived from text_to_bigint properties.days_to_close

Deal ID

Integer

HubSpot's unique ID for the Deal., Derived from text_to_bigint Deal ID

Deal Name

Text

API: properties.dealname

Deal Type

Text

API: properties.dealtype

Description

Text

API: properties.description

Discount Amount

Number

Derived from text_to_numeric properties.discount_amount

Forecast Amount

Number

Derived from text_to_numeric properties.hs_forecast_amount

Forecast Close Date

Date

Derived from timestamptz_as_text_to_date properties.closedate

Forecast Probability

Number

Derived from text_to_numeric properties.hs_forecast_probability

Internal URL

Text

The URL to the Deal record - only available to those that have access to HubSpot., Derived from create_deeplink 'deal' and Deal ID

Is Closed

Boolean

Derived from text_to_boolean Is Closed

Is Closed Won

Boolean

Derived from text_to_boolean Is Closed Won

Manual Forecast Category

Text

API: properties.hs_manual_forecast_category

Next Step

Text

API: properties.hs_next_step

Number Of Line Items

Integer

The numner of line items that have been associated with the Deal, Derived from text_to_bigint properties.hs_num_of_associated_line_items

Order Number

Text

API: properties.order_number

Owner ID

Integer

HubSpot's unique ID for the Owner; The Owner ID of the person that owns/is responsible for the record. Not necessarily the same as the Created By Owner ID. Find related details in the Owners table., Derived from text_to_bigint Owner ID | Derived from text_to_bigint properties.hubspot_owner_id

Owner Name

Text

Derived from concat First Name and Last Name

Pipeline ID

Text

API: properties.pipeline

Pipeline Stage ID

Text

Derived from generate_hash properties.pipeline and properties.dealstage

Predicted Amount

Number

The Predicted Amount in the Currency of the Deal, Derived from text_to_numeric properties.hs_predicted_amount

Predicted Amount (RC)

Number

Derived from text_to_numeric properties.hs_predicted_amount_in_home_currency

Primary Company ID

Integer

If one exists, the Company ID for the primary Company associated with this record. Find related details in the Companies table., Derived from first_id Associated Companies

Primary Contact ID

Integer

If one exists, the Contact ID for the primary Contact associated with this record. There may not be any associated Contact. Find related details in the Contacts table., Derived from first_id Associated Contacts

Primary Deal ID

Integer

If one exists, the Deal ID for the primary Deal associated with this record. Find related details in the Deals table., Derived from first_id Associated Deals

Primary Quote ID

Integer

If one exists, the Quote ID for the primary Quote associated with this record. There may not be any associated Quote. Find related details in the Quotes table., Derived from first_id Associated Quotes

Priority

Text

API: properties.hs_priority

Projected Amount

Number

Derived from text_to_numeric properties.hs_projected_amount

Projected Amount (RC)

Number

Derived from text_to_numeric properties.hs_projected_amount_in_home_currency

Reporting Currency

Text

None

Stage ID

Text

e.g. {appointmentscheduled, closedlost, closedwon, decisionmakerboughtin, presentationscheduled, qualifiedtobuy}, API: properties.dealstage

Stage Probability

Number

The probability of the deal based on the pipeline stage. This is taken from the the pipeline stage and associated probability; e.g. 0.40, Derived from text_to_numeric properties.hs_deal_stage_probability

Tag IDs

Text

Tag Ids, API: properties.hs_tag_ids

Tax Amount

Number

Derived from text_to_numeric properties.tax_amount

Updated

Datetime

The date and time that the record was updated., Derived from text_to_timestamptz properties.None

Updated Date

Date

The date that the record was updated. This is useful so you can create a relationship with the Dates table, and analyze data over days, weeks, months and so on., Derived from timestamptz_as_text_to_date properties.None

Did this answer your question?