Actions39
- Contact Actions
- Transaction Actions
- Subscription Actions
- Affiliation Actions
- Checkout Actions
- Country Actions
- Coupon Actions
- Product Actions
- User Actions
- Webhook Actions
Overview
The node "Guru Digital Manager" integrates with the Guru Digital Manager API to manage various resources such as contacts, transactions, subscriptions, coupons, products, and more. Specifically, for the Coupon - Create operation, this node allows users to create a new coupon in the Guru Digital Manager system by sending coupon details like code, discount type, discount value, and validity date.
This node is beneficial in scenarios where you want to automate marketing or sales workflows that involve generating discount coupons programmatically. For example, you could create coupons dynamically based on customer behavior, promotional campaigns, or integration with other systems.
Practical example:
- Automatically generate a percentage discount coupon valid until a specific date when a user subscribes to a newsletter.
- Create fixed amount discount coupons for special events or loyalty rewards.
Properties
| Name | Meaning |
|---|---|
| Coupon Data | A collection of fields describing the coupon to create: |
| Code | The unique coupon code string. |
| Discount Type | The type of discount applied by the coupon. Options: Percentage, Fixed Amount. |
| Discount Value | The numeric value of the discount (percentage or fixed amount). |
| Valid Until | The expiration date of the coupon in YYYY-MM-DD format. |
Output
The output JSON contains the response from the Guru Digital Manager API after creating the coupon. This typically includes the created coupon's details such as its ID, code, discount type, discount value, validity, and any metadata returned by the API.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Guru Digital Manager API.
- The node uses the base URL provided in the credentials or defaults to
https://digitalmanager.guru/api/v2. - HTTP requests are made with appropriate headers including
Authorization: Bearer <token>and content typeapplication/json.
Troubleshooting
- Missing Credentials Error: If no API credentials are provided, the node throws an error indicating credentials are required. Ensure you have configured the API authentication token correctly in n8n.
- API Request Failures: Network issues, invalid tokens, or incorrect base URLs can cause request failures. Verify your API token, base URL, and network connectivity.
- Invalid Coupon Data: Providing invalid or incomplete coupon fields (e.g., missing code or invalid date format) may result in API errors. Double-check the input values conform to expected formats.
- HTTP Errors: The node throws detailed errors if the API returns failure responses. Review the error message for hints, such as permission issues or resource conflicts.
Links and References
- Guru Digital Manager API Documentation: https://docs.digitalmanager.guru/developers/coupons
- n8n HTTP Request Node Documentation: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/
