Custom Conditions
Define custom conditions to control when webhooks are triggered. Use complex logic to ensure keys are only generated for specific purchase scenarios.
1
Condition Types
• Contains: Check if field contains text
• Equals: Exact string match
• Regex: Pattern matching
• Exists: Check if field exists
• AND: All conditions must be true
• OR: Any condition can be true
• Nested Groups: Complex logic combinations
• Case Sensitivity: Optional case matching
2
Field Paths
Use dot notation to access nested fields in the webhook payload:
Examples:
item.quantity - Access quantity field
customer.email - Access customer email
payment.status - Access payment status
metadata.product_id - Access nested metadata3
Example Conditions
Simple Condition:
Generate keys only for premium products:
Field:
item.type
Condition:
equals "premium"Complex Condition:
Generate keys for successful payments with specific quantity:
Group 1 (AND):
payment.status equals "completed"
item.quantity greater_than 0
Group 2 (OR):
item.type equals "premium"
item.type equals "standard"Last updated