# Retrieve associated line items with changed price

**URL:** <https://community.hubspot.com/t/retrieve-associated-line-items-with-changed-price/89948>\
**Category:** APIs & Integrations\
**Tags:** professional, webhooks\
**Created:** [September 19, 2023, 1:07pm UTC](https://community.hubspot.com/t/retrieve-associated-line-items-with-changed-price/89948 "2023-09-19T13:07:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![julevdl](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@julevdl](https://community.hubspot.com/u/julevdl)\
**Post date:** [September 19, 2023, 1:07pm UTC](https://community.hubspot.com/t/retrieve-associated-line-items-with-changed-price/89948/1 "2023-09-19T13:07:19Z")

</div>

Hey,

I need to retrieve the associated line\_items for a specific deal. I know this can be done by calling /crm/v3/objects/deals/{record\_id}/associations/line\_items  
and then crm/v3/objects/line\_item/{line\_item\_id}

However, if my colleagues will change the price of the item attached to the deal I will not know this by reading the general line\_item from the product catalogue.  
Does anyone know if the actual line\_item attached including it’s potentially modified price / properties is somehow retrievable?

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [September 20, 2023, 4:04am UTC](https://community.hubspot.com/t/retrieve-associated-line-items-with-changed-price/89948/2 "2023-09-20T04:04:04Z")

</div>

Hi @julevdl 👋

Have you tried using the “propertiesWithHistory” request parameter? This gives you visibility on property value changes over time. For example:

- **GET** [https://api.hubapi.com/crm/v3/objects/LINE\_ITEM/:LINE\_ITEM\_ID?propertiesWithHistory=price](https://api.hubapi.com/crm/v3/objects/LINE%5C_ITEM/:LINE%5C_ITEM%5C_ID?propertiesWithHistory=price)
  - _Where :LINE\_ITEM\_ID is replaced by the relevant Line Item record ID_

- **Header** :
  - Accept: application/json
  - Authorization: Bearer _{{your\_access\_token}}_

- **Example response** :

```lia-code-sample
{
 "id": "123",
 "properties": {
 "amount": "15.000",
 "createdate": "2023-09-20T03:45:13.518Z",
 "hs_lastmodifieddate": "2023-09-20T03:48:54.276Z",
 "hs_object_id": "123",
 "hs_product_id": "987",
 "quantity": "1"
 },
 "propertiesWithHistory": {
 "price": [
 {
 "value": "15",
 "timestamp": "2023-09-20T03:48:54.276Z",
 "sourceType": "CRM_UI",
 "sourceId": "userId:13579",
 "updatedByUserId": 13579
 },
 {
 "value": "10",
 "timestamp": "2023-09-20T03:45:13.518Z",
 "sourceType": "CRM_UI",
 "sourceId": "userId:13579",
 "updatedByUserId": 13579
 }
 ]
 },
 "createdAt": "2023-09-20T03:45:13.518Z",
 "updatedAt": "2023-09-20T03:48:54.276Z",
 "archived": false
}

```

Where example Line Item ID is “123” and Line Item “Price” was changed from 10 to 15. This parameter can also be specified when interacting with the “List”

(within querystring)

and “Read a batch of”

(within request body)

_{Object-type}_ API endpoints.

I hope this proves useful. Please let me know if you have any follow-up questions.
