Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

Purchase Orders → Delete A Purchase Order Item

AI-generated

Overview

This node operation deletes a specific item from a purchase order within an account. It is useful in scenarios where you need to remove an erroneous or no longer needed item from an existing purchase order, helping maintain accurate and up-to-date order records.

Practical examples include:

  • Removing a mistakenly added product from a purchase order before it is processed.
  • Adjusting purchase orders dynamically based on inventory changes or customer requests.
  • Automating cleanup of purchase orders by deleting items that are canceled or returned.

Properties

Name Meaning
Account Id Identifier of the account containing the purchase order.
Purchase Order Id Identifier of the purchase order from which an item will be deleted.
Purchase Order Item Id Identifier of the specific purchase order item to delete.

Output

The node outputs JSON data representing the result of the deletion operation. Typically, this includes confirmation of successful deletion or details about the updated purchase order state. The exact structure depends on the API response but generally confirms that the specified purchase order item was removed.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential for authenticating with the external service managing purchase orders.
  • The node uses a base URL configured via credentials to connect to the purchase order management API.
  • The operation relies on the external API's endpoint for deleting purchase order items.

Troubleshooting

  • Common issues:

    • Invalid or missing identifiers (Account Id, Purchase Order Id, Purchase Order Item Id) will cause the operation to fail.
    • Insufficient permissions or invalid API credentials can lead to authentication errors.
    • Attempting to delete an item that does not exist or has already been deleted may return an error.
  • Error messages and resolutions:

    • "Not Found" or similar: Verify that all provided IDs are correct and correspond to existing resources.
    • "Unauthorized" or "Authentication failed": Check that the API key credential is correctly set up and has necessary permissions.
    • "Bad Request": Ensure all required properties are provided and valid.

Links and References

  • Refer to the external purchase order API documentation for detailed information on the delete item endpoint.
  • Consult n8n documentation on setting up API credentials and using HTTP request nodes for custom integrations.

Discussion