# Create Line Item error Property values were not valid

**URL:** <https://community.hubspot.com/t/create-line-item-error-property-values-were-not-valid/24193>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [August 13, 2020, 10:45pm UTC](https://community.hubspot.com/t/create-line-item-error-property-values-were-not-valid/24193 "2020-08-13T22:45:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kjphilips](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kjphilips/32/84335_2.png) [@kjphilips](https://community.hubspot.com/u/kjphilips)\
**Post date:** [August 13, 2020, 10:45pm UTC](https://community.hubspot.com/t/create-line-item-error-property-values-were-not-valid/24193/1 "2020-08-13T22:45:17Z")

</div>

I am trying to create new line items

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Flegacy%2Fcrm-line-items-v1%2Fget-crm-objects-v1-objects-line-items-paged)**

{{uri}}/crm-objects/v1/objects/line\_items?hapikey={{hapikey}}  
My request looks like the example

```lia-code-sample
[
 {
 "name": "hs_product_id",
 "value": "1642736"
 },
 {
 "name": "quantity",
 "value": "50"
 },
 {
 "name": "price",
 "value": "9.50"
 },
 {
 "name": "name",
 "value": "A custom name for the product for this line item. Discounting 5% on bulk purchase."
 }
]

```

My response is…

```lia-code-sample
{
 "validationResults": [
 {
 "isValid": false,
 "message": "\"ip __ecomm_bridge__ ecomm_synced\" is a read only property; its value cannot be set.",
 "error": "READ_ONLY_VALUE",
 "name": "ip __ecomm_bridge__ ecomm_synced"
 },
 {
 "isValid": false,
 "message": "\"ip __ecomm_bridge__ source_app_id\" is a read only property; its value cannot be set.",
 "error": "READ_ONLY_VALUE",
 "name": "ip __ecomm_bridge__ source_app_id"
 },
 {
 "isValid": false,
 "message": "\"ip __ecomm_bridge__ source_store_id\" is a read only property; its value cannot be set.",
 "error": "READ_ONLY_VALUE",
 "name": "ip __ecomm_bridge__ source_store_id"
 }
 ],
 "status": "error",
 "message": "Property values were not valid",
 "correlationId": "8783972a-b65c-404d-9ea2-1770eda85ca0"
}

```

the properties exist in the product the products exists and the hs\_product\_id is correct it almost looks like the example request is written wrong like I am trying to update the hs\_product\_id any help would be much appreciated.

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [August 17, 2020, 6:54am UTC](https://community.hubspot.com/t/create-line-item-error-property-values-were-not-valid/24193/2 "2020-08-17T06:54:27Z")

</div>

Hey @kjphilips,

Just to clarify, you sent a API request to

POST /crm-objects/v1/objects/line\_items with the following POST body

```lia-code-sample
[
 {
 "name": "hs_product_id",
 "value": "1642736"
 },
 {
 "name": "quantity",
 "value": "50"
 },
 {
 "name": "price",
 "value": "9.50"
 },
 {
 "name": "name",
 "value": "A custom name for the product for this line item. Discounting 5% on bulk purchase."
 }
]

```

but you’re receiving the read only property; value cannot be set error?

If so, could you share with me the portal ID that you’re attempting to create the line item on?

---

<div class="post-metadata">

**Author:** ![kjphilips](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kjphilips/32/84335_2.png) [@kjphilips](https://community.hubspot.com/u/kjphilips)\
**Post date:** [August 17, 2020, 1:47pm UTC](https://community.hubspot.com/t/create-line-item-error-property-values-were-not-valid/24193/3 "2020-08-17T13:47:00Z")

</div>

Turned out that the products I was trying to link with the endpoint mentioned above were created with the Ecommerce Bridge. We are in the process of updating the exisitng codebase with our own and I was unaware that this was a limitiation. Working with your support team they found the issue and I was able to redirect on our develpment.

We created products with the v3 api and evrything seems to be working now, Thanks!!
