{
  "info": {
    "name": "SMS Admin Creator CMS Reports",
    "description": "Postman collection for validating Creator CMS report APIs with X-API-Key authentication.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "BASE_URL", "value": "http://127.0.0.1:8000" },
    { "key": "API_KEY", "value": "b53e0394706374b91780" },
    { "key": "APP_ID", "value": "1019" },
    { "key": "DATE_FROM", "value": "2026-09-01" },
    { "key": "DATE_TO", "value": "2026-09-30" },
    { "key": "PAGE", "value": "1" },
    { "key": "PER_PAGE", "value": "100" },
    { "key": "USER_ID", "value": "" },
    { "key": "SMS_CUST_ID", "value": "" },
    { "key": "SEARCH", "value": "" }
  ],
  "item": [
    {
      "name": "Creator CMS Reports",
      "item": [
        {
          "name": "Customer Registration Report",
          "request": {
            "method": "GET",
            "header": [
              { "key": "X-API-Key", "value": "{{API_KEY}}" },
              { "key": "Accept", "value": "application/json" },
              { "key": "X-Requested-With", "value": "XMLHttpRequest" }
            ],
            "url": {
              "raw": "{{BASE_URL}}/admin/api/creator-cms/reports/customer-registration?app_id={{APP_ID}}&start_date={{DATE_FROM}}&end_date={{DATE_TO}}&page={{PAGE}}&per_page={{PER_PAGE}}",
              "host": ["{{BASE_URL}}"],
              "path": ["admin", "api", "creator-cms", "reports", "customer-registration"],
              "query": [
                { "key": "app_id", "value": "{{APP_ID}}" },
                { "key": "start_date", "value": "{{DATE_FROM}}" },
                { "key": "end_date", "value": "{{DATE_TO}}" },
                { "key": "page", "value": "{{PAGE}}" },
                { "key": "per_page", "value": "{{PER_PAGE}}" },
                { "key": "user_id", "value": "{{USER_ID}}", "disabled": true },
                { "key": "sms_cust_id", "value": "{{SMS_CUST_ID}}", "disabled": true },
                { "key": "search", "value": "{{SEARCH}}", "disabled": true }
              ]
            },
            "description": "Returns live customer registration data from customers and tbl_order for the selected Creator CMS tenant. The response user_id is backed by customers.sms_cust_id."
          }
        },
        {
          "name": "Customer Activity Report",
          "request": {
            "method": "GET",
            "header": [
              { "key": "X-API-Key", "value": "{{API_KEY}}" },
              { "key": "Accept", "value": "application/json" },
              { "key": "X-Requested-With", "value": "XMLHttpRequest" }
            ],
            "url": {
              "raw": "{{BASE_URL}}/admin/api/creator-cms/reports/customer-activity?app_id={{APP_ID}}&start_date={{DATE_FROM}}&end_date={{DATE_TO}}&page={{PAGE}}&per_page={{PER_PAGE}}",
              "host": ["{{BASE_URL}}"],
              "path": ["admin", "api", "creator-cms", "reports", "customer-activity"],
              "query": [
                { "key": "app_id", "value": "{{APP_ID}}" },
                { "key": "start_date", "value": "{{DATE_FROM}}" },
                { "key": "end_date", "value": "{{DATE_TO}}" },
                { "key": "page", "value": "{{PAGE}}" },
                { "key": "per_page", "value": "{{PER_PAGE}}" },
                { "key": "user_id", "value": "{{USER_ID}}", "disabled": true },
                { "key": "sms_cust_id", "value": "{{SMS_CUST_ID}}", "disabled": true },
                { "key": "search", "value": "{{SEARCH}}", "disabled": true }
              ]
            },
            "description": "Returns live customer activity data from customers, customer_devices, and tbl_order for the selected Creator CMS tenant. The response user_id is backed by customers.sms_cust_id."
          }
        }
      ]
    }
  ]
}
