Xgate Loyalty icon

Xgate Loyalty

Consume Xgate Loyalty API

Coupon → Issue

AI-generated

Overview

This node interacts with the Xgate Loyalty API to issue a coupon to a customer. It is useful in scenarios where businesses want to automate the process of assigning coupons to customers based on their customer code and a specific coupon ID. For example, a marketing automation workflow could use this node to issue discount coupons to customers after they complete a purchase or meet certain criteria.

Use Case Examples

  1. Issuing a coupon to a customer after a purchase
  2. Automatically assigning promotional coupons to customers based on loyalty program rules

Properties

Name Meaning
Customer Code The code of the customer to whom the coupon will be issued.
Coupon ID The ID of the coupon that will be issued to the customer.

Output

JSON

  • coupon_id - The ID of the issued coupon returned from the API.
  • customer_code - The customer code for whom the coupon was issued.
  • error - Error message if the coupon issuance failed.

Dependencies

  • Xgate Loyalty API credentials including username, password, and account ID

Troubleshooting

  • Common issues include invalid customer codes or coupon IDs, which will cause the API to return errors.
  • If the API credentials are incorrect or missing, the node will fail to authenticate and throw an error.
  • Network issues or incorrect API endpoint configuration can also cause request failures.

Discussion