Giftcard provider - Problem adding coupon

Good afternoon. I’m developing an API with functions to integrate a gift card provider with VTEX.

I’ve already added it using PUT https://{accountName}.{environment}.com.br/api/giftcardproviders/{giftCardProviderId} and it was added correctly.

In the checkout, interaction between VTEX and my API is already happening, showing the customer’s balance on screen (image below).

However, when I click “Use Credit”, the site shows a message “The Gift Card is no longer available for use” (image below).

I’m stuck on this part — if anyone can shed some light on why this is happening, I’d appreciate it. I saw there are some videos in Spanish here but I don’t know any Spanish.

One more thing I almost forgot… I’m monitoring all the VTEX calls to my API and no function other than /giftcards/_search is being called. I found that strange as well.

image

I managed to fix it. There was a problem with my API.