Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
The current gift card system's /transaction route returns a 200 OK status code when adding or removing credits, even if the card is inactive.
The current gift card system's /transaction route returns a 200 OK status code when adding or removing credits, even if the card is inactive.
ID: 795997
Backlog
Published on 4/24/2023
Last update on 5/8/2023

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

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback