Lightspeed Retail POS API - GET Gift Card by Code

TWGerardTWGerard Posts: 1Member
I am putting together an estimate for a WooCommerce plugin to allow purchases to be made with Lightspeed POS Gift Card codes. So far in the API Documentation I have not been able to find any endpoints which I could use to retrieve the Gift Card `CreditAccount` record by code rather than ID. Is this possible with the API?

1 comment

  • Adrian SamuelAdrian Samuel Posts: 398Moderator, Lightspeed Staff moderator
    Hey @TWGerard

    The endpoint documentation for Gift Cards can be found here: 

    https://developers.lightspeedhq.com/retail/tutorials/gift-cards/

    You can search for specific gift card codes this way:

    https://api.lightspeedapp.com/API/Account/{{accountID}}/CreditAccount.json?code={{giftCardCode}}
    So if I hard a gift card with the code: 123456789999 a valid request for this specific gift card would be:
    https://api.lightspeedapp.com
    /API/Account/{{accountID}}/CreditAccount.json?code=123456789999

    I hope this helps!
Sign In or Register to comment.