{
  "info": {
    "name": "Scepter Stripe Integration",
    "description": "API collection for testing Stripe subscription system",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Plans",
      "item": [
        {
          "name": "Get All Plans",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/plans",
              "host": ["{{base_url}}"],
              "path": ["api", "plans"]
            }
          }
        },
        {
          "name": "Get Plans for Direct Clients",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/plans?user_type=direct_client",
              "host": ["{{base_url}}"],
              "path": ["api", "plans"],
              "query": [
                {
                  "key": "user_type",
                  "value": "direct_client"
                }
              ]
            }
          }
        },
        {
          "name": "Get Plan by ID",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/plans/2",
              "host": ["{{base_url}}"],
              "path": ["api", "plans", "2"]
            }
          }
        }
      ]
    },
    {
      "name": "Stripe",
      "item": [
        {
          "name": "Create Checkout Session",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"plan_id\": 2,\n  \"location_id\": 1\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/stripe/create-checkout-session",
              "host": ["{{base_url}}"],
              "path": ["api", "stripe", "create-checkout-session"]
            }
          }
        }
      ]
    },
    {
      "name": "Locations",
      "item": [
        {
          "name": "Get All Locations",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/locations",
              "host": ["{{base_url}}"],
              "path": ["api", "locations"]
            }
          }
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "base_url",
      "value": "http://localhost:5000",
      "type": "string"
    }
  ]
}
