Payhawk icon

Payhawk

Interact with the Zitadel API

Actions99

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 processing.
  • Adjusting orders dynamically based on inventory changes or customer requests.

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 output JSON typically contains confirmation details about the deletion operation. This may include status information or metadata confirming that the specified purchase order item was successfully 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 depends on the external API's availability and correct configuration of authentication headers.

Troubleshooting

  • Common issues:

    • Invalid or missing identifiers (Account Id, Purchase Order Id, Purchase Order Item Id) will cause the operation to fail.
    • Authentication errors if the API key or credentials are not set correctly.
    • Network or API endpoint unavailability can prevent successful deletion.
  • Error messages and resolutions:

    • "Unauthorized" or "Authentication failed": Verify that the API key credential is correctly configured and has necessary permissions.
    • "Not Found" errors: Check that the provided Account Id, Purchase Order Id, and Purchase Order Item Id exist and are correct.
    • "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 deleting purchase order items.
  • Consult n8n documentation on setting up API key credentials and configuring HTTP request nodes for similar integrations.

Discussion