Gift Card - Wildfire Support Center

Gift Card

14 min

There are two different payment methods for the customers to redeem the Cash Back in their account.

Gift Card is a payment method where the user who has a redeemable amount greater than 5 USD can receive a gift card of a supported merchant of their choice. Wildfire currently only supports redeeming the full amount available in the user's account. There are three API endpoints:

  1. Get Redeemable Amount
  2. Redeem (create a gift card redemption link)
  3. Get Redemption History

Get Redeemable Amount Get Redeemable Amount

The get redeemable amount call will return the balance of a user's account. This is useful for determining if a user is eligible for a Gift Card based on the minimum 5 USD threshold required to redeem.

**Endpoint :**https://api.wfi.re/v2/giftcard/:device_id/redeemable

**Method :**GET

Parameters

device_id (Required): The device id of the user. Note: If a user has multiple devices, any device ID associated with the user will return the same redeemable amount.

Sample response

{
  "Amount": "15.00",
  "Currency": "USD"
}

Errors Errors

{
  "ErrorMessage": "No device found for ID= '76'"
}
{
  "ErrorMessage": "No rewards found for sender ID='123'"
}
{
  "ErrorMessage": "no sender associated with device 76"
}

Redeem Redeem

This POST call will give all the details of a user along with the URL to redeem the Gift Card and amount available to redeem.

Endpoint: https://api.wfi.re/v2/giftcard

Method: POST

Request Body:

{
  "deviceID": 93182163
}

Sample response

{
  "senderID": 278000,
  "url": "https://www.rewardlink.io/r/1/uxmJQsWqZxxLDFGkVci2QGa068MX3x0yQ",
  "amount": "15",
  "currency": "USD",
  "createdDate": "2023-01-10T22:39:50.42Z"
}

Errors Errors

{
  "ErrorMessage": "Missing device_id"
}
{
  "ErrorMessage": "Redeemable balance is less than $5"
}

Get Redemption History Get Redemption History

The Get Redemption History call returns all the previous redemptions for a given user based on any of their device IDs.

Endpoint: https://api.wfi.re/v2/giftcard?device_id=9318216

Parameters

device_id (Required): Any device ID associated with the user.

Sample response

{
  "Links": [
    {
      "senderID": 274000,
      "url": "https://www.rewardlink.io/r/1/MXVFTvPLbdWccO8-Xzw5PFXemBHVxJBb0gJTPb1006A",
      "amount": "15",
      "currency": "USD",
      "createdDate": "2023-01-10T19:45:36.346516Z"
    },
    {
      "senderID": 274000,
      "url": "https://www.rewardlink.io/r/1/uxmJQsWqZxxLDFGkVci2QGa06YfCvo6f7FQ8MX3x0yQ",
      "amount": "35",
      "currency": "USD",
      "createdDate": "2023-01-10T22:39:50.798193Z"
    }
  ]
}

Errors Errors

{
  "ErrorMessage": "Missing device_id"
}
{
  "ErrorMessage": "invalid device id"
}
{
  "ErrorMessage": "No device found for ID='76'"
}
{
  "ErrorMessage": "No links found for sender ID='76'"
}
{
  "ErrorMessage": "no sender associated with device [device app ID]"
}