There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API Keys are being deprecated and are no longer supported. Continued use of HubSpot API Keys is a security risk to your account and data. Your API Keys could be deactivated at any time after Nov. 30th, and we recommend that you migrate to Private Apps as soon as possible so you do not lose business-critical functionality.

Get a line item by ID

Last updated September 28, 2020

GET  /crm-objects/v1/objects/line_items/:id

Method Details

HTTP Methods:

GET

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Sales Professional

Required Scope:

e-commerce

Get a specific line item by its ID.

By default, the response will only include the ID. You can get specific properties in the response by using the &properties= parameter in the URL, and that parameter can be included multiple times to get multiple properties. See the example for more details.

Required Parameters How to use Description
OAuth Access Token or API Key Authorization: Bearer {token} header or hapikey={key} query parameter. Used to authenticate the request. Please see this page for more details about authentication.
Line item ID :id
Used in the request URL
The ID of the line item you want to get.

Optional Parameters How to use Description
Line item properties &properties=
Used in the request URL
By default, only the ID.  You can include other properties in the response by requesting them in the URL. This parameter can be included multiple times to request multiple properties. See the example for more details.
Line item properties (with history) &propertiesWithHistory=
Used in the request URL
This parameter behaves exactly like the properties parameter above, with the exception that properties included with this parameter also return the full version history for the property.
Include deleted includeDeletes=true
Used in the request URL
By default, deleted records will not be returned by the API. You can include this parameter to make sure that records are returned even when they are deleted.