Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Overview

This node operation allows you to add a member to an account team within the Payhawk system. It is useful for managing team memberships by programmatically assigning users to specific teams associated with accounts. Typical use cases include automating team management workflows, such as onboarding new employees or adjusting team compositions based on project needs.

For example, when a new employee joins a department, this node can be used to add their user ID to the relevant account team and assign appropriate roles automatically.

Properties

Name Meaning
Account Id Identifier of the account to which the team belongs.
Team Id Identifier of the team to which the member will be added.
Member Id User ID in Payhawk representing the member to add to the team.
Roles JSON array specifying the roles granted to the team member (e.g., ["admin", "editor"]).

Output

The node outputs JSON data representing the result of the add member operation. This typically includes confirmation details such as the updated team membership information or status messages returned from the Payhawk API. The output does not include binary data.

Dependencies

  • Requires an active connection to the Payhawk API.
  • Needs an API authentication token or API key credential configured in n8n to authorize requests.
  • The base URL for the Payhawk API must be set in the node credentials configuration.

Troubleshooting

  • Common issues:

    • Invalid or missing Account Id, Team Id, or Member Id may cause the API request to fail.
    • Incorrectly formatted Roles JSON can lead to parsing errors.
    • Authentication failures if the API key or token is invalid or expired.
  • Error messages:

    • "Unauthorized" β€” Check that the API credentials are correctly configured and valid.
    • "Not Found" β€” Verify that the Account Id and Team Id exist and are correct.
    • "Bad Request" β€” Ensure the Roles property is a valid JSON array and all required fields are provided.

Links and References

Discussion