Summary
Currently, our gift card system does not include a check to verify if a gift card is active before adding or removing credits. Although this route only concerns making gift card transactions, it's the only way to do so, thus it is expected that some validation will be done.
Therefore, to address this issue, it may be helpful to update the /transaction route to return a more informative status code, such as a 400 Bad Request or 404 Not Found, when attempting to add or remove credits to an inactive gift card. Additionally, providing clear error messages to the user can help prevent misunderstandings and ensure that transactions are accurately processed.
Simulation
Make a request to /transaction route to add or remove credits using a deactivated gift card.
Workaround
N/A