Replaces the redeemable's custom tag group with the given
key-value pairs. Tags inherited from the purchase (product,
variant, addon, promotion, discount_group) are never
modified. Send an empty object to clear the custom tags. Filter
vouchers by these tags with filter[tags][custom.<key>].
Useful for storing client-side state against a redeemable, such
as a hold amount on a monetary redeemable.
Requires redeem_vouchers permission.
POST
/redeemables/{redeemable}/update-tags
curl \
--request POST 'https://api.gb.enjovia.app/redeemables/{redeemable}/update-tags' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "Account-ID: string" \
--data '{"tags":{"hold_amount":"5000","hold_reference":"THTR-1234"}}'
Request examples
# Headers
Account-ID: string
# Payload
{
"tags": {
"hold_amount": "5000",
"hold_reference": "THTR-1234"
}
}
Response examples (200)
{
"data": {
"id": "abc12345-e89b-12d3-a456-426614174000",
"type": "monetary",
"status": "issued",
"valid_from": "2024-01-01",
"valid_to": "2024-12-31",
"valid_days": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday"
],
"currency_code": "usd",
"monetary_value": 5000,
"name": "$50 Gift Card",
"custom_fields": {
"color": "gold",
"category": "dining"
},
"tags": {
"product": {
"product_category": "gift-cards",
"department": "dining"
},
"promotion": {
"campaign": "summer-sale"
},
"discount_group": {},
"custom": {
"hold_amount": "5000"
}
},
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-15T14:35:00Z",
"is_live": true,
"invalid_reason": "This voucher is only valid Monday-Friday",
"redeem_locations": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Main Street Location",
"is_active": true
}
]
}
}