Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Cards → Update Card

AI-generated

Overview

This node updates an existing card's information within an account. It is useful in scenarios where you need to modify the budget or other details of a card that has already been created, such as adjusting spending limits or reflecting changes in available funds.

Practical examples include:

  • Updating the remaining budget on a corporate expense card after a transaction.
  • Modifying card details when reallocating funds between departments.

Properties

Name Meaning
Account Id Identifier of the account containing the card to update.
Card Id Identifier of the specific card to update.
Budget Left The amount of funds left on the card (numeric value).

Output

The node outputs JSON data representing the updated card object returned from the API. This typically includes the card's current state after the update, such as its ID, associated account, and updated budget information.

If the node supports binary data output, it would represent any file or media related to the card, but based on the provided code and properties, this node primarily deals with JSON data.

Dependencies

  • Requires an API key credential for authenticating requests to the external service managing cards.
  • Needs configuration of the base URL for the API endpoint.
  • Depends on the external API described by the bundled OpenAPI specification (payhawk.api.json).

Troubleshooting

  • Missing Required Fields: Ensure "Account Id" and "Card Id" are provided; otherwise, the API will reject the request.
  • Invalid Budget Value: The "Budget Left" must be a valid number; non-numeric inputs may cause errors.
  • Authentication Errors: Verify that the API key credential is correctly configured and has sufficient permissions.
  • Network Issues: Check connectivity to the API base URL and ensure no firewall or proxy blocks the request.

Common error messages might include:

  • Unauthorized access due to invalid credentials.
  • Not found errors if the specified account or card IDs do not exist.
  • Validation errors if input values do not meet API requirements.

Resolving these usually involves verifying input parameters, credentials, and network settings.

Links and References

  • Refer to the external API documentation for detailed information on card management endpoints.
  • n8n documentation on creating and configuring HTTP request nodes for API interaction.

Discussion