Actions40
- Bookings Actions
- Customers Actions
- Agents Actions
- Services Actions
- Payments Actions
- Orders Actions
- Coupons Actions
- Locations Actions
- Availability Actions
- System Info Actions
- Test Actions
Overview
This node provides integration with the LatePoint REST API, enabling automation of various booking management and customer management tasks. Specifically for the Coupons - Delete operation, it allows users to delete a coupon by specifying its alphanumeric coupon code. This is useful in scenarios where coupons are no longer valid or need to be removed from the system to prevent further use.
Practical examples:
- Automatically removing expired or invalid coupons from your booking system.
- Cleaning up promotional codes after a marketing campaign ends.
- Managing coupon lifecycle programmatically as part of an automated workflow.
Properties
| Name | Meaning |
|---|---|
| Description | A text field to describe the purpose or context of this API call for AI understanding. |
| Coupon Code | The alphanumeric code of the coupon to delete. This is required to identify which coupon to remove. |
Output
The output of the delete operation returns JSON data representing the response from the LatePoint API after attempting to delete the specified coupon. Typically, this will include confirmation of deletion or error details if the operation failed.
- If successful, the output JSON confirms the coupon was deleted.
- If unsuccessful, the output JSON contains error information explaining why the deletion failed.
No binary data is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the LatePoint REST API.
- The node expects the base URL and API key to be configured in the credentials.
- Network access to the LatePoint API endpoint is necessary.
Troubleshooting
- Missing Credentials Error: If no API credentials are configured, the node throws an error "No credentials configured!". Ensure you have set up the required API key credential before running the node.
- Invalid Coupon Code: If the coupon code does not exist or is invalid, the API may return an error. Verify the coupon code is correct and exists in the system.
- API Request Failures: Network issues or incorrect API keys can cause request failures. Check your API key validity and network connectivity.
- JSON Parsing Errors: Although not typical for delete operations, if any JSON body is used incorrectly, errors like "Invalid JSON in body" may appear. For delete, this is unlikely since no body is sent.