Actions80
- Account Actions
- Clipart Actions
- Clipart Storage Actions
- Design Actions
- Font Actions
- Image Actions
- Product Actions
- Project Actions
- Project Folder Actions
- Side Actions
- Storage Actions
- Store Actions
- Template Actions
- Webhook Actions
Overview
This node integrates with the Printcart API, enabling users to manage various resources related to print-on-demand products and stores. Specifically, for the Side resource and the Get Side Detail operation, the node fetches detailed information about a particular side of a product by its unique Side ID.
Common scenarios where this node is beneficial include:
- Retrieving detailed metadata or configuration of a product's side (e.g., front, back) in a print-on-demand workflow.
- Automating product customization processes by fetching side details before applying designs or modifications.
- Integrating product side data into broader e-commerce or production pipelines.
Example use case:
- A user wants to get all attributes of a specific product side to display on a custom storefront or to validate design constraints before printing.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication; currently supports "API Token" for accessing the Printcart API. |
| Side ID | The unique identifier of the product side whose details are to be retrieved. |
Output
The node outputs JSON data representing the detailed information of the specified product side. This typically includes fields such as:
product_id: Identifier of the product to which the side belongs.name: Name of the side (e.g., "Front", "Back").bg_type: Background type of the side.bg_color_value: Background color value.scale: Scale factor applied to the side.side_image_size: Object containing width and height of the side image.design_area: Object specifying the design area dimensions and position (width, height, top, left).side_image_id: Identifier of the associated side image.status: Status of the side (e.g., active, inactive).
The output JSON structure directly reflects the response from the Printcart API endpoint for side details.
The node does not output binary data for this operation.
Dependencies
- Requires an API token credential for authenticating requests to the Printcart API.
- The node makes HTTP GET requests to the Printcart API endpoint:
https://{sid}:{secret}@api.printcart.com/v1/sides/{sideId}
where{sid}and{secret}are credentials obtained from the API token. - No additional environment variables or external services are required beyond the API token.
Troubleshooting
- Invalid or missing Side ID: If the Side ID parameter is empty or incorrect, the API will likely return a 404 Not Found or similar error. Ensure the Side ID is valid and exists in the Printcart system.
- Authentication errors: If the API token is invalid or expired, the node will fail with authentication errors. Verify that the API token credential is correctly configured and has necessary permissions.
- Network issues: Connectivity problems to the Printcart API endpoint can cause request failures. Check network access and API availability.
- Unexpected API responses: If the API changes or returns unexpected data, the node may not handle it gracefully. Review API documentation and update the node if needed.
To resolve common errors:
- Double-check the Side ID input.
- Re-authenticate or refresh the API token credential.
- Confirm API endpoint accessibility.
- Enable "Continue On Fail" in the node settings to handle errors gracefully during batch executions.
Links and References
- Printcart API Documentation (assumed official docs URL)
- n8n Documentation on Creating Custom Nodes
- General REST API usage best practices