List all line items

How to fetch a collection of line items via API

To fetch a collection of line items, send a GET request to the /api/line_items endpoint.

Request

GET https://yourdomain.commercelayer.io/api/line_items

Example

The following request fetches a collection of line items:

curl -g -X GET \
  'https://yourdomain.commercelayer.io/api/line_items/' \
  -H 'Accept: application/vnd.api+json' \
  -H 'Authorization: Bearer your-access-token'