Printcart icon

Printcart

Consume Prinrcart API

Actions80

Overview

This node integrates with the Printcart API to manage design resources within a print-on-demand or custom product platform. Specifically, the Create Design operation allows users to create a new design associated with a particular side of a product, including preview and design images, notes, status, and viewport dimensions.

Common scenarios where this node is beneficial include:

  • Automating the creation of product designs in a print-on-demand workflow.
  • Integrating design management into broader e-commerce or production pipelines.
  • Programmatically adding new designs based on user input or external triggers.

For example, a user could automate creating a design for a t-shirt side by providing image IDs and metadata, which then gets stored and managed via the Printcart system.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token".
Side ID The identifier of the product side where the design will be created.
Preview Image ID The identifier of the preview image associated with the design.
Design Image ID The identifier of the main design image.
Note A textual note or description attached to the design.
Uploader Boolean flag indicating if the current user is the uploader of the design.
Status The status of the design; options include: Processing, Accepted, Trashed, Declined.
Viewport Width Numeric value representing the width of the viewport for the design (precision: 1 decimal place).
Viewport Height Numeric value representing the height of the viewport for the design (precision: 1 decimal place).

Output

The output JSON contains the response from the Printcart API after creating the design. This typically includes details about the newly created design such as its unique ID, associated side ID, image references, note, uploader status, status, and viewport dimensions.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API token credential for authenticating requests to the Printcart API.
  • The node makes HTTP POST requests to the endpoint https://{sid}:{secret}@api.printcart.com/v1/designs where {sid} and {secret} are credentials retrieved at runtime.
  • Proper configuration of the API token credential in n8n is necessary for successful execution.

Troubleshooting

  • Authentication Errors: If the API token is invalid or missing, the request will fail. Ensure the API token credential is correctly configured and has appropriate permissions.
  • Missing Required Fields: The operation requires several mandatory fields (Side ID, Preview Image ID, Design Image ID, Note, Status, Viewport Width, Viewport Height). Omitting any will likely cause API errors.
  • API Endpoint Issues: Network issues or incorrect credential values can cause connection failures. Verify network connectivity and credential correctness.
  • Status Field Format: The status must be one of the predefined options ("processing", "accepted", "trashed", "declined"). Using unsupported values may result in errors.

Links and References

Discussion