Set up HubSpot authorization for Postman Flows

To run Postman Flows templates that use HubSpot, you need to set up authorization between HubSpot and Postman. You can do this by creating a private app in HubSpot and storing its access token as an environment variable in Postman.

If you plan to use flow templates that use HubSpot with Stripe, more configuration is required. See Create custom properties for Stripe.

Before you get started, you need:

Create a private HubSpot app

To create and configure a private HubSpot app to use with Postman Flows, do the following:

  1. Log in to your HubSpot account.

  2. Navigate to Settings > Integrations > Private Apps, and then select Create a private app. For detailed instructions, see the HubSpot documentation.

  3. Select the Scopes tab, and then select Add new scope.

  4. Select the checkboxes for the following scopes, based on the HubSpot events you want the flow to access:

    EventsScope
    New contacts, form submissionscrm.objects.contacts.read
    New dealscrm.objects.deals.read
    New ticketstickets
  5. Select Update.

  6. Select the checkboxes for the following subscriptions, based on the HubSpot events you want the flow to access:

    EventsScope
    New contacts, form submissionscontact.creation
    New dealsdeal.creation
    New ticketsticket.creation
  7. Select Create app.

  8. After your app is created, select the app and navigate to Auth.

  9. Select Show token to reveal your app's access token. Select Copy, and then save it as a variable in your Postman environment named HubSpot_Access_Token.

Create custom properties for Stripe

To configure HubSpot to process data from Stripe, create new properties in HubSpot based on the flows you plan to run.

Add new Stripe customers to HubSpot

To configure HubSpot to process data from Stripe about new customers, do the following:

  1. In HubSpot, navigate to Settings > Properties.

  2. Select Contact properties > Create property.

  3. Create the following custom property:

    Property nameField type
    stripe_idSingle-line text

Add new Stripe subscriptions to HubSpot contacts list

To configure HubSpot to process data from Stripe about new subscriptions, do the following:

  1. In HubSpot, navigate to Settings > Properties.

  2. Select Contact properties > Create property.

  3. Create the following custom property:

    Property nameField type
    stripe_idSingle-line text
  4. Navigate to CRM > Lists > Create List.

  5. Select Static list. Enter a name for the list and then save.

  6. After saving, open the list details and locate the List ID.

  7. Copy the ID, and then save it as a variable named HubSpot_Contact_List_ID in your Postman environment.

Create HubSpot deals for new Stripe invoices

To configure HubSpot to process data from Stripe about new invoices, do the following:

  1. In HubSpot, navigate to Settings > Properties.

  2. Select Contact properties > Create property.

  3. Create the following custom property:

    Property nameField type
    stripe_customer_idSingle-line text
  4. Select Deal properties > Create property.

  5. Create the following custom properties:

    Property nameField type
    stripe_collection_methodSingle-line text
    stripe_currencySingle-line text
    stripe_period_endDate picker
    stripe_period_startDate picker
    stripe_totalNumber
    stripe_customer_emailSingle-line text

Create or update HubSpot contacts for new Stripe subscriptions

To configure HubSpot to process data from Stripe about new subscriptions, do the following:

  1. In HubSpot, navigate to Settings > Properties.

  2. Select Contact properties > Create property.

  3. Create the following custom property:

    Property nameField type
    stripe_idSingle-line text

Create or update HubSpot contacts with new Stripe payments

To configure HubSpot to process data from Stripe about new payments, do the following:

  1. In HubSpot, navigate to Settings > Properties.

  2. Select Contact properties > Create property.

  3. Create the following custom properties:

    Property nameField type
    stripe_idSingle-line text
    stripe_customer_idSingle-line text
    stripe_currencySingle-line text
    stripe_amountNumber

Next steps

After you've completed your HubSpot configuration, you can return to the flow template or set up authorization for another integration in Postman.

Last modified: 2024/12/06