Get a group of line items by ID

POST /crm-objects/v1/objects/line_items/batch-read

This endpoint is part of our developer preview program, and should be considered as a non-stable release that will be subject to bugs and breaking changes while under development. Please take this into account as you build against a release. Please subscribe to our changelog for updates.

Method Details

HTTP Methods:

POST

Content Type:

application/json

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Sales Professional

Required Scope:

e-commerce

Get a group of line items by their IDs. Up to 100 IDs can be included in a single request.

By default, the response will only include the ID a few system fields, and the hs_product_id property. 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 IDs "ids": [ {list of IDs} ]
Used in the request JSON
An array of line item IDs that you want to get. You can include up to 100 IDs in a single request.

Optional Parameters How to use Description
Line item properties &properties=
Used in the request URL
By default, only the ID, a few other system fields, and the hs_product_id property are returned. You can include any 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.
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.