Gift Card validation API (Optional)
Use the Gift Card validation API
Use the new SKU structure
Update the custom line item attributes
Gift Card validation API
GET https://{shopDomain}/apps/dotapparel21/api-giftcardValidation?
// Query parameters
number // voucher number e.g. 2062389
pin // PIN number e.g. 7452
amount // validation amount e.g. 100
// Response
{
"data": {
"voucher_number": "2062389",
"expiry_date": "2026-07-07",
"original_amount": "150.00",
"original_amount_int": 15000,
"used_amount": "0.00",
"used_amount_int": 0,
"available_amount": "150.00",
"available_amount_int": 15000,
"validated_amount": "100.00",
"validated_amount_int": 10000,
"shopify_code": "16892131261792389",
"shopify_expires_at": null
}
}
Check Gift Card balance API
Last updated