Printcart icon

Printcart

Consume Prinrcart API

Actions83

Overview

This node integrates with the Printcart API to manage various resources related to print-on-demand services. Specifically, for the Font resource and the Delete Font operation, it allows users to delete a font by specifying its unique Font ID. This is useful in scenarios where you want to programmatically remove fonts from your Printcart account, such as cleaning up unused fonts or managing font libraries dynamically.

Practical example:

  • Automatically deleting deprecated or unused fonts from your Printcart account as part of a workflow that manages design assets.

Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token" for accessing the Printcart API.
Font ID The unique identifier of the font to be deleted. This is a required string input.

Output

The output of this operation is a JSON object representing the response from the Printcart API after attempting to delete the specified font. Typically, this will include confirmation of deletion or an error message if the deletion failed.

No binary data is output by this operation.

Example output JSON structure (simplified):

{
  "success": true,
  "message": "Font deleted successfully",
  "fontId": "the-deleted-font-id"
}

Dependencies

  • Requires an active connection to the Printcart API.
  • Requires an API token credential configured in n8n for authenticating requests.
  • The node uses HTTP requests to the Printcart API endpoints over HTTPS.

Troubleshooting

  • Common issues:

    • Invalid or missing Font ID: The API will return an error if the Font ID does not exist or is not provided.
    • Authentication errors: If the API token is invalid or expired, requests will fail.
    • Network connectivity issues may prevent successful API calls.
  • Error messages and resolutions:

    • "Font not found": Verify that the Font ID is correct and exists in your Printcart account.
    • "Unauthorized" or "Authentication failed": Check that the API token credential is correctly set up and valid.
    • "Request failed" or timeout errors: Ensure network connectivity and that the Printcart API service is reachable.

Links and References

Discussion