Validate Voucher (client-side)
curl --request GET \
--url https://{cluster}.voucherify.io/client/v1/validate \
--header 'Authorization: Bearer <token>' \
--header 'X-Client-Application-Id: <api-key>' \
--header 'X-Client-Token: <api-key>' \
--header 'origin: <origin>'
{
"valid": false,
"reason": "customer does not match validation rules",
"error": {
"message": "Only the gift card owner can apply credits from the gift card to the order."
},
"tracking_id": "track_0nmdnu/6xIb6NTN0Ea40oFmM4wD5QYlxAgKdSn6wh+o",
"code": "GIFT-CARD-kW4aEsfB",
"metadata": {}
}