I am trying to set up a gift card on my website an...
# suitecommerce
b
I am trying to set up a gift card on my website and the variable amount is not working. I checked the variable amount box, I set the default amount, and the price shows up and its not editable
s
The Commerce API does not support variable amounts and therefore variable price gift cards don’t work
b
So you can't use the variable gift card on the website? When would you use that field then?
s
You can’t buy them through the website, no. But they can be purchased through the ERP, for example, and they’re supported in Site Builder. You can, for example, use the WSDK endpoints (wooo 20th birthday today 🎉) if you have a Site Builder licence to create a customisation that lets you add them to the cart
But it’s rather hacky so I’m not a fan
If you want to raise an enhancement request, it’s issue 263009
(An example of the endpoint still in use on my site, https://suitecommerce.stevegoldberg.co.uk/app/site/backend/additemtocart.nl?c=TSTDRV1358593&n=8&buyid=8256&qty=1&amount=123.45). But as I said, not recommended and I haven’t tested it with gift certificates but it should probably work