# Get Country Requirements

Because of different rules and regulation in different countries, we may need additional information (for example documents) after your request has been created. The required information will be checked by our support staff. Necessary documents can later be requested via email. With this endpoint you can retrieve the additional information based on the country related to the request.

If the response contains only an empty array, it means the country that the request is bound to does not require any information.

# 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/numberrequests/{countryCode}/requirements": {
      "get": {
        "tags": [
          "Number Requests"
        ],
        "summary": "Get Country Requirements",
        "description": "Because of different rules and regulation in different countries, we may need additional information (for example documents) after your request has been created. The required information will be checked by our support staff. Necessary documents can later be requested via email. With this endpoint you can retrieve the additional information based on the country related to the request.\r\n\r\nIf the response contains only an empty array, it means the country that the request is bound to does not require any information.",
        "parameters": [
          {
            "name": "countryCode",
            "in": "path",
            "description": "Country code to retrieve the required fields for in ISO 3166 alpha-2 format.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "NL"
          },
          {
            "name": "numberType",
            "in": "query",
            "description": "Optional type of phone number to filter requirements on",
            "schema": {
              "$ref": "#/components/schemas/ApiNumberType"
            },
            "example": "Local"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ApiRequirement"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiNumberType": {
        "title": "Number Type",
        "enum": [
          "Local",
          "National",
          "TollFree"
        ],
        "type": "string",
        "description": "Phone number type"
      },
      "ApiRequirement": {
        "title": "Requirement",
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "The key of the requirement.",
            "nullable": true,
            "example": "proof_of_company_address"
          },
          "type": {
            "$ref": "#/components/schemas/ApiRequirementType"
          },
          "downloadLink": {
            "type": "string",
            "description": "URL where the requirement can be downloaded if it's a document that needs to be signed (Type = 4).",
            "nullable": true,
            "example": "https://api.cm.com/resources/v2/public/00000000-0000-0000-0000-000000000000/content"
          },
          "isForReseller": {
            "type": "boolean",
            "description": "Determines whether the requirement is specifically for resellers"
          }
        },
        "additionalProperties": false,
        "description": "A country specific rule or regulation that a request must meet. This can for example be a certain document that must be provided."
      },
      "ApiRequirementType": {
        "title": "Requirement Type",
        "enum": [
          "Document",
          "CompanyRule",
          "NumberRule",
          "SignedDocument"
        ],
        "type": "string",
        "description": "The type of the requirement where `1` = document, `2` = requirement for a company, `3` = requirement for a number request and `4` = signed document.."
      }
    },
    "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
    }
  }
}
```