---
agentTools:
  projectIndex: https://paytech.readme.io/llms.txt
---

# /api/v1/balances

Get a list of funds available for withdrawal by currency (see "Check Withdrawal Balance" in shop settings)

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "pay.tech API",
    "description": "Payment API\n",
    "contact": {
      "name": "Support",
      "email": "support@pay.tech"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": ""
  },
  "servers": [
    {
      "url": "https://engine-sandbox.pay.tech",
      "description": "Sandbox"
    },
    {
      "url": "https://engine.pay.tech",
      "description": "Production"
    }
  ],
  "paths": {
    "/api/v1/balances": {
      "get": {
        "tags": [
          "Balances"
        ],
        "description": "Get a list of funds available for withdrawal by currency (see \"Check Withdrawal Balance\" in shop settings)",
        "operationId": "getBalances",
        "responses": {
          "200": {
            "description": "List of balances for the shop that was authenticated in the request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BalanceListResponse"
                }
              }
            }
          },
          "401": {
            "description": "Invalid credentials",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuthentication": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Balance": {
        "required": [
          "currency",
          "amount"
        ],
        "type": "object",
        "properties": {
          "amount": {
            "multipleOf": 1e-18,
            "maximum": 999999.99,
            "exclusiveMaximum": false,
            "minimum": 1e-18,
            "exclusiveMinimum": false,
            "type": "number",
            "description": "Balance amount",
            "example": 11.12
          },
          "currency": {
            "type": "string",
            "description": "Balance currency",
            "format": "ISO 4217 code for FIAT currencies or cryptocurrency symbol",
            "example": "EUR"
          }
        }
      },
      "BalanceListResponse": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "format": "ISO 8601",
            "example": "2020-10-07T13:36:32.595Z"
          },
          "status": {
            "type": "integer",
            "description": "HTTP status code",
            "example": 200
          },
          "result": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Balance"
            }
          }
        }
      },
      "UnauthorizedError": {
        "required": [
          "status",
          "error",
          "message",
          "timestamp",
          "path"
        ],
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "example": 401
          },
          "error": {
            "type": "string",
            "example": "Unauthorized"
          },
          "message": {
            "type": "string",
            "example": "Invalid token"
          },
          "timestamp": {
            "type": "string",
            "format": "ISO 8601",
            "example": "2020-10-07T13:32:19.444Z"
          },
          "path": {
            "type": "string",
            "example": "/api/v1/payments"
          }
        },
        "example": {
          "status": 401,
          "error": "Unauthorized",
          "message": "Invalid token",
          "timestamp": "2020-10-07T13:32:19.444Z",
          "path": "/api/v1/resource-name"
        }
      }
    },
    "securitySchemes": {
      "bearerAuthentication": {
        "type": "http",
        "description": "The client sends HTTP requests with the Authorization header that contains the word Bearer followed by a space and the Shop Api Key.",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 45,
      "2": 69,
      "3": 133,
      "4": 174,
      "5": 147,
      "6": 179,
      "7": 8,
      "8": 208,
      "9": 63,
      "10": 103,
      "11": 68
    }
  }
}
```