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 customers. Specifically, the Customer - Create operation allows users to create a new customer record in the loyalty system. This is useful for businesses that want to add new customers into their loyalty program database automatically as part of their workflows.
Typical use cases include:
- Adding new customers collected from web forms or CRM systems into the loyalty program.
- Automating customer onboarding by creating customer profiles with essential details.
- Integrating external user IDs and metadata for syncing customer data across platforms.
For example, after a user signs up on an e-commerce site, this node can create a corresponding customer profile in the loyalty program with their name, email, phone, and other optional details.
Properties
| Name | Meaning |
|---|---|
| First Name | Customer's first name (required) |
| Last Name | Customer's last name (required) |
| Additional Fields | Optional extra information about the customer: |
| - Email: Customer email address | |
| - Phone: Customer phone number | |
| - Gender: Customer gender (Male, Female, Other) | |
| - Date of Birth: Customer's birth date | |
| - External User ID: Identifier from an external system for integration | |
| - Metadata: Additional JSON-formatted metadata related to the customer |
Output
The node outputs a JSON object representing the newly created customer. The structure includes all the fields sent to the API plus any additional data returned by the Digital Wallet Cards API, such as unique customer identifiers or timestamps.
No binary data output is involved.
Dependencies
- Requires an API key credential configured in n8n to authenticate requests against the Digital Wallet Cards API.
- The node makes HTTP requests to
https://api.digitalwallet.cards/api/v2/customersendpoint. - No other external dependencies are required.
Troubleshooting
Error: "Either phone or email must be provided for customer creation"
This error occurs if neither phone nor email is supplied in the additional fields. To fix, provide at least one of these contact details.Validation errors for missing required fields
Ensure that both "First Name" and "Last Name" are provided, as they are mandatory.API authentication errors
Verify that the API key credential is correctly set up and has sufficient permissions.JSON parsing errors on metadata
If providing metadata, ensure it is valid JSON format; otherwise, the node will throw an error when parsing.
Links and References
- Digital Wallet Cards API Documentation (hypothetical link for reference)
- n8n documentation on Creating Custom Nodes
- General info on Loyalty Program APIs
If you need details on other operations or resources, feel free to ask!