Printcart icon

Printcart

Consume Prinrcart API

Actions83

Overview

This node integrates with the Printcart API to manage various resources related to print-on-demand stores, products, designs, and more. Specifically, for the Store - Create Store operation, it allows users to create a new store on the Printcart platform by providing necessary details such as the store name and API keys for external services.

Common scenarios where this node is beneficial include:

  • Automating the creation of new print-on-demand stores within a workflow.
  • Setting up stores programmatically with required integrations like Google Fonts, Unsplash, Pixabay, and Pexels.
  • Managing multiple stores efficiently without manual intervention.

Practical example:

  • A user wants to onboard a new client by automatically creating a store configured with specific font and image service APIs. This node can be used in an n8n workflow to create that store instantly when triggered.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token"
Store Name The name of the store you want to create
Google_font_api The Google Font API key or identifier to associate with the store (required)
Unsplash API key or token for Unsplash integration
Pixabay API key or token for Pixabay integration
Pexels API key or token for Pexels integration

Output

The node outputs JSON data representing the response from the Printcart API after attempting to create the store. This typically includes details about the newly created store such as its ID, name, and configuration status.

No binary data output is produced by this operation.

Dependencies

  • Requires an API token credential for authenticating requests to the Printcart API.
  • The node makes HTTP POST requests to https://api.printcart.com/v1/stores endpoint.
  • External service API keys (Google Fonts, Unsplash, Pixabay, Pexels) must be provided as input properties to configure the store integrations properly.

Troubleshooting

  • Authentication errors: Ensure the API token credential is valid and has sufficient permissions.
  • Missing required fields: The google_font_api property is mandatory; omitting it will likely cause the API request to fail.
  • Network issues: Verify connectivity to api.printcart.com.
  • API rate limits or quota exceeded: If the API returns rate limit errors, consider adding retry logic or increasing quota.
  • Invalid API keys for external services: Incorrect or expired keys for Google Fonts, Unsplash, Pixabay, or Pexels may cause the store creation to fail or result in incomplete integration setup.

Links and References

Discussion