{
 "openapi": "3.1.0",
 "info": {
  "title": "Gyro Public API",
  "version": "2.30.0",
  "summary": "Manage Gyro cloud servers, SSH keys and billing programmatically.",
  "x-summary-tr": "Gyro bulut sunucularınızı, SSH anahtarlarınızı ve faturalarınızı programla yönetin.",
  "contact": {
   "name": "Gyro Hosting",
   "url": "https://www.gyrohosting.com"
  },
  "license": {
   "name": "Proprietary",
   "identifier": "LicenseRef-Gyro-API-Terms"
  }
 },
 "servers": [
  {
   "url": "https://www.gyrohosting.com/api/v1/client",
   "description": "Production"
  }
 ],
 "paths": {
  "/cloud/billing/statement/{month}": {
   "get": {
    "operationId": "getPrepaidStatement",
    "tags": [
     "Billing"
    ],
    "summary": "Monthly usage statement (not an invoice); JSON, PDF or CSV",
    "x-gyro-cli": [
     "billing",
     "statement"
    ],
    "parameters": [
     {
      "name": "month",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
      }
     },
     {
      "name": "format",
      "in": "query",
      "schema": {
       "type": "string",
       "enum": [
        "json",
        "pdf",
        "csv"
       ],
       "default": "json"
      }
     },
     {
      "name": "lang",
      "in": "query",
      "schema": {
       "type": "string",
       "enum": [
        "tr",
        "en"
       ],
       "default": "en"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "json: totals/by_service/by_day; pdf|csv: filename, content_type, content_base64"
     },
     "422": {
      "description": "invalid_month"
     }
    },
    "x-scope": "billing_read",
    "x-provided-by": "GyroKredi",
    "description": "Prepaid (hourly, from the account balance) services: Gyro Containers (ECS) and Gyro Cloud Istanbul (tr-ist-1). Times are Europe/Istanbul. Usage is never invoiced: invoices are issued for balance top-ups."
   }
  }
 },
 "security": [
  {
   "bearerAuth": []
  }
 ]
}