{
  "openapi": "3.1.0",
  "info": {
    "title": "Whish Vouchers",
    "version": "1.3",
    "description": "Purchase digital vouchers and airtime PINs."
  },
  "servers": [
    {
      "url": "https://api.whish.money/itel-service/api",
      "description": "Production"
    },
    {
      "url": "https://api.sandbox.whish.money/itel-service/api",
      "description": "Sandbox"
    }
  ],
  "components": {
    "securitySchemes": {
      "sessionIdAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "sessionId"
      },
      "tokenAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "token"
      },
      "languageAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "language"
      },
      "UserAgentAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "User-Agent"
      }
    }
  },
  "security": [
    {
      "sessionIdAuth": [],
      "tokenAuth": [],
      "languageAuth": [],
      "UserAgentAuth": []
    }
  ],
  "paths": {
    "/account/balance": {
      "get": {
        "summary": "Get balance",
        "responses": {
          "200": {
            "description": "Standard response envelope.",
            "content": {
              "application/json": {
                "example": {
                  "status": true,
                  "code": null,
                  "dialog": null,
                  "data": {
                    "balance": 999790.646
                  }
                }
              }
            }
          }
        }
      }
    },
    "/sale/item": {
      "post": {
        "summary": "Purchase voucher",
        "responses": {
          "200": {
            "description": "Standard response envelope.",
            "content": {
              "application/json": {
                "example": {
                  "status": true,
                  "code": null,
                  "dialog": null,
                  "data": null
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "externalId": 987654,
                "denominationId": 17002,
                "numberOfItems": 1
              }
            }
          }
        }
      }
    }
  }
}