Guru Digital Manager icon

Guru Digital Manager

Interact with Guru Digital Manager API

Actions39

Overview

This node integrates with the Guru Digital Manager API to manage various resources such as contacts, transactions, subscriptions, coupons, products, users, and webhooks. Specifically for the Coupon resource with the Delete operation, it allows you to delete a coupon by its ID.

Use cases include automating coupon management workflows, such as removing expired or invalid coupons from your system programmatically. For example, you might use this node in an automation that periodically cleans up unused coupons or removes coupons after a promotion ends.

Properties

Name Meaning
Coupon ID The unique identifier of the coupon to delete

Output

The output JSON contains a confirmation object indicating the success of the deletion operation. It has the following structure:

{
  "success": true,
  "message": "Coupon deleted successfully"
}

This confirms that the coupon was deleted. If the deletion fails, an error will be thrown instead.

Dependencies

  • Requires an API key credential for authenticating with the Guru Digital Manager API.
  • The base URL for the API is configurable via credentials but defaults to https://digitalmanager.guru/api/v2.
  • The node uses HTTP requests to communicate with the API endpoints.

Troubleshooting

  • Missing Credentials: The node requires valid API credentials. If missing, it throws an error "Credentials are required!".
  • Invalid Coupon ID: If the provided coupon ID does not exist or is incorrect, the API may return an error. Verify the coupon ID before attempting deletion.
  • API Errors: Network issues or API downtime can cause request failures. Check connectivity and API status.
  • Permission Issues: Ensure the API token used has permission to delete coupons.
  • Error Handling: If the node is set to continue on failure, errors will be returned in the output array; otherwise, execution stops on the first error.

Links and References

Discussion