---
updatedAt: 2025-06-05T21:49:05.000Z
agentTools:
  projectIndex: https://docs.cloudloop.com/llms.txt
---

# Get Usage Summary

Retrieve summary of pool usage for given subscriber in given month

> 🚧 Multiple Records
>
> If a contract has changed during the specified period (e.g. suspended/resumed) there will be multiple records returned.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "cloudloop",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.cloudloop.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "query",
        "name": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/Telephony/GetUsageSummary": {
      "get": {
        "summary": "Get Usage Summary",
        "description": "Retrieve summary of pool usage for given subscriber in given month",
        "operationId": "subscriber-summary2",
        "parameters": [
          {
            "name": "subscriber",
            "in": "query",
            "description": "Cloudloop Subscriber Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 2018
            }
          },
          {
            "name": "month",
            "in": "query",
            "description": "1-12",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"summary\": [\n    {\n      \"month\": 5,\n      \"year\": 2018,\n      \"contract\": \"PONAKwlzdYZQrbELDREjaoLkJqpevRyX\",\n      \"id\": \"DgXeoxwVPMyrdOBJeEGlqKRJLbajQkzZ\",\n      \"calculatedAt\": \"2018-05-04T09:16:19\",\n      \"remaining\": 1000,\n      \"utilisation\": 0.5,\n      \"allocated\": 2000\n    }\n  ]\n}\n"
                  },
                  "Service Unavailable": {
                    "value": "{\n  \"at\": 1527861082868,\n  \"error\": \"DispatcherUnavailableException\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Multiple Contracts",
                      "type": "object",
                      "properties": {
                        "summary": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "month": {
                                "type": "integer",
                                "example": 5,
                                "default": 0
                              },
                              "year": {
                                "type": "integer",
                                "example": 2018,
                                "default": 0
                              },
                              "contract": {
                                "type": "string",
                                "example": "PONAKwlzdYZQrbELDREjaoLkJqpevRyX"
                              },
                              "id": {
                                "type": "string",
                                "example": "DgXeoxwVPMyrdOBJeEGlqKRJLbajQkzZ"
                              },
                              "calculatedAt": {
                                "type": "string",
                                "example": "2018-05-04T09:16:19"
                              },
                              "remaining": {
                                "type": "integer",
                                "example": 1000,
                                "default": 0
                              },
                              "utilisation": {
                                "type": "number",
                                "example": 0.5,
                                "default": 0
                              },
                              "allocated": {
                                "type": "integer",
                                "example": 2000,
                                "default": 0
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Service Unavailable",
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "integer",
                          "example": 1527861082868,
                          "default": 0
                        },
                        "error": {
                          "type": "string",
                          "example": "DispatcherUnavailableException"
                        }
                      }
                    }
                  ]
                }
              },
              "text/plain": {
                "examples": {
                  "Multiple Contracts": {
                    "value": "\n{\n  \"summary\": [\n    {\n      \"month\": 5,\n      \"year\": 2018,\n      \"contract\": \"RoDmGzOePxrJZKWAgyBagyQXlpAkvMwj\",\n      \"id\": \"xQzagvADYwKoPeBQvnlMrXJpVORdjyZm\",\n      \"calculatedAt\": \"2018-05-04T09:25:00\",\n      \"remaining\": 1000,\n      \"utilisation\": 0.5,\n      \"allocated\": 2000\n    },\n    {\n      \"month\": 5,\n      \"year\": 2018,\n      \"contract\": \"pjvzwyOMVbPZgeBPZOWaYqQDAJGxkKLr\",\n      \"id\": \"NwbpYqLdxyzVrAEYZBQmgRMjGOvoeZkK\",\n      \"calculatedAt\": \"2018-05-04T09:24:59\",\n      \"remaining\": 1000,\n      \"utilisation\": 1.0,\n      \"allocated\": 1000\n    }\n  ]\n}"
                  },
                  "Incomplete Request": {
                    "value": "{\n  \"at\": 1525425988297,\n  \"error\": \"DispatcherInputException\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Multiple Contracts",
                      "type": "object",
                      "properties": {
                        "summary": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "month": {
                                "type": "integer",
                                "example": 5,
                                "default": 0
                              },
                              "year": {
                                "type": "integer",
                                "example": 2018,
                                "default": 0
                              },
                              "contract": {
                                "type": "string",
                                "example": "RoDmGzOePxrJZKWAgyBagyQXlpAkvMwj"
                              },
                              "id": {
                                "type": "string",
                                "example": "xQzagvADYwKoPeBQvnlMrXJpVORdjyZm"
                              },
                              "calculatedAt": {
                                "type": "string",
                                "example": "2018-05-04T09:25:00"
                              },
                              "remaining": {
                                "type": "integer",
                                "example": 1000,
                                "default": 0
                              },
                              "utilisation": {
                                "type": "number",
                                "example": 0.5,
                                "default": 0
                              },
                              "allocated": {
                                "type": "integer",
                                "example": 2000,
                                "default": 0
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Incomplete Request",
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "integer",
                          "example": 1525425988297,
                          "default": 0
                        },
                        "error": {
                          "type": "string",
                          "example": "DispatcherInputException"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```