Menu
Get Node Products
Get a node's products
GET
/pcm/hierarchies/{hierarchyID}/nodes/{nodeID}/productsUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Get Node Products action (under PIM).
- Fill in the fields below, then reference the result from later steps as
{{getNodeProducts.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getNodeProducts.response.data.<field>}}.
{
"data": [
{
"id": "string",
"type": "product",
"attributes": {
"name": "string",
"description": "string",
"slug": "string",
"sku": "string",
"status": "live",
"commodity_type": "physical",
"upc_ean": "string",
"mpn": "string",
"external_ref": "string",
"locales": {},
"tags": [
"string"
],
"shopper_attributes": {
"cost_of_goods": "42.0",
"charge_type": "credit card"
}
},
"meta": {
"created_at": "2020-09-22T09:00:00.000Z",
"updated_at": "2020-09-22T09:00:00.000Z",
"owner": "organization",
"variations": [
{
"id": "string",
"name": "string",
"sort_order": 0,
"options": [
null
]
}
],
"custom_relationships": [
null
],
"child_variations": [
{
"id": "string",
"name": "string",
"sort_order": 0,
"options": [
null
],
"option": {
"id": null,
"name": null,
"description": null,
"sort_order": null
}
}
],
"product_types": [
"parent"
],
"variation_matrix": {}
},
"relationships": {}
}
],
"included": {
"main_images": [
{
"id": "00000000-0000-0000-0000-000000000000",
"type": "file",
"file_name": "file_name.jpg",
"mime_type": "image/jpeg",
"file_size": 36000,
"public": true,
"meta": {
"timestamps": {
"created_at": "2023-10-11T13:02:25.293Z"
},
"dimensions": {
"width": 1800,
"height": 1000
}
},
"links": {
"self": "https://useast.api.elasticpath.com/v2/files/ddc28c74-a7df-46be-b262-8fa69a6e7d52"
},
"link": {
"href": "https://files-eu.epusercontent.com/e8c53cb0-120d-4ea5-8941-ce74dec06038/f8cf26b3-6d38-4275-937a-624a83994702.png",
"meta": {
"results": {
"total": null
}
}
}
}
],
"component_products": [
{
"id": "string",
"type": "product",
"attributes": {
"name": "string",
"description": "string",
"slug": "string",
"sku": "string",
"status": "live",
"commodity_type": "physical",
"upc_ean": "string",
"mpn": "string",
"external_ref": "string",
"locales": {},
"tags": [
"string"
],
"shopper_attributes": {
"cost_of_goods": "42.0",
"charge_type": "credit card"
}
},
"meta": {
"created_at": "2020-09-22T09:00:00.000Z",
"updated_at": "2020-09-22T09:00:00.000Z",
"owner": "organization",
"variations": [
{
"id": null,
"name": null,
"sort_order": null,
"options": null
}
],
"custom_relationships": [
null
],
"child_variations": [
{
"id": null,
"name": null,
"sort_order": null,
"options": null,
"option": null
}
],
"product_types": [
"parent"
],
"variation_matrix": {}
},
"relationships": {}
}
],
"files": [
{
"id": "00000000-0000-0000-0000-000000000000",
"type": "file",
"file_name": "file_name.jpg",
"mime_type": "image/jpeg",
"file_size": 36000,
"public": true,
"meta": {
"timestamps": {
"created_at": "2023-10-11T13:02:25.293Z"
},
"dimensions": {
"width": 1800,
"height": 1000
}
},
"links": {
"self": "https://useast.api.elasticpath.com/v2/files/ddc28c74-a7df-46be-b262-8fa69a6e7d52"
},
"link": {
"href": "https://files-eu.epusercontent.com/e8c53cb0-120d-4ea5-8941-ce74dec06038/f8cf26b3-6d38-4275-937a-624a83994702.png",
"meta": {
"results": {
"total": null
}
}
}
}
]
},
"links": {
"current": "/pcm/hierarchies?page[offset]=10&page[limit]=10",
"first": "/pcm/hierarchies?page[offset]=0&page[limit]=10",
"last": "/pcm/hierarchies?page[offset]=20&page[limit]=10",
"next": "/pcm/hierarchies?page[offset]=10&page[limit]=10",
"prev": "/pcm/hierarchies?page[offset]=8&page[limit]=10"
},
"meta": {
"results": {
"total": 2
}
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?