Gift Card results are no longer appearing in CreditAccount / Get All Credit Accounts API endpoint

mdimunationmdimunation Member Posts: 2

Hello -

We're using the "old" version of the Gift Card module, and we have an API integration used to extract gift card numbers and balances.

About one week ago (end of July 2021), gift cards stopped appearing in the API results when querying all Credit Accounts. Other Credit Accounts are still coming through, but the gift cards are now missing.

We're using the following API endpoint: GET /API/Account/{accountID}/CreditAccount.json

For all results, the CreditAccount.giftCard value is always equal to false, and no gift cards are included in the response.

This has been running properly for nearly one year prior to this issue with no changes from our side.

We've tested API permission adjustments, including temporarily enabling the "All Permissions" setting for the API user group.

Tags:

3 comments

  • LucienVersendaalLucienVersendaal Moderator, Lightspeed Staff Posts: 856 moderator
    edited August 6

    Hi @mdimunation,

    Thank you for contacting us.

    I was talking to our devs about this, there has been some change in this one. If you want to get the list of Gift Cards, the parameter giftCard has to be set to true.

    /CreditAccount.json?giftCard=true

    Post edited by LucienVersendaal on
  • mdimunationmdimunation Member Posts: 2

    Thank you - confirmed working on our end with the giftCard parameter on the URL.

  • LucienVersendaalLucienVersendaal Moderator, Lightspeed Staff Posts: 856 moderator

    Okay perfect!

Sign In or Register to comment.