{
  "info": {
    "name": "UPIFlow Payment Gateway API",
    "description": "Create UPI payment orders. Set the collection variables base_url, api_key and api_secret before sending.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "base_url", "value": "https://www.example.com" },
    { "key": "api_key", "value": "pi_live_YOUR_PUBLIC_API_KEY" },
    { "key": "api_secret", "value": "sk_live_YOUR_SECRET_API_KEY" }
  ],
  "item": [
    {
      "name": "Create Order",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "X-API-Key", "value": "{{api_key}}" },
          { "key": "X-API-Secret", "value": "{{api_secret}}" }
        ],
        "url": { "raw": "{{base_url}}/api/create-order", "host": ["{{base_url}}"], "path": ["api", "create-order"] },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amount\": 499.00,\n  \"order_id\": \"ORD_{{$timestamp}}\",\n  \"customer_name\": \"Aarav Sharma\",\n  \"customer_mobile\": \"9876543210\",\n  \"callback_url\": \"https://yourwebsite.com/payment-callback\",\n  \"description\": \"Digital Product Order\"\n}"
        }
      }
    }
  ]
}
