Replaces the order's custom tag group with the given key-value
pairs. Tags inherited from the purchase (store, products,
variants, addons, promotion, user) are never modified.
Send an empty object to clear the custom tags. Filter orders by
these tags with filter[tags][custom.<key>].
Requires process_orders permission.
POST
/orders/{order}/update-tags
curl \
--request POST 'https://api.gb.enjovia.app/orders/{order}/update-tags' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "Account-ID: string" \
--data '{"tags":{"campaign":"summer-sale","source":"terminal"}}'
Request examples
# Headers
Account-ID: string
# Payload
{
"tags": {
"campaign": "summer-sale",
"source": "terminal"
}
}
Response examples (200)
{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"is_live": true,
"is_imported": false,
"reference": "AB123",
"custom_checkout_fields": {},
"tags": {
"store": {
"department": "front-desk"
},
"products": [
{
"category": "gift-cards",
"season": "summer"
}
],
"promotion": {
"campaign": "summer-sale"
}
},
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-15T14:35:00Z",
"store": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"subdomain": "acme-shop",
"name": "ACME Store",
"currency": {
"code": "usd"
}
},
"transaction": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"list_prices_include_tax": false,
"list_price": 5000,
"promotion_name": "Summer Sale - 20% Off",
"promotion_code": "SUMMER20",
"discounts": {
"promotion": 1000,
"staff_discount": 150
},
"tax_percentages": {
"0": 0,
"0.2": 167,
"0.1": 50
},
"tax": 850,
"value": 4850,
"currency_code": "usd",
"buyer": {
"email": "customer@example.com",
"name": "John Smith"
},
"marketing_consent": true,
"completed_at": "2024-01-15T14:30:00Z",
"type": "online",
"is_imported": false,
"payment_gateway": "Stripe",
"payment_reference": "cs_live_a11YYufWQzNY63zpQ6QSNRQhkUpVph4WRmzW0zWJO2znZKdVujZ0N0S22u"
},
"redeemables": [
{
"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
}
]
}
],
"vouchers": [
{
"id": "789e4567-e89b-12d3-a456-426614174000",
"reference": "AB123-CD",
"name": "Premium Gift Card",
"recipient_name": "Jane Doe",
"from_name": "John Smith",
"message": "Happy Birthday! Enjoy your special day.",
"custom_fields": {
"template": "birthday",
"custom_image_url": "https://example.com/image.jpg"
},
"created_at": "2024-01-15T14:30:00Z",
"updated_at": "2024-01-15T14:35:00Z",
"order_date": "2024-01-15T14:30:00Z",
"redeemables": [
{
"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
}
]
}
]
}
],
"notes_count": 3,
"notes": [
{
"content": "Customer called to confirm delivery address. Will be home after 3pm.",
"created_at": "2024-01-15T14:30:00Z",
"user": {
"name": "Sarah Johnson"
}
}
]
}
}