{
  "info": {
    "name": "GunUpdate API",
    "description": "REST API for GunUpdate store integrations",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {"key": "base_url", "value": "https://gunupdate.com/api/v1"},
    {"key": "api_key", "value": "YOUR_API_KEY"}
  ],
  "item": [
    {
      "name": "List all guns",
      "request": {
        "method": "GET",
        "url": "{{base_url}}/guns?api_key={{api_key}}",
        "header": []
      }
    },
    {
      "name": "Search guns",
      "request": {
        "method": "GET",
        "url": "{{base_url}}/search?q=glock&api_key={{api_key}}",
        "header": []
      }
    },
    {
      "name": "Identify / Check compatibility",
      "request": {
        "method": "POST",
        "url": "{{base_url}}/identify",
        "header": [
          {"key": "Content-Type", "value": "application/json"},
          {"key": "X-Api-Key", "value": "{{api_key}}"}
        ],
        "body": {
          "mode": "raw",
          "raw": "{\"gun_model_id\": 1}"
        }
      }
    },
    {
      "name": "Check single product compatibility",
      "request": {
        "method": "GET",
        "url": "{{base_url}}/compatibility/1?product_name=Holosun+507C&api_key={{api_key}}",
        "header": []
      }
    },
    {
      "name": "Import store product feed",
      "request": {
        "method": "POST",
        "url": "{{base_url}}/store-feed",
        "header": [
          {"key": "Content-Type", "value": "application/json"},
          {"key": "X-Api-Key", "value": "{{api_key}}"}
        ],
        "body": {
          "mode": "raw",
          "raw": "{\"products\":[{\"accessory_id\":5,\"url\":\"https://yourstore.com/product/1\",\"price\":149.99,\"in_stock\":true,\"country\":\"US\"}]}"
        }
      }
    },
    {
      "name": "Get conversion report (JSON)",
      "request": {
        "method": "GET",
        "url": "{{base_url}}/reports?days=30&format=json",
        "header": [
          {"key": "X-Api-Key", "value": "{{api_key}}"}
        ]
      }
    },
    {
      "name": "Get conversion report (CSV)",
      "request": {
        "method": "GET",
        "url": "{{base_url}}/reports?days=30&format=csv",
        "header": [
          {"key": "X-Api-Key", "value": "{{api_key}}"}
        ]
      }
    }
  ]
}
