Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Suppliers → Uploads A File To Be Used As A Supplier Custom Field Source

AI-generated

Overview

This node operation allows uploading a file to be used as a source for a custom field related to suppliers. It is useful when you want to import or update supplier-specific data in bulk by providing a file that contains the relevant information. For example, if you maintain supplier details in an external system or spreadsheet, you can upload that file here to populate or update custom fields associated with your suppliers.

Properties

Name Meaning
Account Id Identifier of the account to which the file upload applies

Output

The node outputs JSON data representing the result of the file upload operation. This typically includes confirmation of the upload status and any metadata returned by the API regarding the uploaded file or updated supplier custom fields. If the node supports binary data output (e.g., returning the uploaded file or a processed version), it would be summarized here, but based on the provided code and context, the output is JSON only.

Dependencies

  • Requires an API key credential or similar authentication token configured in n8n to authorize requests.
  • Depends on an external API endpoint (likely part of a supplier management or financial platform) to handle the file upload and processing.
  • The base URL for the API must be set in the node credentials or environment variables.

Troubleshooting

  • Common issues:
    • Missing or invalid Account Id property will cause the operation to fail.
    • Authentication errors if the API key or token is not properly configured.
    • File format or size restrictions imposed by the external API may cause upload failures.
  • Error messages:
    • "Unauthorized" or "Authentication failed": Check API credentials and permissions.
    • "Invalid Account Id": Verify that the Account Id is correct and exists.
    • "File upload failed": Ensure the file meets the API requirements and retry.

Links and References

  • Refer to the external API documentation for detailed requirements on file formats and custom field specifications.
  • n8n documentation on how to configure API credentials and use file upload nodes.

Discussion