# Get Number Request Requirements

Retrieve all rules and regulations, ordered by country and phone number type. Be aware that every request also requires contact information (first & last name, email address), company representative contact information (first & last name, phone number) and company information (name, registration number, address).

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Phone Number Request API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.cm.com"
    }
  ],
  "paths": {
    "/voice-phonenumberrequestapi/v1/regulations/country-requirements": {
      "get": {
        "tags": [
          "Regulations"
        ],
        "summary": "Get Number Request Requirements",
        "description": "Retrieve all rules and regulations, ordered by country and phone number type. Be aware that every request also requires contact information (first & last name, email address), company representative contact information (first & last name, phone number) and company information (name, registration number, address).",
        "parameters": [
          {
            "name": "CountryCodes",
            "in": "query",
            "description": "Country codes to filter on, separated by a comma. (ISO 3166-1 alpha-2 format)",
            "schema": {
              "type": "string",
              "example": "NL,BE"
            },
            "example": "NL,BE"
          },
          {
            "name": "PhoneNumberTypes",
            "in": "query",
            "description": "Phone number types to filter on, separated by a comma.",
            "schema": {
              "type": "string",
              "example": "Local,National,TollFree"
            },
            "example": "Local,National,TollFree"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiRequirementsPerCountry"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiCountryRequirement": {
        "title": "Country Requirement",
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Unique key for this requirement.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the requirement.",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "The type of requirement.",
            "nullable": true
          },
          "resourceLink": {
            "type": "string",
            "description": "Download link to the resource that is needed for this requirement.",
            "nullable": true
          },
          "isForReseller": {
            "type": "boolean",
            "description": "This requirement ONLY applies to resellers."
          }
        },
        "additionalProperties": false,
        "description": "Requirement for requests (under a number type and country combination)"
      },
      "ApiRequirementsPerCountry": {
        "title": "Requirements Per Country",
        "type": "object",
        "properties": {
          "countryCode": {
            "type": "string",
            "description": "The country code (2 letters, ISO 3166).",
            "nullable": true
          },
          "countryName": {
            "type": "string",
            "description": "The English country name.",
            "nullable": true
          },
          "requirementsPerNumberType": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiRequirementsPerNumberType"
            },
            "description": "List of requirements, ordered by phone number type.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "All requirements for a single country, ordered by number type."
      },
      "ApiRequirementsPerNumberType": {
        "title": "Requirements Per Number Type",
        "type": "object",
        "properties": {
          "numberType": {
            "type": "string",
            "description": "The phone number type (Local, National, TollFree).",
            "nullable": true
          },
          "requirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiCountryRequirement"
            },
            "description": "List of requirements for this phone number type.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "All requirements for a specific number type. (under a specific country)"
      }
    },
    "securitySchemes": {
      "X-CM-PRODUCTTOKEN": {
        "type": "apiKey",
        "description": "Your producttoken",
        "name": "X-CM-PRODUCTTOKEN",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "X-CM-PRODUCTTOKEN": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 244,
      "2": 3,
      "3": 143,
      "4": 59,
      "5": 172,
      "6": 25,
      "7": 0,
      "8": 32,
      "9": 139,
      "10": 61,
      "11": 227
    }
  }
}
```