{
  "name": "PAYFLUX API",
  "version": "v1",
  "docs": "https://docs.payflux.rajnishcodex.shop",
  "site": "https://payflux.rajnishcodex.shop",
  "base": "https://api.payflux.rajnishcodex.shop",
  "auth": "Send header X-API-KEY: <your key> on every private request",
  "endpoints": {
    "create_order": {
      "method": "POST",
      "path": "/v1/create-order",
      "headers": {
        "X-API-KEY": "required",
        "Content-Type": "application/json"
      },
      "body": {
        "amount": "number (INR, > 0)",
        "customer_email": "optional string",
        "note": "optional string",
        "expires_in_minutes": "optional 1–60, default 5"
      }
    },
    "check_status": {
      "method": "GET",
      "path": "/v1/check-status/{order_id}",
      "headers": {
        "X-API-KEY": "required"
      }
    },
    "public_payment": {
      "method": "GET",
      "path": "/payment/{order_id}?format=json",
      "headers": "none"
    },
    "qr": {
      "method": "GET",
      "path": "/v1/qr/{order_id}",
      "headers": "none"
    }
  },
  "example_curl": "curl -X POST https://api.payflux.rajnishcodex.shop/v1/create-order -H \"X-API-KEY: $PAYFLUX_API_KEY\" -H \"Content-Type: application/json\" -d '{\"amount\":249}'"
}