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
The node interacts with the Digital Wallet Cards loyalty program API, specifically focusing here on the Template resource with the Get All operation. It retrieves a list of card templates available in the system, supporting filtering, sorting, and pagination.
This node is useful when you want to fetch multiple card templates for further processing, reporting, or integration with other systems. For example, you might use it to:
- Retrieve all active loyalty card templates for a specific company.
- Get a paginated list of cashback card templates sorted by creation date.
- Filter templates by type (e.g., points, stamps) to display or analyze them.
Properties
| Name | Meaning |
|---|---|
| Return All | Whether to return all results or limit to a specific number |
| Limit | Maximum number of results to return (used if Return All is false; range 1-1000) |
| Additional Fields | Collection of optional filters and parameters: |
| - Page | Page number for pagination (minimum 1) |
| - Sort By | Field name to sort the results by |
| - Sort Order | Sort order direction: "Ascending" or "Descending" |
| - Filter by Company ID | Numeric filter to retrieve templates belonging to a specific company |
| - Filter by Type | Filter templates by card type; options include Loyalty, Points, Stamps, Cashback, Membership |
| - Filter by Active Status | Boolean filter to get only active or inactive templates |
Output
The output is an array of JSON objects representing the card templates retrieved from the API. Each object contains details about a template such as its ID, type, status, and other metadata fields as provided by the API.
The structure corresponds directly to the API response for templates and includes any applied filters, pagination, and sorting.
No binary data is output by this operation.
Dependencies
- Requires an API key credential configured in n8n to authenticate requests to the Digital Wallet Cards API.
- The base URL for API requests is
https://api.digitalwallet.cards. - Uses internal utility functions for making HTTP requests, handling pagination, validating required fields, and transforming API responses.
Troubleshooting
- Empty Results: If no templates are returned, verify that your filters (company ID, type, active status) are correct and that the account has templates matching those criteria.
- Invalid Pagination: Ensure the page number is at least 1 and the limit is between 1 and 1000.
- API Authentication Errors: Confirm that the API key credential is correctly set up and has sufficient permissions.
- Malformed JSON in Additional Fields: If using JSON fields (metadata), ensure they are valid JSON strings.
- Unknown Errors: Enable "Continue On Fail" to capture error messages per item for debugging.