skio
Help CenterAdmin API Docs
  • 👋Getting Started
  • 💻App Block Setup
    • What are app blocks?
    • Plan Picker
  • ✏️Manual Theme Setup
    • Manual install process
    • Auto-login to Skio from Shopify Account
  • 📏Rules
    • Rules API
    • Apply Volume Discounts
  • 📦Build-a-Box
    • Static
    • Dynamic
    • Sectioned
  • 🛍️Selling Plan
    • Getting Selling Plan Information
  • 👾Extras
    • Subscription Tags
    • One-click Checkout / Buy Now
    • Redirect Old Customer Portals
  • ❓Troubleshooting
    • Selling Plan Cannot Be Applied to Variant
  • 🛒Shopify API References
    • Liquid Docs
    • AJAX API Docs
    • Storefront GraphQL API Docs
Powered by GitBook
On this page
  1. Rules

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.

PreviousAuto-login to Skio from Shopify AccountNextApply Volume Discounts

Last updated 1 year ago

Fetch Rules API

📏

get-rules-by-domain-or-hostname

get

get-rules-by-domain-or-hostname

Query parameters
domainstringOptionalExample: {{SHOP_NAME}}.myshopify.com
Responses
200Success
application/json
get
GET /storefront-http/get-rules-by-domain-or-hostname HTTP/1.1
Host: api.skio.com
Accept: */*
200Success
{
  "rules": [
    {
      "id": "text",
      "type": "text",
      "name": "text",
      "data": {
        "discount": {
          "type": "text",
          "amount": 1
        },
        "startDate": "2025-05-29T05:59:25.010Z",
        "cycleToApply": 1,
        "enableABTesting": true,
        "variantToQuantity": {
          "ANY_ADDITIONAL_PROPERTY": 1
        },
        "abTestingPercentage": 1
      }
    }
  ]
}
  • Fetch Rules API
  • GETget-rules-by-domain-or-hostname