Introducing the Chargebee CLI

Prerequisites for generating a checkout link via the HubSpot automation trigger

Problem statement

Users may face issues when generating checkout links via HubSpot automation if required conditions are not met in the HubSpot CRM. To ensure successful link generation, specific contact, company, deal, and line item configurations must be in place.

Solution

To generate a Chargebee checkout link using the Create Checkout Link automation trigger in HubSpot, configure the following prerequisites:

Steps to set it up

Step 1: Configure the contact

  1. Go to the contact record in HubSpot.
  2. Set the Primary Contact and Billing Contact dropdown properties to Yes.
  3. Save the changes.

Step 2: Associate the contact with a company

  1. Open the related Company record in HubSpot.
  2. Verify that the contact (marked as primary and billing) is listed under Contacts.

Step 3: Associate the company with a deal

  1. Open the relevant Deal record.
  2. Ensure the company is associated and marked as PRIMARY.

Step 4: Add line items to the deal

  1. Add at least one line item to the deal.

  2. Ensure the line item uses either a Flat-priced or Unit-priced model.

    • Not supported: Tiered or stairstep pricing.
  3. If tiered pricing is required, use the manual Create Subscription option from the deal.

Step 5: Set the deal type

  1. In the deal properties, set the Deal Type to either:
    • New
    • Existing

Step 6: Trigger the automation

  1. Once all the above configurations are complete, select the Create Checkout Link automation trigger.
  2. Refresh the page.
  3. A Chargebee checkout link is generated and automatically appended to the deal.

Additional information

Reference video: How a checkout link is created