Digital Wallet Cards icon

Digital Wallet Cards

Interact with Digital Wallet Cards loyalty program API

Overview

The node interacts with a Digital Wallet Cards loyalty program API, specifically managing loyalty cards and their attributes. The "Set Expiration Date" operation allows users to update the expiration date of a specified card. This is useful in scenarios where a card's validity period needs to be extended or shortened, such as renewing memberships, adjusting promotional periods, or correcting expiration data.

Practical example:
A business wants to extend the expiration date of a customer's loyalty card after a promotion extension. Using this node operation, they can set a new expiration date for the card programmatically within an automation workflow.

Properties

Name Meaning
Expiration Date New expiration date for the card (dateTime)

This property is required and expects a date-time value representing the new expiration date to assign to the card.

Output

The output JSON contains the updated card information after setting the new expiration date. It typically includes fields such as the card ID and the updated expiration date, confirming the successful update.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating requests to the Digital Wallet Cards API.
  • The node makes HTTP POST requests to the endpoint /api/v2/cards/{cardId}/set-expiration-date.
  • The base URL for the API is https://api.digitalwallet.cards.
  • Proper configuration of the API credentials in n8n is necessary for successful execution.

Troubleshooting

  • Missing Required Fields: If either the card ID or expiration date is not provided, the node will throw an error indicating missing required parameters.
  • Invalid Date Format: Providing an invalid date format for the expiration date may cause the API to reject the request.
  • API Authentication Errors: Ensure that the API key credential is correctly configured; otherwise, authentication errors will occur.
  • Card Not Found: If the specified card ID does not exist, the API will return an error indicating the card was not found.
  • Network Issues: Connectivity problems can cause request failures; verify network access to the API endpoint.

To resolve these issues, verify all required inputs, ensure valid date formats, check API credentials, and confirm the card ID exists in the system.

Links and References

Discussion