avanta icon

avanta

Consume avanta API

Actions57

Company - Restrict → Delete

AI-generated

Overview

This node operation deletes restrictions for a specified customer within a company restrict resource. It allows users to remove product SKU restrictions for a given customer and store group, either for specific SKUs or all restrictions if no SKUs are specified. This is useful in scenarios where a company needs to update or clear product access restrictions for customers in their system.

Use Case Examples

  1. Removing all product restrictions for a customer in a specific store group.
  2. Deleting restrictions for specific product SKUs for a customer to allow access.

Properties

Name Meaning
Request Options Options to customize the API request such as enabling debug mode, ignoring SSL certificate issues, and setting a timeout for the request.
Customer ID The customer ID for which to delete restrictions.
Store Group ID The store group ID to identify the correct company.
Product SKUs Product SKUs to remove restrictions for, provided as a comma-separated string or JSON array. Leave empty to remove all restrictions for the customer.

Output

JSON

  • success - Indicates whether the deletion of restrictions was successful.
  • message - Additional information or confirmation message about the deletion operation.

Dependencies

  • Requires an API key credential for authentication to the Avanta API.

Troubleshooting

  • Ensure the Customer ID and Store Group ID are correctly provided and valid; missing or incorrect IDs will cause the operation to fail.
  • If product SKUs are provided, ensure they are formatted correctly as a comma-separated string or JSON array; invalid formats may cause errors.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option, but be aware this is insecure.
  • Timeout errors may occur if the server is slow to respond; increase the timeout value if needed.

Discussion