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 integrates with the Digital Wallet Cards loyalty program API to manage companies, cards, customers, templates, communications, analytics, and system operations. Specifically, for the Company - Create operation, it allows users to create a new company record in the loyalty program system by providing essential details such as the company name and optional additional information.
Common scenarios where this node is beneficial include:
- Automating the onboarding of new companies into a loyalty program.
- Integrating company creation workflows within larger automation pipelines.
- Managing company metadata and branding information programmatically.
Practical example:
- When a new partner company signs up on your platform, you can automatically create their profile in the loyalty program system with their name, description, website, logo, and any custom metadata.
Properties
| Name | Meaning |
|---|---|
| Company Name | The name of the company to be created (required). |
| Additional Fields | Optional extra fields to provide more details about the company: |
| - Description: A textual description of the company. | |
| - Website: URL of the company's website. | |
| - Logo: URL of the company's logo image. | |
| - Metadata: JSON object containing any additional custom metadata for the company. |
Output
The output is a JSON object representing the newly created company. It includes all the data returned by the API after successful creation, typically including the company ID, name, description, website, logo URL, metadata, and other relevant fields.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential configured in n8n to authenticate requests against the Digital Wallet Cards API.
- The node makes HTTP POST requests to the
/api/v2/companiesendpoint of the Digital Wallet Cards API. - The base URL for the API is
https://api.digitalwallet.cards. - The node expects JSON responses and sends JSON payloads.
Troubleshooting
- Missing Required Fields: If the "Company Name" is not provided, the node will throw an error indicating that the required field is missing.
- Invalid JSON in Metadata: If the metadata field contains invalid JSON, parsing will fail. Ensure the metadata is valid JSON format.
- API Authentication Errors: If the API key or credentials are incorrect or missing, the node will fail with authentication errors. Verify the API key configuration.
- Network Issues: Connectivity problems to the API endpoint will cause request failures. Check network access and proxy settings if applicable.
- Unexpected API Errors: The API might return errors due to business logic or validation rules. Review the error message returned by the node for guidance.
Links and References
- Digital Wallet Cards API Documentation (Assumed URL for reference)
- n8n Documentation on Creating Custom Nodes
- JSON syntax guide for metadata formatting: https://www.json.org/json-en.html