{
  "info": {
    "name": "Super Admin API",
    "description": "Complete Super Admin REST API collection for Markatty SAAS platform",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [{"key": "token", "value": "{{token}}", "type": "string"}]
  },
  "variable": [
    {"key": "base_url", "value": "https://your-domain.com/api/v1/super"}
  ],
  "item": [
    {
      "name": "Auth",
      "item": [
        {
          "name": "Login",
          "request": {
            "auth": {"type": "noauth"},
            "method": "POST",
            "url": "{{base_url}}/login",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"email\": \"admin@example.com\", \"password\": \"password\", \"device_name\": \"postman\"}"}
          }
        },
        {
          "name": "Forgot Password",
          "request": {
            "auth": {"type": "noauth"},
            "method": "POST",
            "url": "{{base_url}}/forgot-password",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"email\": \"admin@example.com\"}"}
          }
        },
        {
          "name": "Reset Password",
          "request": {
            "auth": {"type": "noauth"},
            "method": "POST",
            "url": "{{base_url}}/reset-password",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"token\": \"reset-token\", \"email\": \"admin@example.com\", \"password\": \"newpassword\", \"password_confirmation\": \"newpassword\"}"}
          }
        },
        {
          "name": "Get Account",
          "request": {"method": "GET", "url": "{{base_url}}/account", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Update Account",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/account",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"first_name\": \"John\", \"last_name\": \"Doe\", \"email\": \"admin@example.com\"}"}
          }
        },
        {
          "name": "Logout",
          "request": {"method": "DELETE", "url": "{{base_url}}/logout", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Dashboard",
      "item": [
        {
          "name": "Get Dashboard Stats",
          "request": {"method": "GET", "url": "{{base_url}}/dashboard", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Top Companies",
          "request": {"method": "GET", "url": "{{base_url}}/dashboard/top-companies?limit=10", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Tenants",
      "item": [
        {
          "name": "List Tenants",
          "request": {"method": "GET", "url": "{{base_url}}/tenants?per_page=15&search=&status=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Tenant",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/tenants",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"name\": \"New Company\", \"email\": \"company@example.com\", \"domain\": \"newcompany.markatty.com\", \"username\": \"newcompany\", \"password\": \"password123\", \"is_active\": 1}"}
          }
        },
        {
          "name": "Get Tenant",
          "request": {"method": "GET", "url": "{{base_url}}/tenants/{{tenant_id}}", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Update Tenant",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/tenants/{{tenant_id}}",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"name\": \"Updated Company\", \"domain\": \"updated.markatty.com\", \"is_active\": 1, \"reliable\": 1, \"cname\": null}"}
          }
        },
        {
          "name": "Delete Tenant",
          "request": {"method": "DELETE", "url": "{{base_url}}/tenants/{{tenant_id}}", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Mass Delete Tenants",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/tenants/mass-delete",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"ids\": [1, 2, 3]}"}
          }
        },
        {
          "name": "Get Tenant Stats",
          "request": {"method": "GET", "url": "{{base_url}}/tenants/{{tenant_id}}/stats", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Login As Admin",
          "request": {"method": "POST", "url": "{{base_url}}/tenants/{{tenant_id}}/login-as-admin", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Toggle Status",
          "request": {"method": "POST", "url": "{{base_url}}/tenants/{{tenant_id}}/toggle-status", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Reset Tenant Password",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/tenants/{{tenant_id}}/reset-password",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"password\": \"newpassword\", \"password_confirmation\": \"newpassword\"}"}
          }
        },
        {
          "name": "Permanent Delete (Products/Categories)",
          "request": {"method": "POST", "url": "{{base_url}}/tenants/{{tenant_id}}/permanent-delete", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Agents",
      "item": [
        {
          "name": "List Agents",
          "request": {"method": "GET", "url": "{{base_url}}/agents?per_page=15&search=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Agent",
          "request": {"method": "GET", "url": "{{base_url}}/agents/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Agent",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/agents",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"first_name\": \"New\", \"last_name\": \"Agent\", \"email\": \"agent@example.com\", \"password\": \"password123\", \"password_confirmation\": \"password123\", \"role_id\": 1, \"status\": 1}"}
          }
        },
        {
          "name": "Update Agent",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/agents/1",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"first_name\": \"Updated\", \"last_name\": \"Agent\", \"email\": \"agent@example.com\", \"role_id\": 1, \"status\": 1}"}
          }
        },
        {
          "name": "Delete Agent",
          "request": {"method": "DELETE", "url": "{{base_url}}/agents/1", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Roles",
      "item": [
        {
          "name": "List Roles",
          "request": {"method": "GET", "url": "{{base_url}}/roles?per_page=15&search=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get ACL",
          "request": {"method": "GET", "url": "{{base_url}}/roles/acl", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Role",
          "request": {"method": "GET", "url": "{{base_url}}/roles/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Role",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/roles",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"name\": \"New Role\", \"description\": \"Role description\", \"permission_type\": \"all\", \"permissions\": []}"}
          }
        },
        {
          "name": "Update Role",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/roles/1",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"name\": \"Updated Role\", \"description\": \"Updated description\", \"permission_type\": \"custom\", \"permissions\": [\"dashboard\", \"tenants\"]}"}
          }
        },
        {
          "name": "Delete Role",
          "request": {"method": "DELETE", "url": "{{base_url}}/roles/1", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Locales",
      "item": [
        {
          "name": "List Locales",
          "request": {"method": "GET", "url": "{{base_url}}/locales?per_page=15&search=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Locale",
          "request": {"method": "GET", "url": "{{base_url}}/locales/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Locale",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/locales",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"code\": \"fr\", \"name\": \"French\", \"direction\": \"ltr\"}"}
          }
        },
        {
          "name": "Update Locale",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/locales/1",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"code\": \"fr\", \"name\": \"Français\", \"direction\": \"ltr\"}"}
          }
        },
        {
          "name": "Delete Locale",
          "request": {"method": "DELETE", "url": "{{base_url}}/locales/1", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Currencies",
      "item": [
        {
          "name": "List Currencies",
          "request": {"method": "GET", "url": "{{base_url}}/currencies?per_page=15&search=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Currency",
          "request": {"method": "GET", "url": "{{base_url}}/currencies/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Currency",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/currencies",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"code\": \"EUR\", \"name\": \"Euro\"}"}
          }
        },
        {
          "name": "Update Currency",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/currencies/1",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"code\": \"EUR\", \"name\": \"Euro Updated\"}"}
          }
        },
        {
          "name": "Delete Currency",
          "request": {"method": "DELETE", "url": "{{base_url}}/currencies/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Mass Delete Currencies",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/currencies/mass-delete",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"ids\": [1, 2]}"}
          }
        }
      ]
    },
    {
      "name": "Exchange Rates",
      "item": [
        {
          "name": "List Exchange Rates",
          "request": {"method": "GET", "url": "{{base_url}}/exchange-rates?per_page=15", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Exchange Rate",
          "request": {"method": "GET", "url": "{{base_url}}/exchange-rates/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Exchange Rate",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/exchange-rates",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"target_currency\": 2, \"rate\": 0.85}"}
          }
        },
        {
          "name": "Update Exchange Rate",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/exchange-rates/1",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"target_currency\": 2, \"rate\": 0.90}"}
          }
        },
        {
          "name": "Delete Exchange Rate",
          "request": {"method": "DELETE", "url": "{{base_url}}/exchange-rates/1", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Channels",
      "item": [
        {
          "name": "List Channels",
          "request": {"method": "GET", "url": "{{base_url}}/channels", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Channel",
          "request": {"method": "GET", "url": "{{base_url}}/channels/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Update Channel",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/channels/1",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"code\": \"default\", \"name\": \"Default Channel\", \"locales\": [1, 2], \"default_locale_id\": 1, \"currencies\": [1], \"base_currency_id\": 1, \"meta_title\": \"My Store\", \"meta_keywords\": \"store, ecommerce\", \"meta_description\": \"Best store\"}"}
          }
        }
      ]
    },
    {
      "name": "CMS Pages",
      "item": [
        {
          "name": "List Pages",
          "request": {"method": "GET", "url": "{{base_url}}/cms/pages?per_page=15", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Page",
          "request": {"method": "GET", "url": "{{base_url}}/cms/pages/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Page",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/cms/pages",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"url_key\": \"about-us\", \"page_title\": \"About Us\", \"channels\": [1], \"html_content\": \"<h1>About Us</h1><p>Content here</p>\"}"}
          }
        },
        {
          "name": "Update Page",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/cms/pages/1",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"en\": {\"url_key\": \"about-us\", \"page_title\": \"About Us Updated\", \"html_content\": \"<h1>Updated</h1>\"}, \"channels\": [1]}"}
          }
        },
        {
          "name": "Delete Page",
          "request": {"method": "DELETE", "url": "{{base_url}}/cms/pages/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Mass Delete Pages",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/cms/pages/mass-delete",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"ids\": [1, 2]}"}
          }
        }
      ]
    },
    {
      "name": "CMS Templates",
      "item": [
        {
          "name": "List Templates",
          "request": {"method": "GET", "url": "{{base_url}}/cms/templates?per_page=15", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Template",
          "request": {"method": "GET", "url": "{{base_url}}/cms/templates/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Template",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/cms/templates",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"template_code\": \"about-us\", \"content\": \"<h1>Template Content</h1>\"}"}
          }
        },
        {
          "name": "Update Template",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/cms/templates/1",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"template_code\": \"about-us\", \"en\": {\"content\": \"<h1>Updated Content</h1>\"}}"}
          }
        },
        {
          "name": "Delete Template",
          "request": {"method": "DELETE", "url": "{{base_url}}/cms/templates/1", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Configuration",
      "item": [
        {
          "name": "Get Config Tree",
          "request": {"method": "GET", "url": "{{base_url}}/configuration", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Config Section",
          "request": {"method": "GET", "url": "{{base_url}}/configuration/general/design", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Store Config",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/configuration/general/design",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"general\": {\"design\": {\"admin_logo\": \"path/to/logo.png\"}}}"}
          }
        },
        {
          "name": "Get All Payment Settings",
          "request": {"method": "GET", "url": "{{base_url}}/configuration/payment-settings", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Update Fawry Settings",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/configuration/payment-settings/fawry",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"liveCode\": \"your_fawry_live_code\", \"liveSecret\": \"your_fawry_live_secret\", \"active\": \"1\"}"}
          }
        },
        {
          "name": "Update Tabby Settings",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/configuration/payment-settings/tabby",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"publicKey\": \"your_tabby_public_key\", \"secretKey\": \"your_tabby_secret_key\", \"merchantCode\": \"your_merchant_code\", \"active\": \"1\"}"}
          }
        },
        {
          "name": "Update Credit Card (Paymob/Paytabs) Settings",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/configuration/payment-settings/creditcard",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"title\": \"Credit Card\", \"description\": \"Pay with credit card\", \"pay_gateway\": \"2\", \"profileID\": \"your_profile_id\", \"serverKey\": \"your_server_key\", \"apiKey\": \"your_api_key\", \"integrationID\": \"your_integration_id\", \"iframeID\": \"your_iframe_id\", \"active\": \"1\", \"sort\": \"1\"}"}
          }
        },
        {
          "name": "Update Subscription General Settings",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/configuration/payment-settings/general",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"allow_trial\": \"1\", \"trial_days\": \"14\", \"warning_expire_days\": \"7\", \"trial_plan\": \"1\"}"}
          }
        },
        {
          "name": "Toggle Fawry Active/Inactive",
          "request": {
            "method": "PATCH",
            "url": "{{base_url}}/configuration/payment-settings/fawry/toggle",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"active\": true}"}
          }
        },
        {
          "name": "Toggle Tabby Active/Inactive",
          "request": {
            "method": "PATCH",
            "url": "{{base_url}}/configuration/payment-settings/tabby/toggle",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"active\": false}"}
          }
        },
        {
          "name": "Toggle Credit Card Active/Inactive",
          "request": {
            "method": "PATCH",
            "url": "{{base_url}}/configuration/payment-settings/creditcard/toggle",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"active\": true}"}
          }
        }
      ]
    },
    {
      "name": "Email",
      "item": [
        {
          "name": "Send Email to All Tenants",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/email/send",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"subject\": \"Important Update\", \"body\": \"<h1>Hello</h1><p>This is an important update.</p>\"}"}
          }
        }
      ]
    },
    {
      "name": "Support Tickets",
      "item": [
        {
          "name": "List Tickets",
          "request": {"method": "GET", "url": "{{base_url}}/support/tickets?per_page=15&search=&status=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Ticket",
          "request": {"method": "GET", "url": "{{base_url}}/support/tickets/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Reply to Ticket",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/support/tickets/1/reply",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"message\": \"Thank you for contacting us. We will look into this.\"}"}
          }
        },
        {
          "name": "Close Ticket",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/support/tickets/1/close",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"message\": \"Issue resolved. Closing ticket.\"}"}
          }
        },
        {
          "name": "Delete Ticket",
          "request": {"method": "DELETE", "url": "{{base_url}}/support/tickets/1", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Analytics",
      "item": [
        {
          "name": "Customers (Cross-Tenant)",
          "request": {"method": "GET", "url": "{{base_url}}/analytics/customers?per_page=15&search=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Products (Cross-Tenant)",
          "request": {"method": "GET", "url": "{{base_url}}/analytics/products?per_page=15&search=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Orders (Cross-Tenant)",
          "request": {"method": "GET", "url": "{{base_url}}/analytics/orders?per_page=15&search=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Company Details",
          "request": {"method": "GET", "url": "{{base_url}}/analytics/details?per_page=15&search=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Company Statistics",
          "request": {"method": "GET", "url": "{{base_url}}/analytics/statistics?per_page=15&search=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Plans History",
          "request": {"method": "GET", "url": "{{base_url}}/analytics/plans-history?per_page=15&search=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Companies Using Payments",
          "request": {"method": "GET", "url": "{{base_url}}/analytics/companies-using-payments?per_page=15&search=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Companies Using Carriers",
          "request": {"method": "GET", "url": "{{base_url}}/analytics/companies-using-carriers?per_page=15&search=", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Domain Management",
      "item": [
        {
          "name": "List Domains",
          "request": {"method": "GET", "url": "{{base_url}}/domains", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Update Domain Docroot",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/domains",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"domain\": \"subdomain.example.com\", \"docroot\": \"production\"}"}
          }
        }
      ]
    },
    {
      "name": "Activity Logs",
      "item": [
        {
          "name": "List Activity Logs",
          "request": {"method": "GET", "url": "{{base_url}}/activity-logs?per_page=15&event=&subject_type=&causer_id=&start_date=&end_date=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Activity Log Statistics",
          "request": {"method": "GET", "url": "{{base_url}}/activity-logs/statistics?days=30", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Activity Logs by Company",
          "request": {"method": "GET", "url": "{{base_url}}/activity-logs/company/{{tenant_id}}?per_page=15", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Activity Log Details",
          "request": {"method": "GET", "url": "{{base_url}}/activity-logs/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Cleanup Old Activity Logs",
          "request": {
            "method": "DELETE",
            "url": "{{base_url}}/activity-logs/cleanup",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"days_to_keep\": 90}"}
          }
        }
      ]
    },
    {
      "name": "Subscription Plans",
      "item": [
        {
          "name": "List Plans",
          "request": {"method": "GET", "url": "{{base_url}}/subscription/plans?per_page=15", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Plan",
          "request": {"method": "GET", "url": "{{base_url}}/subscription/plans/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Plan",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/subscription/plans",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"code\": \"premium\", \"name\": \"Premium Plan\", \"description\": \"Premium subscription plan\", \"monthly_amount\": 99.99, \"yearly_amount\": 999.99, \"status\": 1, \"features\": [{\"feature_id\": 1, \"value\": \"100\", \"is_shown\": true}]}"}
          }
        },
        {
          "name": "Update Plan",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/subscription/plans/1",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"name\": \"Premium Plan Updated\", \"monthly_amount\": 149.99, \"yearly_amount\": 1499.99, \"status\": 1}"}
          }
        },
        {
          "name": "Delete Plan",
          "request": {"method": "DELETE", "url": "{{base_url}}/subscription/plans/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Toggle Plan Status",
          "request": {"method": "PATCH", "url": "{{base_url}}/subscription/plans/1/toggle-status", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Update Plan Features",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/subscription/plans/1/features",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"features\": [{\"feature_id\": 1, \"value\": \"200\", \"is_shown\": true, \"position\": 1}, {\"feature_id\": 2, \"value\": \"50\", \"is_shown\": true, \"position\": 2}]}"}
          }
        }
      ]
    },
    {
      "name": "Subscription Features",
      "item": [
        {
          "name": "List Features",
          "request": {"method": "GET", "url": "{{base_url}}/subscription/features?per_page=15&active_only=false", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Sections",
          "request": {"method": "GET", "url": "{{base_url}}/subscription/features/sections", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Feature",
          "request": {"method": "GET", "url": "{{base_url}}/subscription/features/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Feature",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/subscription/features",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"name\": \"Max Products\", \"section_id\": 1, \"is_bool\": false, \"active\": true, \"position\": 10}"}
          }
        },
        {
          "name": "Update Feature",
          "request": {
            "method": "PUT",
            "url": "{{base_url}}/subscription/features/1",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"name\": \"Max Products Updated\", \"active\": true, \"position\": 5}"}
          }
        },
        {
          "name": "Delete Feature",
          "request": {"method": "DELETE", "url": "{{base_url}}/subscription/features/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Toggle Feature Active",
          "request": {"method": "PATCH", "url": "{{base_url}}/subscription/features/1/toggle-active", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Subscription Invoices",
      "item": [
        {
          "name": "List Invoices",
          "request": {"method": "GET", "url": "{{base_url}}/subscription/invoices?per_page=15&status=&company_id=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Invoice",
          "request": {"method": "GET", "url": "{{base_url}}/subscription/invoices/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Invoice Statistics",
          "request": {"method": "GET", "url": "{{base_url}}/subscription/invoices/statistics?days=30", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Invoices by Company",
          "request": {"method": "GET", "url": "{{base_url}}/subscription/invoices/company/{{tenant_id}}?per_page=15", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Subscription Profiles (Purchased Plans)",
      "item": [
        {
          "name": "List Recurring Profiles",
          "request": {"method": "GET", "url": "{{base_url}}/subscription/profiles?per_page=15&state=&company_id=", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Recurring Profile",
          "request": {"method": "GET", "url": "{{base_url}}/subscription/profiles/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Subscription Statistics",
          "request": {"method": "GET", "url": "{{base_url}}/subscription/profiles/statistics", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Assign Plan to Company",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/subscription/profiles/assign/{{tenant_id}}",
            "header": [{"key": "Content-Type", "value": "application/json"}, {"key": "Accept", "value": "application/json"}],
            "body": {"mode": "raw", "raw": "{\"plan_id\": 1, \"period_unit\": \"month\", \"duration\": 12, \"start_date\": \"2024-01-01\"}"}
          }
        },
        {
          "name": "Cancel Subscription",
          "request": {"method": "PATCH", "url": "{{base_url}}/subscription/profiles/1/cancel", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Reactivate Subscription",
          "request": {"method": "PATCH", "url": "{{base_url}}/subscription/profiles/1/reactivate", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Content - Media",
      "item": [
        {
          "name": "List Media",
          "request": {"method": "GET", "url": "{{base_url}}/content/media", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Media Item",
          "request": {"method": "GET", "url": "{{base_url}}/content/media/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Media",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/content/media",
            "header": [{"key": "Accept", "value": "application/json"}],
            "body": {"mode": "formdata", "formdata": [{"key": "type", "value": "image", "type": "text"}, {"key": "url", "value": "https://example.com", "type": "text"}, {"key": "image_path", "type": "file", "src": ""}]}
          }
        },
        {
          "name": "Update Media",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/content/media/1",
            "header": [{"key": "Accept", "value": "application/json"}],
            "body": {"mode": "formdata", "formdata": [{"key": "type", "value": "image", "type": "text"}, {"key": "url", "value": "https://example.com/updated", "type": "text"}, {"key": "image_path", "type": "file", "src": ""}]}
          }
        },
        {
          "name": "Delete Media",
          "request": {"method": "DELETE", "url": "{{base_url}}/content/media/1", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Content - Sliders",
      "item": [
        {
          "name": "List Sliders",
          "request": {"method": "GET", "url": "{{base_url}}/content/sliders", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Slider",
          "request": {"method": "GET", "url": "{{base_url}}/content/sliders/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Slider",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/content/sliders",
            "header": [{"key": "Accept", "value": "application/json"}],
            "body": {"mode": "formdata", "formdata": [{"key": "url", "value": "https://example.com", "type": "text"}, {"key": "image_path", "type": "file", "src": ""}]}
          }
        },
        {
          "name": "Update Slider",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/content/sliders/1",
            "header": [{"key": "Accept", "value": "application/json"}],
            "body": {"mode": "formdata", "formdata": [{"key": "url", "value": "https://example.com/updated", "type": "text"}, {"key": "image_path", "type": "file", "src": ""}]}
          }
        },
        {
          "name": "Delete Slider",
          "request": {"method": "DELETE", "url": "{{base_url}}/content/sliders/1", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Content - Logos",
      "item": [
        {
          "name": "List Logos",
          "request": {"method": "GET", "url": "{{base_url}}/content/logos", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Logo",
          "request": {"method": "GET", "url": "{{base_url}}/content/logos/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Logo",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/content/logos",
            "header": [{"key": "Accept", "value": "application/json"}],
            "body": {"mode": "formdata", "formdata": [{"key": "url", "value": "https://example.com", "type": "text"}, {"key": "image_path", "type": "file", "src": ""}]}
          }
        },
        {
          "name": "Update Logo",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/content/logos/1",
            "header": [{"key": "Accept", "value": "application/json"}],
            "body": {"mode": "formdata", "formdata": [{"key": "url", "value": "https://example.com/updated", "type": "text"}, {"key": "image_path", "type": "file", "src": ""}]}
          }
        },
        {
          "name": "Delete Logo",
          "request": {"method": "DELETE", "url": "{{base_url}}/content/logos/1", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Content - Testimonials",
      "item": [
        {
          "name": "List Testimonials",
          "request": {"method": "GET", "url": "{{base_url}}/content/testimonials", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Testimonial",
          "request": {"method": "GET", "url": "{{base_url}}/content/testimonials/1", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Testimonial",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/content/testimonials",
            "header": [{"key": "Accept", "value": "application/json"}],
            "body": {"mode": "formdata", "formdata": [{"key": "author_name", "value": "John Doe", "type": "text"}, {"key": "company_name", "value": "Acme Corp", "type": "text"}, {"key": "rating", "value": "5", "type": "text"}, {"key": "comment", "value": "Great platform!", "type": "text"}, {"key": "locale", "value": "en", "type": "text"}, {"key": "company_logo", "type": "file", "src": ""}]}
          }
        },
        {
          "name": "Update Testimonial",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/content/testimonials/1",
            "header": [{"key": "Accept", "value": "application/json"}],
            "body": {"mode": "formdata", "formdata": [{"key": "author_name", "value": "John Updated", "type": "text"}, {"key": "company_name", "value": "Acme Corp", "type": "text"}, {"key": "rating", "value": "4", "type": "text"}, {"key": "comment", "value": "Updated review", "type": "text"}, {"key": "company_logo", "type": "file", "src": ""}]}
          }
        },
        {
          "name": "Delete Testimonial",
          "request": {"method": "DELETE", "url": "{{base_url}}/content/testimonials/1", "header": [{"key": "Accept", "value": "application/json"}]}
        }
      ]
    },
    {
      "name": "Themes",
      "item": [
        {
          "name": "List Themes",
          "request": {"method": "GET", "url": "{{base_url}}/themes", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Theme",
          "request": {"method": "GET", "url": "{{base_url}}/themes/velocity", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Get Theme Statistics",
          "request": {"method": "GET", "url": "{{base_url}}/themes/statistics", "header": [{"key": "Accept", "value": "application/json"}]}
        },
        {
          "name": "Create Theme",
          "request": {
            "method": "POST",
            "url": "{{base_url}}/themes",
            "header": [{"key": "Accept", "value": "application/json"}],
            "body": {"mode": "formdata", "formdata": [{"key": "key", "value": "new-theme", "type": "text"}, {"key": "preview", "value": "https://store.example.com", "type": "text"}, {"key": "main_theme", "value": "multicart", "type": "text"}, {"key": "main_image", "type": "file", "src": ""}]}
          }
        }
      ]
    }
  ]
}
