Actions14
Overview
The Shopistuff node for n8n allows you to interact with the Shopify API, specifically targeting orders in this configuration.
With the Order → Get operation, the node retrieves detailed information about a specific order from your Shopify store using its Order ID.
This is useful for automating workflows that require order data, such as sending order details to other systems, generating reports, or triggering follow-up actions based on order status.
Example scenarios:
- Fetching order details to send a confirmation email.
- Retrieving order data for analytics or reporting.
- Integrating Shopify order information into CRM or ERP systems.
Properties
Name | Type | Meaning |
---|---|---|
Order ID | String | The unique identifier of the order to retrieve. This is required. |
Options | Collection | Additional options for the request. Contains: • Fields (String): Comma-separated list of fields to return. By default, all fields are returned. |
Output
The output will be a JSON object containing the details of the requested order.
The structure matches the Shopify Order API response.
Example output:
{
"id": 123456789,
"email": "[email protected]",
"created_at": "2024-06-01T12:34:56-04:00",
"line_items": [
{
"id": 987654321,
"title": "Product Name",
"quantity": 1,
// ...other line item fields
}
],
// ...other order fields
}
If the Fields option is used, only the specified fields will be present in the output.
Dependencies
- External Service: Requires access to a Shopify store and valid API credentials.
- n8n Credentials: You must configure
shopistuffApi
credentials in n8n for authentication.
Troubleshooting
Common issues:
- Invalid Order ID: If the provided Order ID does not exist, the node will throw an error indicating the order was not found.
- Missing Credentials: If the Shopify API credentials are not set up correctly, authentication errors will occur.
- Insufficient Permissions: The API key used must have permission to read orders.
Error messages and resolutions:
"At least one line item has to be added"
: This error is not relevant for the Get operation but may appear if the wrong operation is selected."Order not found"
or similar: Check that the Order ID is correct and exists in your Shopify store."401 Unauthorized"
: Verify your API credentials and permissions.