GET
/
crm-objects
/
v1
/
objects
/
line_items
/
paged
Get all line items
curl --request GET \
  --url https://api.hubapi.com/crm-objects/v1/objects/line_items/paged
[
  {
    "versions": [
      {
        "name": "hs_product_id",
        "value": "1642736",
        "sourceVid": []
      }
    ],
    "value": "1642736",
    "timestamp": 0,
    "source": null,
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "hs_product_id",
        "value": "1645187",
        "sourceVid": []
      }
    ],
    "value": "1645187",
    "timestamp": 0,
    "source": null,
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "quantity",
        "value": "50",
        "timestamp": 1525367734768,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "50",
    "timestamp": 1525367734768,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "price",
        "value": "9.50",
        "timestamp": 1525367734768,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "9.50",
    "timestamp": 1525367734768,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "name",
        "value": "A custom name for the product for this line item. Discounting 5% on bulk purchase.",
        "timestamp": 1525368457923,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "A custom name for the product for this line item. Discounting 5% on bulk purchase.",
    "timestamp": 1525368457923,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "hs_product_id",
        "value": "1642736",
        "sourceVid": []
      }
    ],
    "value": "1642736",
    "timestamp": 0,
    "source": null,
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "quantity",
        "value": "15",
        "timestamp": 1525368534412,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "15",
    "timestamp": 1525368534412,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "price",
        "value": "100.00",
        "timestamp": 1525368534412,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "100.00",
    "timestamp": 1525368534412,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "name",
        "value": "Magical widgets - special order",
        "timestamp": 1525368534412,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "Magical widgets - special order",
    "timestamp": 1525368534412,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "hs_product_id",
        "value": "1645187",
        "sourceVid": []
      }
    ],
    "value": "1645187",
    "timestamp": 0,
    "source": null,
    "sourceId": null
  }
]

Required Scopes

This API requires one of the following scopes:
  • e-commerce

Response

200 - application/json

Successful response - Get all line items from an account, up to 100 per request

The response is of type object.