Actions14
Overview
The Shopistuff node for n8n allows you to interact with the Shopify API, specifically targeting products in your Shopify store.
With the Product → Get operation, this node retrieves detailed information about a specific product by its Product ID.
This is useful for automating workflows that require fetching product details, such as updating inventory records, synchronizing product data with other systems, or generating reports.
Example scenarios:
- Fetching product details to display in a dashboard.
- Retrieving product information for further processing or integration with other services.
- Validating product existence before performing updates or deletions.
Properties
| Name | Type | Meaning |
|---|---|---|
| Product ID | String | The unique identifier of the product to retrieve. This is required. |
| Additional Fields | Collection | Optional fields to customize the request. Contains: |
| └─ Fields | String | Comma-separated list of product fields to return (e.g., "id,title,variants"). By default, all fields are returned. |
Output
The output will be a JSON object containing the product's details as returned by the Shopify API.
The structure typically includes fields such as:
{
"id": 123456789,
"title": "Sample Product",
"body_html": "<strong>Good product!</strong>",
"vendor": "Vendor Name",
"product_type": "Type",
"created_at": "2024-06-01T12:00:00-04:00",
"handle": "sample-product",
"updated_at": "2024-06-02T12:00:00-04:00",
...
}
- If the Fields property is used, only the specified fields will be present in the output.
- No binary data is produced by this operation.
Dependencies
- External Service: Requires access to a Shopify store and valid Shopify API credentials.
- n8n Credentials: You must configure the
shopistuffApicredential in n8n with your Shopify API key and password.
Troubleshooting
Common issues:
- Invalid Product ID: If the provided Product ID does not exist, the node may throw an error indicating the product was not found.
- Missing Credentials: If the
shopistuffApicredential is not set up correctly, authentication errors will occur. - Insufficient Permissions: Ensure the API credentials have permission to read product data.
Error messages and resolutions:
"Not Found"or similar: Check that the Product ID is correct and exists in your Shopify store."API key invalid"or"Authentication failed": Verify your Shopify API credentials in n8n."Missing required parameter: productId": Make sure the Product ID field is filled in.
Links and References
- Shopify Admin API Reference – Products
- n8n Documentation: Creating and Using Credentials
- Shopify API Authentication Guide
