Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Suppliers → Updates A Supplier Status

AI-generated

Overview

This node operation updates the status of a supplier within an account. It is useful in scenarios where you need to activate or archive suppliers programmatically, such as managing supplier lifecycle states in procurement or vendor management workflows. For example, you might use this node to mark a supplier as archived when they are no longer active or to reactivate a previously archived supplier.

Properties

Name Meaning
Account Id Identifier of the account to which the supplier belongs.
Supplier Id Identifier of the supplier whose status is being updated.
Status The new status of the supplier. Options: "Active" (supplier is active), "Archived" (supplier is archived).

Output

The node outputs JSON data representing the result of the update operation. This typically includes confirmation of the updated supplier status and may contain other metadata returned by the API about the supplier after the update. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authentication with the external service.
  • The node uses a base URL configured in the credentials to send HTTP requests.
  • Depends on an OpenAPI-based client library bundled with the node for making requests to the external API.

Troubleshooting

  • Common issues:
    • Invalid or missing Account Id or Supplier Id will cause the update to fail.
    • Providing an unsupported status value will result in an error.
    • Network or authentication errors if the API key or base URL is misconfigured.
  • Error messages:
    • Errors related to authorization usually indicate invalid or missing API credentials.
    • Validation errors often point to missing required properties or invalid property values.
  • Resolution tips:
    • Verify that all required fields (Account Id, Supplier Id, Status) are correctly set.
    • Ensure the API key credential is valid and has necessary permissions.
    • Check network connectivity and base URL configuration.

Links and References

  • Refer to the external API documentation for supplier management for detailed information on status values and update behavior.
  • Consult n8n documentation on setting up API credentials and using HTTP request nodes for similar integrations.

Discussion