List Validation Rules
curl --request GET \
--url https://{cluster}.voucherify.io/v1/validation-rules \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "data",
"data": [
{
"id": "val_auLlxlfTR9Ps",
"name": "Customer in Segment",
"rules": {
"1": {
"name": "customer.segment",
"rules": {},
"property": null,
"conditions": {
"$is": [
"seg_18tD3HR0h8ymPC07rBMLryk3"
]
}
},
"logic": "1"
},
"applicable_to": {
"excluded": [],
"included": [],
"included_all": false
},
"created_at": "2021-12-10T11:08:16.499Z",
"updated_at": "2021-12-10T12:01:41.665Z",
"type": "advanced",
"context_type": "earning_rule.order.paid",
"assignments_count": 1,
"object": "validation_rules"
},
{
"id": "val_AvIe1WWuBXre",
"name": "Order Volume - Price of Any Item - = 1500 USD",
"rules": {
"1": {
"name": "order.items.price_any",
"rules": {},
"property": null,
"conditions": {
"$is": [
150000
]
}
},
"logic": "1"
},
"applicable_to": {
"excluded": [],
"included": [],
"included_all": false
},
"created_at": "2021-12-13T06:54:06.864Z",
"type": "advanced",
"context_type": "reward_assignment.pay_with_points",
"object": "validation_rules"
},
{
"id": "val_aZhPe4tQYMgr",
"name": "Business Validation Rule - excluded",
"rules": {
"logic": ""
},
"applicable_to": {
"excluded": [
{
"object": "products_collection",
"id": "pc_7fVU2RxybhR66YxC7r7BKKRh",
"source_id": null
},
{
"object": "sku",
"id": "sku_0bae3b28f610fd0da1",
"source_id": "first_product_sku_1"
}
],
"included": [],
"included_all": true
},
"created_at": "2022-09-13T14:38:33.710Z",
"type": "basic",
"context_type": "campaign.discount_coupons.discount.apply_to_items_by_quantity",
"assignments_count": 1,
"object": "validation_rules"
},
{
"id": "val_bbJCAXAWtYX0",
"name": "Business Validation Rule - Test - Discount Effect - Amount - Items - each unit of matched product",
"rules": {
"logic": ""
},
"applicable_to": {
"excluded": [],
"included": [
{
"object": "products_collection",
"id": "pc_a11pr0dUc75",
"source_id": null,
"effect": "APPLY_TO_EVERY",
"quantity_limit": 1
}
],
"included_all": false
},
"created_at": "2022-09-02T17:04:23.814Z",
"type": "basic",
"context_type": "campaign.discount_coupons.discount.apply_to_items_by_quantity",
"assignments_count": 1,
"object": "validation_rules"
},
{
"id": "val_BkV21MUJGaiT",
"name": "Order Volume - Total Amount More than 100",
"rules": {
"1": {
"name": "order.amount",
"rules": {},
"property": null,
"conditions": {
"$more_than": [
10000
]
}
},
"logic": "1"
},
"applicable_to": {
"excluded": [],
"included": [],
"included_all": false
},
"created_at": "2021-12-10T14:01:10.750Z",
"type": "advanced",
"context_type": "reward_assignment.pay_with_points",
"object": "validation_rules"
},
{
"id": "val_BTQg027UGl0v",
"name": "Business Validation Rule - Get some $ off",
"rules": {
"logic": ""
},
"applicable_to": {
"excluded": [],
"included": [
{
"object": "product",
"id": "prod_0a41dd45dc85fcab40",
"source_id": "10474"
}
],
"included_all": false
},
"created_at": "2021-12-07T06:58:23.759Z",
"updated_at": "2021-12-22T08:11:18.773Z",
"type": "advanced",
"context_type": "campaign.discount_coupons.discount.apply_to_items",
"assignments_count": 1,
"object": "validation_rules"
}
],
"total": 6
}List Validation Rules
Retrieve validation rules.
GET
/
v1
/
validation-rules
List Validation Rules
curl --request GET \
--url https://{cluster}.voucherify.io/v1/validation-rules \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "data",
"data": [
{
"id": "val_auLlxlfTR9Ps",
"name": "Customer in Segment",
"rules": {
"1": {
"name": "customer.segment",
"rules": {},
"property": null,
"conditions": {
"$is": [
"seg_18tD3HR0h8ymPC07rBMLryk3"
]
}
},
"logic": "1"
},
"applicable_to": {
"excluded": [],
"included": [],
"included_all": false
},
"created_at": "2021-12-10T11:08:16.499Z",
"updated_at": "2021-12-10T12:01:41.665Z",
"type": "advanced",
"context_type": "earning_rule.order.paid",
"assignments_count": 1,
"object": "validation_rules"
},
{
"id": "val_AvIe1WWuBXre",
"name": "Order Volume - Price of Any Item - = 1500 USD",
"rules": {
"1": {
"name": "order.items.price_any",
"rules": {},
"property": null,
"conditions": {
"$is": [
150000
]
}
},
"logic": "1"
},
"applicable_to": {
"excluded": [],
"included": [],
"included_all": false
},
"created_at": "2021-12-13T06:54:06.864Z",
"type": "advanced",
"context_type": "reward_assignment.pay_with_points",
"object": "validation_rules"
},
{
"id": "val_aZhPe4tQYMgr",
"name": "Business Validation Rule - excluded",
"rules": {
"logic": ""
},
"applicable_to": {
"excluded": [
{
"object": "products_collection",
"id": "pc_7fVU2RxybhR66YxC7r7BKKRh",
"source_id": null
},
{
"object": "sku",
"id": "sku_0bae3b28f610fd0da1",
"source_id": "first_product_sku_1"
}
],
"included": [],
"included_all": true
},
"created_at": "2022-09-13T14:38:33.710Z",
"type": "basic",
"context_type": "campaign.discount_coupons.discount.apply_to_items_by_quantity",
"assignments_count": 1,
"object": "validation_rules"
},
{
"id": "val_bbJCAXAWtYX0",
"name": "Business Validation Rule - Test - Discount Effect - Amount - Items - each unit of matched product",
"rules": {
"logic": ""
},
"applicable_to": {
"excluded": [],
"included": [
{
"object": "products_collection",
"id": "pc_a11pr0dUc75",
"source_id": null,
"effect": "APPLY_TO_EVERY",
"quantity_limit": 1
}
],
"included_all": false
},
"created_at": "2022-09-02T17:04:23.814Z",
"type": "basic",
"context_type": "campaign.discount_coupons.discount.apply_to_items_by_quantity",
"assignments_count": 1,
"object": "validation_rules"
},
{
"id": "val_BkV21MUJGaiT",
"name": "Order Volume - Total Amount More than 100",
"rules": {
"1": {
"name": "order.amount",
"rules": {},
"property": null,
"conditions": {
"$more_than": [
10000
]
}
},
"logic": "1"
},
"applicable_to": {
"excluded": [],
"included": [],
"included_all": false
},
"created_at": "2021-12-10T14:01:10.750Z",
"type": "advanced",
"context_type": "reward_assignment.pay_with_points",
"object": "validation_rules"
},
{
"id": "val_BTQg027UGl0v",
"name": "Business Validation Rule - Get some $ off",
"rules": {
"logic": ""
},
"applicable_to": {
"excluded": [],
"included": [
{
"object": "product",
"id": "prod_0a41dd45dc85fcab40",
"source_id": "10474"
}
],
"included_all": false
},
"created_at": "2021-12-07T06:58:23.759Z",
"updated_at": "2021-12-22T08:11:18.773Z",
"type": "advanced",
"context_type": "campaign.discount_coupons.discount.apply_to_items",
"assignments_count": 1,
"object": "validation_rules"
}
],
"total": 6
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Query Parameters
Response
200 - application/json
Returns a dictionary of validation rules.
Response body schema for GET v1/validation-rules.

