Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Purchase Orders → Delete A Goods Received Note

AI-generated

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 receipts are updated or canceled.
  • 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 from which the goods received note will be deleted.
Goods Received Note Id Identifier of the specific goods received note to delete.

Output

The output JSON contains the response from the API after attempting to delete the specified Goods Received Note. Typically, this would confirm successful deletion or provide error details if the operation failed.

If the node supports binary data output, it is not indicated here; thus, the output is expected to be purely JSON-based.

Dependencies

  • Requires an API key credential for authenticating requests to the external service managing purchase orders and goods received notes.
  • The node uses a base URL configured in the credentials to connect to the API endpoint.
  • No additional external dependencies are indicated beyond the API connection.

Troubleshooting

  • Common issues:

    • Invalid or missing identifiers (Account Id, Purchase Order Id, Goods Received Note Id) will cause the deletion to fail.
    • Insufficient permissions or invalid API credentials can result in authorization errors.
    • Network connectivity problems may prevent the node from reaching the API.
  • Error messages and resolutions:

    • "Not Found" or similar: Verify that all IDs are correct and correspond to existing resources.
    • "Unauthorized" or "Forbidden": Check that the API key credential is valid and has sufficient permissions.
    • Timeouts or network errors: Ensure stable internet connection and correct API base URL configuration.

Links and References

  • Refer to the external API documentation for Purchase Orders and Goods Received Notes management for detailed information on required parameters and response formats.
  • n8n documentation on creating and configuring API credentials for secure authentication.

Discussion