[
{
"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...
{
"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.
Create Line Item error Property values were not valid
SOLVE
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!!
POST /crm-objects/v1/objects/line_items with the following POST body
[
{
"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?
Create Line Item error Property values were not valid
SOLVE
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!!