curl --request GET \
--url https://api.hubapi.com/crm-objects/v1/objects/products/{id}
"\nExample GET URL:\nhttps://api.hubapi.com/crm-objects/v1/objects/products/1642767\n\nExample response:\n{\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642767,\n \"properties\": {},\n \"version\": 1,\n \"isDeleted\": false\n}\n\nExample GET with properties:\nhttps://api.hubapi.com/crm-objects/v1/objects/products/1642767?properties=name&properties=description&properties=price\n\nExample response:\n{\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642767,\n \"properties\": {\n \"price\": {\n \"versions\": [\n {\n \"name\": \"price\",\n \"value\": \"27.50\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"27.50\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"name\": {\n \"versions\": [\n {\n \"name\": \"name\",\n \"value\": \"A new product\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A new product\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"description\": {\n \"versions\": [\n {\n \"name\": \"description\",\n \"value\": \"A description of this product.\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A description of this product.\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 1,\n \"isDeleted\": false\n}"
Get a specific product by its ID. By default, the response will only include the ID and a few system fields for the product. You can get specific properties in the response by using the properties parameter in the URL, and that parameter can be included multiple times to get multiple properties. See the example for more details.
curl --request GET \
--url https://api.hubapi.com/crm-objects/v1/objects/products/{id}
"\nExample GET URL:\nhttps://api.hubapi.com/crm-objects/v1/objects/products/1642767\n\nExample response:\n{\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642767,\n \"properties\": {},\n \"version\": 1,\n \"isDeleted\": false\n}\n\nExample GET with properties:\nhttps://api.hubapi.com/crm-objects/v1/objects/products/1642767?properties=name&properties=description&properties=price\n\nExample response:\n{\n \"objectType\": \"PRODUCT\",\n \"portalId\": 62515,\n \"objectId\": 1642767,\n \"properties\": {\n \"price\": {\n \"versions\": [\n {\n \"name\": \"price\",\n \"value\": \"27.50\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"27.50\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"name\": {\n \"versions\": [\n {\n \"name\": \"name\",\n \"value\": \"A new product\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A new product\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"description\": {\n \"versions\": [\n {\n \"name\": \"description\",\n \"value\": \"A description of this product.\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"A description of this product.\",\n \"timestamp\": 1525287096980,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 1,\n \"isDeleted\": false\n}"
Successful response - Get a specific product by its ID
The response is of type object
.
Was this page helpful?