Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Overview

This node operation deletes a specific Goods Received Note (GRN) associated with a Purchase Order in an account. It is useful in scenarios where a previously recorded goods receipt needs to be removed, for example, if it was created by mistake or the received items were returned and the record should no longer exist.

Practical examples include:

  • Correcting inventory records by removing erroneous GRNs.
  • Managing purchase order workflows where goods receipt entries must be updated or deleted.
  • Automating cleanup of purchase order data in integrated ERP or procurement systems.

Properties

Name Meaning
Account Id Identifier of the account under which the purchase order and goods received note exist.
Purchase Order Id Identifier of the purchase order to which the goods received note belongs.
Goods Received Note Id Identifier of the specific goods received note that should be deleted.

Output

The output JSON will typically contain the response from the API confirming the deletion of the specified Goods Received Note. This may include status information or confirmation messages indicating success or failure of the delete operation.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential for authentication to the external service managing purchase orders and goods received notes.
  • The node depends on a REST API endpoint configured via the base URL provided in the credentials.
  • The node uses standard HTTP headers for JSON content negotiation (Accept: application/json and Content-Type: application/json).

Troubleshooting

  • Common issues:

    • Invalid or missing identifiers (Account Id, Purchase Order Id, Goods Received Note Id) will cause the operation to fail.
    • Authentication errors if the API key or token is invalid or expired.
    • Network connectivity problems preventing access to the external API.
    • Attempting to delete a non-existent or already deleted goods received note.
  • Error messages and resolutions:

    • "Unauthorized" or "Authentication failed": Check and update the API key credential.
    • "Not Found": Verify that the Account Id, Purchase Order Id, and Goods Received Note Id are correct and exist.
    • "Bad Request": Ensure all required parameters are provided and correctly formatted.
    • Timeouts or network errors: Confirm network connectivity and API availability.

Links and References

  • Refer to the external API documentation of the purchase order management system for detailed information about deleting goods received notes.
  • n8n documentation on creating and using custom nodes and credentials for API integrations.

Discussion