System Overview
Mixbound Microservice: HubSpot Line Items
Purpose
A HubSpot automation microservice that performs controlled, auditable line-item operations across HubSpot Deals (which sync to Salesforce Opportunities), including duplication, cross-deal copying, renewal generation, and admin-approved transformations (discount rules, SKU mapping, recurring flags, rounding); all exposed via a safe, UI-less API surface triggered by HubSpot workflows and webhooks.
Target Audience
RevOps / SalesOps / GTM Engineering teams managing HubSpot as a primary sales workspace with Salesforce as the downstream system of record for Opportunities.
Important
This service operates exclusively in HubSpot. It does not modify Salesforce or any other integrated CRM directly. Downstream sync to Salesforce Opportunities follows existing HubSpot-Salesforce integration rules.
Core Capabilities
Duplicate Line Items
Clone line items within the same deal with optional quantity/price adjustments
Cross-Deal Copy
Copy line items from one source deal to one or more target deals
Transformation Rules
Apply discount policies, rounding rules, SKU mapping, and recurring flags during copy operations
Timed Renewals
Create renewal deals N days before close/renewal date with configurable carry-over policies
Idempotency & Audit
Every operation keyed by idempotencyKey with full audit trail including actor, transforms applied, and timestamps
Safe API Surface
UI-less REST endpoints triggered by HubSpot workflows, webhooks, or scheduled jobs with partial-success semantics
REST API Surface
/line-items/duplicate
Duplicate line items within a deal
/line-items/copy
Copy line items to target deal(s)
/line-items/copy/transform
Copy with transformation rules
/renewals/schedule
Schedule a timed renewal creation
/renewals/run
Execute pending renewal jobs
/ops/{operation_id}
Retrieve operation audit record
/health
Health check endpoint