avanta icon

avanta

Consume avanta API

Actions57

Company - Sku → Delete

AI-generated

Overview

This node operation deletes SKUs associated with a specified company in the Avanta system. It allows users to specify a company ID and provide a whitelist of SKUs to remain active, deleting all other SKUs for that company. This is useful for managing and cleaning up SKU data for companies, ensuring only relevant SKUs are retained.

Use Case Examples

  1. A user wants to remove all SKUs from a company except a few specific ones, so they provide the company ID and a whitelist of SKUs to keep active.
  2. A user needs to delete all SKUs for a company to reset the SKU list, so they provide the company ID and leave the whitelist empty.

Properties

Name Meaning
Request Options Options to customize the API request behavior, including debug mode, SSL certificate validation, and request timeout.
Company ID The ID of the company whose SKUs are to be deleted. This is a required field and supports dynamic input expressions.
Company SKUs A whitelist of SKUs to remain active for the company. All other SKUs will be deleted. Supports comma-separated values or JSON array/single SKU expressions. Leaving this empty skips the deletion for that item.

Output

JSON

  • success - Indicates whether the SKU deletion operation was successful.
  • deletedSkus - List of SKUs that were deleted from the company.
  • remainingSkus - List of SKUs that remain active after the deletion operation.
  • debugInfo - Optional debug information including API request details if debug mode is enabled.

Dependencies

  • Requires an API key credential for authenticating with the Avanta API.

Troubleshooting

  • Ensure the Company ID is valid and exists in the Avanta system to avoid errors related to non-existent companies.
  • If using the whitelist of SKUs, ensure the format is correct (comma-separated string or JSON array) to prevent parsing errors.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option, but be aware of the security risks.
  • Timeout errors can be resolved by increasing the timeout value in the request options.

Discussion