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

# Get Contracts

Retrieve all contracts for given Subscriber

> 📘 Multiple Records
>
> If a Contract has changed (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/GetContracts": {
      "get": {
        "summary": "Get Contracts",
        "description": "Retrieve all contracts for given Subscriber",
        "operationId": "retrieve-contracts",
        "parameters": [
          {
            "name": "subscriber",
            "in": "query",
            "description": "CloudLoop Subscriber Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"contracts\": [\n    {\n      \"subscriber\": \"GjlwJvdrxpDoOWepXjnKbPLkQXeVAZgz\",\n      \"networkStatus\": \"ACTIVATING\",\n      \"from\": \"2018-06-28T08:14:57\",\n      \"id\": \"wbpYqLdxyzVrAEYRjDBQmgRMjGOvoeZk\",\n      \"state\": \"NEW\",\n      \"to\": null,\n      \"committedTo\": null,\n      \"imsi\": null,\n      \"msisdn\": null,\n      \"localNumberAccess\": false,\n    \t\"localNumber\": null, \n      \"plan\": {\n        \"feeMonthly\": 13.990,\n        \"inclusive\": 123,\n        \"pooled\": false,\n        \"suspendible\": false,\n        \"name\": \"PLAN B\",\n        \"description\": \"This is an example plan\",\n        \"increment\": 0,\n        \"commitment\": 0,\n        \"id\": \"AagLlVGjyNzQbnObaNBoRXPekmOvrxJY\",\n        \"minimum\": 0\n      },\n      \"hardware\": \"rOvMZelJoLYNkBMADjBPRKbywQXjxGzV\"\n    },\n    {\n      \"subscriber\": \"GjlwJvdrxpDoOWepXjnKbPLkQXeVAZgz\",\n      \"networkStatus\": \"DEACTIVATED\",\n      \"from\": \"2018-06-28T08:14:56\",\n      \"id\": \"JaKzYmyeDdjGPWagxPBLrlVqgZxNXApv\",\n      \"state\": \"NEW\",\n      \"to\": \"2018-06-28T08:14:56\",\n      \"committedTo\": \"2018-06-28T08:14:56\",\n      \"imsi\": \"901234123412341\",\n      \"msisdn\": \"881612341234\",\n      \"localNumberAccess\": false,\n    \t\"localNumber\": null,\n      \"plan\": {\n        \"feeMonthly\": 13.990,\n        \"inclusive\": 123,\n        \"pooled\": false,\n        \"suspendible\": false,\n        \"name\": \"PLAN A\",\n        \"description\": \"This is an example plan\",\n        \"increment\": 0,\n        \"commitment\": 0,\n        \"id\": \"MPAjovqQGZaLRENvpeElKkpxwgdzDYXb\",\n        \"minimum\": 0\n      },\n      \"hardware\": \"rOvMZelJoLYNkBMADjBPRKbywQXjxGzV\"\n    }\n  ]\n}"
                  },
                  "Incomplete Input": {
                    "value": "{\n  \"at\": 1525428629338,\n  \"error\": \"DispatcherInputException\"\n}\n"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "contracts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "subscriber": {
                                "type": "string",
                                "example": "GjlwJvdrxpDoOWepXjnKbPLkQXeVAZgz"
                              },
                              "networkStatus": {
                                "type": "string",
                                "example": "ACTIVATING"
                              },
                              "from": {
                                "type": "string",
                                "example": "2018-06-28T08:14:57"
                              },
                              "id": {
                                "type": "string",
                                "example": "wbpYqLdxyzVrAEYRjDBQmgRMjGOvoeZk"
                              },
                              "state": {
                                "type": "string",
                                "example": "NEW"
                              },
                              "to": {},
                              "committedTo": {},
                              "imsi": {},
                              "msisdn": {},
                              "localNumberAccess": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "localNumber": {},
                              "plan": {
                                "type": "object",
                                "properties": {
                                  "feeMonthly": {
                                    "type": "number",
                                    "example": 13.99,
                                    "default": 0
                                  },
                                  "inclusive": {
                                    "type": "integer",
                                    "example": 123,
                                    "default": 0
                                  },
                                  "pooled": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "suspendible": {
                                    "type": "boolean",
                                    "example": false,
                                    "default": true
                                  },
                                  "name": {
                                    "type": "string",
                                    "example": "PLAN B"
                                  },
                                  "description": {
                                    "type": "string",
                                    "example": "This is an example plan"
                                  },
                                  "increment": {
                                    "type": "integer",
                                    "example": 0,
                                    "default": 0
                                  },
                                  "commitment": {
                                    "type": "integer",
                                    "example": 0,
                                    "default": 0
                                  },
                                  "id": {
                                    "type": "string",
                                    "example": "AagLlVGjyNzQbnObaNBoRXPekmOvrxJY"
                                  },
                                  "minimum": {
                                    "type": "integer",
                                    "example": 0,
                                    "default": 0
                                  }
                                }
                              },
                              "hardware": {
                                "type": "string",
                                "example": "rOvMZelJoLYNkBMADjBPRKbywQXjxGzV"
                              }
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Incomplete Input",
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "integer",
                          "example": 1525428629338,
                          "default": 0
                        },
                        "error": {
                          "type": "string",
                          "example": "DispatcherInputException"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```