Guru Digital Manager icon

Guru Digital Manager

Interact with Guru Digital Manager API

Actions39

Overview

The node "Guru Digital Manager" integrates with the Guru Digital Manager API to manage various resources including coupons. Specifically, the Coupon - Update operation allows users to update an existing coupon's details by specifying its ID and the new data fields. This is useful in scenarios where you need to modify discount codes, change discount types or values, or update the validity period of a coupon without creating a new one.

Practical examples:

  • Updating a coupon's discount value from 10% to 15%.
  • Changing a coupon's discount type from a fixed amount to a percentage.
  • Extending the validity date of a coupon to a later date.

Properties

Name Meaning
Coupon ID The unique identifier of the coupon to update.
Coupon Data The new data for the coupon, including:
- Code: The coupon code string.
- Discount Type: Type of discount; options are "Percentage" or "Fixed Amount".
- Discount Value: Numeric value representing the discount amount or percentage.
- Valid Until: Expiration date of the coupon in YYYY-MM-DD format.

Output

The output is a JSON object representing the updated coupon as returned by the Guru Digital Manager API. It contains the updated coupon fields reflecting the changes made.

If multiple items are processed, the output is an array of such JSON objects.

No binary data output is involved in this operation.

Dependencies

  • Requires an API authentication token credential for Guru Digital Manager.
  • 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 Guru Digital Manager API endpoints.

Troubleshooting

  • Missing Credentials Error: If the API token is not provided or invalid, the node will throw an error indicating credentials are required.
  • Invalid Coupon ID: If the specified coupon ID does not exist, the API may return an error. Verify the coupon ID is correct.
  • API Request Failures: Network issues or incorrect base URL configuration can cause request failures. Ensure the base URL and token are correctly set.
  • Validation Errors: Providing invalid data types or missing required fields in the coupon data may result in API validation errors.
  • To resolve errors, check the API documentation and verify all input parameters and credentials.

Links and References

Discussion