Actions47
- Template Actions
- Communication Actions
- Card Actions
- Create
- Get
- Get All
- Update
- Delete
- Get Balance
- Add Points
- Deduct Points
- Add Amount
- Deduct Amount
- Add Stamps
- Deduct Stamps
- Transfer Points
- Transfer Amount
- Block Card
- Unblock Card
- Generate QR Code
- Get Operations
- Add Visits
- Deduct Visits
- Add Reward
- Deduct Reward
- Receive Reward
- Redeem Coupon
- Set Expiration Date
- Set Membership Tier
- Customer Actions
- Company Actions
- Analytics Actions
- System Actions
Overview
This node interacts with a Digital Wallet Cards loyalty program API, specifically managing companies in this context. The "Delete" operation for the "Company" resource allows users to remove a company record from the system by specifying its unique company ID.
Common scenarios where this node is beneficial include:
- Automating cleanup of company records that are no longer active or relevant.
- Integrating company management workflows where companies need to be programmatically deleted based on external triggers or conditions.
- Maintaining data hygiene in loyalty program systems by removing obsolete company entries.
Practical example:
- A marketing automation workflow detects that a partner company has ended collaboration and triggers this node to delete the company's record from the loyalty program database automatically.
Properties
| Name | Meaning |
|---|---|
| Company ID | The unique identifier of the company to delete |
Output
The output JSON contains the result of the delete operation. It typically includes a success confirmation and the ID of the deleted company. For example:
{
"success": true,
"companyId": 123
}
This confirms that the company with the specified ID was successfully deleted.
Dependencies
- Requires an API key credential for authenticating requests to the Digital Wallet Cards API.
- The node makes HTTP DELETE requests to the endpoint
/api/v2/companies/{companyId}. - The base URL for the API is
https://api.digitalwallet.cards. - No additional environment variables are explicitly required beyond the API authentication setup.
Troubleshooting
- Missing Company ID: If the "Company ID" property is not provided or invalid, the node will throw an error indicating that the company ID is required.
- Company Not Found: If the specified company ID does not exist, the API may return an error which the node surfaces. Verify the company ID is correct.
- API Authentication Errors: Ensure the API key credential is correctly configured and has permissions to delete companies.
- Network Issues: Connectivity problems can cause request failures; verify network access to the API endpoint.
- Continue On Fail: If enabled, errors for individual items will be returned as error objects instead of stopping execution.
Links and References
- Digital Wallet Cards API Documentation (hypothetical link)
- n8n documentation on Creating Custom Nodes
- General REST API best practices for DELETE operations