Rules API
The rules API provides information about surprise and delight and volume discounts that can be used to inform customers on the front end.
Fetch Rules API
Last updated
The rules API provides information about surprise and delight and volume discounts that can be used to inform customers on the front end.
Last updated
GET /storefront-http/get-rules-by-domain-or-hostname HTTP/1.1
Host: api.skio.com
Accept: */*
{
"rules": [
{
"id": "text",
"type": "text",
"name": "text",
"data": {
"discount": {
"type": "text",
"amount": 1
},
"startDate": "2025-12-18T04:34:46.627Z",
"cycleToApply": 1,
"enableABTesting": true,
"variantToQuantity": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"abTestingPercentage": 1
}
}
]
}