INTRODUCTION

Morning-HubSpot Integration for Revenue Agent

Glare Marketing Technologies is a marketing and HubSpot consulting agency based in Israel that used Morning for invoicing and HubSpot for customer relationship management.

Starting in July 2026, coinciding with access to the private beta version of the new HubSpot Revenue Agent, OPTI developed a custom Morning-HubSpot integration using webhooks and APIs. The integration synchronizes Glare's invoices, links them to the corresponding individuals and companies, and reconciles subsequent payments.

For this project, carried out during the private beta phase of HubSpot Revenue Agent, OPTI collaborated directly with Glare and the HubSpot team developing the new AI agent, including to clarify the API specifications required for external invoices. The integration was developed based on requirements provided directly by the HubSpot team. The solution has been operational for Glare Marketing since September 2026.


Morning
HubSpot
Morning invoicing integration with HubSpot Revenue Agent

CHALLENGES

Integrating Morning external invoicing with Revenue Agent, a HubSpot AI agent in private beta during the summer of 2026.

  1. Invoices were managed outside of HubSpot
    • Morning was generating the billing documents, while the commercial data about the clients was kept in HubSpot.
  2. Prerequisites for HubSpot Revenue Agent (in beta)
    • The AI agent required data on open invoices, including outstanding balance, due date and currency, as well as associations with contacts or companies. Also, the external invoices provided a link for the client to view and pay them, which required the HubSpot property hs_external_invoice_link for the Invoice object.
  3. The collection documents were distinct items
    • Morning payment proofs had to follow the invoices, including within HubSpot, without duplicating them.
  4. Updating balances after partial payments
    • Once an invoice is finalized, HubSpot internally tracks the outstanding balance and the amount paid. Partial or future payments from Morning required a reconciliation method using HubSpot payment objects.
Daniel Curculescu
"The most important feature was ensuring the invoice status remained accurate following subsequent partial payments. HubSpot manages the balances of finalized invoices internally, so we utilized payment objects and their associations. Furthermore, it was a great experience to work directly with the HubSpot Revenue Agent team on a feature that is still officially in beta."
Daniel Curculescu, Data Engineer

SOLUTION

An API integration that preserves financial logic with clean data for the HubSpot Revenue Agent.

  1. Invoice synchronization upon issuance

    • We implemented a workflow triggered by Morning webhooks. Upon issuance, the integration retrieves the necessary data and creates an Invoice record in HubSpot, complete with identifier tracking and mappings.
    Morning invoices synchronized in HubSpot, with Integration record source and external payment link
    Invoices with anonymized property details, including an external payment link.
  2. Creating invoices in the HubSpot order

    • The integration creates invoices by following a specific sequence of stages. First, an invoice is generated in a "draft" state; then, the contact, company and content are associated with it; finally, it is marked as either "open" or "paid". This sequence ensures accurate data for the Revenue Agent, which tracks revenue by company.
  3. Reconciliation of full and partial payments

    • We implemented payment reconciliation using HubSpot payment objects (commerce_payments) and Morning relationships (linkedDocuments). Instead of creating a new invoice upon a partial payment, a payment object is recorded for the amount paid and associated with the existing invoice.
    Paid HubSpot invoice with three associated payments
    Multiple payments recorded on the same HubSpot invoice.

Direct collaboration with HubSpot

  • July 30: HubSpot confirms the possibility of integration via API and provides the mandatory properties.
  • August 12: HubSpot confirms the activation of write access for the hs_external_invoice_link property via the API, which is required for connecting to the Morning invoice.
  • August 31: OPTI confirms the integration of external invoices into the HubSpot data model and continues technical validation.

The result of the collaboration: integrating external invoices and payments into Revenue Agent, in accordance with requirements communicated directly by the HubSpot product team.


This case study shows that an AI collections agent is only as good as the financial data it receives: invoices created in the order HubSpot requires, associated with the right contacts and companies, and partial payments reconciled through payment objects, without replacing the existing invoicing system.

ARCHITECTURE

The integration uses Morning as the source for financial documents, an integration service developed by OPTI for processing, along with HubSpot APIs. Revenue Agent will utilize this data.

Architecture: Morning clients, invoices and payments, OPTI integration and synchronization, HubSpot CRM, Invoices and Revenue Agent
Synchronized external invoices for Revenue Agent.

Revenue Agent benefits in HubSpot

  • Monitors eligible open invoices.
  • Creates collection follow-up plans, including communications to clients, based on your configuration and approval settings.
  • Works with invoicing generated within HubSpot or externally (as in this case).
HubSpot Revenue Agent prioritizing overdue invoices for collection
HubSpot Revenue Agent, on the left, suggests collecting invoices.

RESULTS

INVOICES AND PAYMENTS CONNECTED TO HUBSPOT, WITHOUT REPLACING THE INVOICING SYSTEM

Automatic synchronization

Invoices are synchronized automatically, and receipts are reconciled as HubSpot payments.

Financial visibility

Invoices are linked to the corresponding CRM contacts and companies.

Reconciliation of subsequent payments

The integration allows for the handling of full and partial payments via the HubSpot data model.

The payment flow remains in Morning

The integration works without the native HubSpot checkout, keeping the external system in place.

Revenue Agent ready to go

HubSpot's Revenue Agent has the information needed to monitor balances and create collection plans.

Collaboration with HubSpot

We received specifications directly from the Revenue Agent engineers, ahead of the public documentation.


Interested?

Do you use an external invoicing system and want your invoices and payments in HubSpot, ready for AI agents? We analyze your invoicing flow and build the right HubSpot integration. Let's talk.

TECHNOLOGIES AND METHODOLOGY

  • Services: HubSpot integration, automation via API / webhooks, CRM data modeling, invoice synchronization, payment reconciliation, HubSpot AI features.
  • Tech: Morning API and webhooks, HubSpot CRM API v3, HubSpot Associations API v4, HubSpot Invoice and Line Item objects, HubSpot commerce_payments, HubSpot Revenue Agent (in private beta at the time of development), PHP.
  • Methodologies and best practices: analysis of the invoicing workflow, definition of associations between objects, API prototyping, direct clarifications with the HubSpot team, testing and quality assurance.
  • Standards: ISO 9001 (quality), ISO 27001 (information security), ISO 42001 (AI management).

What our clients say

Quick Questions

How do you connect an external invoicing system to HubSpot Revenue Agent?

Through APIs and webhooks: when an invoice is issued in Morning, the integration creates a HubSpot Invoice record with balance, due date, currency, contact and company associations and the external payment link (hs_external_invoice_link), the data Revenue Agent uses for its collection plans.

How are partial payments on external invoices handled in HubSpot?

HubSpot tracks the balance of finalized invoices internally, so the integration does not create a new invoice for each payment. Each Morning payment is recorded as a HubSpot payment object (commerce_payments) and associated with the existing invoice.

Why does the order of invoice creation in HubSpot matter?

The invoice is first created as a draft, then associated with the contact, company and content, and only then marked as open or paid. This sequence ensures complete data for Revenue Agent, which tracks revenue by company.

Do you need to replace your invoicing system to use Revenue Agent?

No. Revenue Agent also works with external invoicing: here, invoicing and the payment flow stay in Morning, without the native HubSpot checkout, while HubSpot receives the data needed to monitor balances.

What is the TLDR (conclusion)?

This case study shows that an AI collections agent is only as good as the financial data it receives: invoices created in the order HubSpot requires, associated with the right contacts and companies, and partial payments reconciled through payment objects, without replacing the existing invoicing system.

Daniel Curculescu

Article written by

Daniel Curculescu

Data Engineer (Google Cloud Certified Professional). CRM Automation, AI, mobile.

See on LinkedIn →

Read more

Interested?

Interested?

Let's talk

Similar stories


Case Study: Invoice Automation with HubSpot & EasyBill Case Study: Invoice Automation with HubSpot & EasyBill
Invoicing time reduced by more than 50%
B2B eCommerce Portals Integrated with SocrateCloud and Pluriva B2B eCommerce Portals Integrated with SocrateCloud and Pluriva
5,000+ B2B customers synchronized with ERP