Can´t identify if dicount is unlimited in API

FabioMorcFabioMorc Member Posts: 2

Hi,


We found issue in discounts.

In discounts page "..site../admin/discount_codes" we have discount unlimited, but when we get this discount from API usageLimit is 10 or other values and i don´t see other property to know if this discount is unlimited.


Can you help me with this issue ?


Thanks,

Fabio Morcillo do Nascimento

1 comment

  • LeahLeah Moderator, Lightspeed Staff Posts: 171 moderator

    Hi @FabioMorc , The default suggested value of '10' is shown in the "usageLimit" field when the usage limit is inactive. This issue has been reported, as well as the fact that there is not currently a field in the response indicating whether the usage limit is active. I will create you a ticket to add you to the list of reporters.

    Thank you for reaching out.

    API Support
    Lightspeed HQ
Sign In or Register to comment.