HubSpot Line Items (via hubspot CLI)
Line items are individual priced entries attached to deals, quotes, or invoices. Each line item is usually a reference to a product with a quantity and per-line price override.
Auth
Set HUBSPOT_ACCESS_TOKEN. Optional --profile <name>.
Canonical commands
| Intent | Command |
|---|---|
| List | hubspot crm line-items list --limit 20 |
| Get | hubspot crm line-items get 12345 |
| Create from product | hubspot crm line-items create --properties '{"hs_product_id":"1001","quantity":"3","price":"99.99"}' |
| Create ad-hoc | hubspot crm line-items create --properties '{"name":"Custom service","quantity":"1","price":"2500.00"}' |
| Update quantity | hubspot crm line-items update 12345 --properties '{"quantity":"5"}' |
| Delete | hubspot crm line-items delete 12345 --yes |
| Search | hubspot crm line-items search --filter-groups '[{"filters":[{"propertyName":"hs_product_id","operator":"EQ","value":"1001"}]}]' |
Common properties
name, hs_product_id, quantity, price, amount (computed), discount, tax, hs_recurring_billing_period, hs_line_item_currency_code.
Associating line items
A line item is only useful when attached to a deal or quote:
hubspot crm associations create line_items 12345 deals 67890
hubspot crm associations create line_items 12345 quotes 11111
Scopes
- Read:
e-commerce - Write:
e-commerce
Tips
- Prefer referencing a product via
hs_product_idover re-enteringname/priceso catalog updates propagate. - All numeric properties are strings:
"quantity": "3", not3.