Download OpenAPI specification:Download
Get all company profiles for the given Account.
| accountGuid required | string <uuid> Unique identifier of the Logical Account or Voice Account. |
| IncludeDeleted | boolean Example: IncludeDeleted=false Whether deleted profiles should be included in the result. Defaults to |
| q | string |
| skip | integer <int32> |
| take | integer <int32> |
[- {
- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "voiceAccountGuid": "71f5732a-2883-4193-a286-efec13e07e6f",
- "profileName": "string",
- "companyName": "string",
- "registrationNumber": "string",
- "representativeFirstName": "string",
- "representativeLastName": "string",
- "representativePhoneNumber": "string",
- "companyCountryCode": "st",
- "requiredFields": {
- "property1": "string",
- "property2": "string"
}, - "region": "string",
- "city": "string",
- "postalCode": "string",
- "street": "string",
- "streetNumber": "string",
- "streetNumberExt": "string",
- "phoneNumberCountryCode": "st",
- "phoneNumberTypes": [
- "string"
], - "contactFirstName": "string",
- "contactLastName": "string",
- "callbackUrl": "string",
- "documents": [
- {
- "requirementKey": "string",
- "documentGuid": "8b3a1f38-7502-4251-81a2-454a62603acf",
- "approved": true,
- "approvalComment": "string"
}
], - "deletedOn": "2019-08-24T14:15:22Z",
- "statusKey": "string",
- "statusComment": "string"
}
]Create a new company profile that allows you to request new phone numbers.
| accountGuid required | string <uuid> Unique identifier of the Logical Account or Voice Account. |
New company profile to create.
| guid | string <uuid> Unique identifier of the company profile. |
| voiceAccountGuid | string <uuid> Unique identifier of the Logical Account or Voice Account. |
| profileName required | string [ 1 .. 100 ] characters The name of the company profile. This name does not have to be equal to your company name, it's just to make this profile more easily identifiable in our tooling. If the company has multiple branches, this profile can be named 'Amsterdam Office' for example. |
| companyName required | string [ 1 .. 100 ] characters The name of the company that will be using the phone numbers requested with this profile. |
| registrationNumber required | string [ 1 .. 100 ] characters Business register number of the company (e.g. KVK number for Dutch companies). |
| representativeFirstName required | string [ 1 .. 100 ] characters First name of company’s representative that is authorized to sign contracts for the company. |
| representativeLastName required | string [ 1 .. 100 ] characters Last name of company’s representative that is authorized to sign contracts for the company |
| representativePhoneNumber | string or null [ 6 .. 20 ] characters Phone number of company’s representative that is authorized to sign contracts for the company |
| companyCountryCode required | string = 2 characters Country code of the company address in ISO 3166-1 alpha-2 format. |
object or null Depending on the country of the company address, we might require additional information that needs to be
supplied with the API call. See the | |
| region | string or null <= 100 characters Region of the company address. |
| city required | string [ 1 .. 100 ] characters City of the company address. |
| postalCode required | string [ 1 .. 12 ] characters Postal code of the company address. |
| street required | string [ 1 .. 255 ] characters Street of the company address. |
| streetNumber required | string [ 1 .. 10 ] characters Street number of the company address. |
| streetNumberExt | string or null <= 255 characters Extra information about the street number. E.g. apartment or suite. |
| phoneNumberCountryCode required | string = 2 characters The country code of the country this company profile will request numbers for. For example, if you supply
|
| phoneNumberTypes required | Array of strings non-empty [ items non-empty ] The types of phone numbers this profile is able to request. This can be |
| contactFirstName required | string [ 1 .. 100 ] characters First name of the person that CM.com will be able to contact regarding this profile. This contact can be about the approval status of your profile or a request for additional information. |
| contactLastName required | string [ 1 .. 100 ] characters Last name of the person that CM.com will be able to contact regarding this profile. This contact can be about the approval status of your profile or a request for additional information. |
| emailAddresses required | Array of strings <email> non-empty [ items <email > ] One or more email addresses that CM.com will be able to contact regarding this profile. This contact can be about the approval status of your profile or a request for additional information. |
| callbackUrl | string or null URL that we'll send a POST request to when the status of the request has been updated. The body of this post request will contain the entire company profile, including the updated status. |
Array of objects or null (Document) List of documents that are legaly required for us to be able to request phone numbers. | |
| deletedOn | string or null <date-time> UTC DateTime on which the current profile was deleted. Can be null if the profile is still active. |
| statusKey | string or null The current approval status of the company profile. |
| statusComment | string or null Optional comment on the current approval status of the profile. |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "voiceAccountGuid": "71f5732a-2883-4193-a286-efec13e07e6f",
- "profileName": "string",
- "companyName": "string",
- "registrationNumber": "string",
- "representativeFirstName": "string",
- "representativeLastName": "string",
- "representativePhoneNumber": "string",
- "companyCountryCode": "st",
- "requiredFields": {
- "property1": "string",
- "property2": "string"
}, - "region": "string",
- "city": "string",
- "postalCode": "string",
- "street": "string",
- "streetNumber": "string",
- "streetNumberExt": "string",
- "phoneNumberCountryCode": "st",
- "phoneNumberTypes": [
- "string"
], - "contactFirstName": "string",
- "contactLastName": "string",
- "callbackUrl": "string",
- "documents": [
- {
- "requirementKey": "string",
- "documentGuid": "8b3a1f38-7502-4251-81a2-454a62603acf",
- "approved": true,
- "approvalComment": "string"
}
], - "deletedOn": "2019-08-24T14:15:22Z",
- "statusKey": "string",
- "statusComment": "string"
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "voiceAccountGuid": "71f5732a-2883-4193-a286-efec13e07e6f",
- "profileName": "string",
- "companyName": "string",
- "registrationNumber": "string",
- "representativeFirstName": "string",
- "representativeLastName": "string",
- "representativePhoneNumber": "string",
- "companyCountryCode": "st",
- "requiredFields": {
- "property1": "string",
- "property2": "string"
}, - "region": "string",
- "city": "string",
- "postalCode": "string",
- "street": "string",
- "streetNumber": "string",
- "streetNumberExt": "string",
- "phoneNumberCountryCode": "st",
- "phoneNumberTypes": [
- "string"
], - "contactFirstName": "string",
- "contactLastName": "string",
- "callbackUrl": "string",
- "documents": [
- {
- "requirementKey": "string",
- "documentGuid": "8b3a1f38-7502-4251-81a2-454a62603acf",
- "approved": true,
- "approvalComment": "string"
}
], - "deletedOn": "2019-08-24T14:15:22Z",
- "statusKey": "string",
- "statusComment": "string"
}Get a specific company profile based on its unique identifier.
| accountGuid required | string <uuid> Unique identifier of the Logical Account or Voice Account. |
| companyProfileGuid required | string <uuid> Unique identifier of the company profile. |
{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "voiceAccountGuid": "71f5732a-2883-4193-a286-efec13e07e6f",
- "profileName": "string",
- "companyName": "string",
- "registrationNumber": "string",
- "representativeFirstName": "string",
- "representativeLastName": "string",
- "representativePhoneNumber": "string",
- "companyCountryCode": "st",
- "requiredFields": {
- "property1": "string",
- "property2": "string"
}, - "region": "string",
- "city": "string",
- "postalCode": "string",
- "street": "string",
- "streetNumber": "string",
- "streetNumberExt": "string",
- "phoneNumberCountryCode": "st",
- "phoneNumberTypes": [
- "string"
], - "contactFirstName": "string",
- "contactLastName": "string",
- "callbackUrl": "string",
- "documents": [
- {
- "requirementKey": "string",
- "documentGuid": "8b3a1f38-7502-4251-81a2-454a62603acf",
- "approved": true,
- "approvalComment": "string"
}
], - "deletedOn": "2019-08-24T14:15:22Z",
- "statusKey": "string",
- "statusComment": "string"
}Update an existing company profile. Please note that changes you make to your profile may result in your profile having to be revalidated. To check if this is indeed the case, you can call the Check Update Consequences endpoint described below.
| accountGuid required | string <uuid> Unique identifier of the Logical Account or Voice Account. |
| companyProfileGuid required | string <uuid> Unique identifier of the company profile. |
The updated company profile
| profileName | string or null The name of the company profile. This name does not have to be equal to your company name, it's just to make this profile more easily identifiable in our tooling. If the company has multiple branches, this profile can be named 'Amsterdam Office' for example. |
| companyName | string or null The name of the company that will be using the phone numbers requested with this profile. |
| registrationNumber | string or null Business register number of the company (e.g. KVK number for Dutch companies). |
| representativeFirstName | string or null First name of company’s representative that is authorized to sign contracts for the company. |
| representativeLastName | string or null Last name of company’s representative that is authorized to sign contracts for the company |
| representativePhoneNumber | string or null Phone number of company’s representative that is authorized to sign contracts for the company |
object or null Depending on the country of the company address, we might require additional information that needs to be
supplied with the API call. See the | |
| phoneNumberCountryCode | string or null The country code of the country this company profile will request numbers for. For example, if you supply
|
| phoneNumberTypes | Array of strings or null The types of phone numbers this profile is able to request. This can be |
| contactFirstName | string or null First name of the person that CM.com will be able to contact regarding this profile. This contact can be about the approval status of your profile or a request for additional information. |
| contactLastName | string or null Last name of the person that CM.com will be able to contact regarding this profile. This contact can be about the approval status of your profile or a request for additional information. |
| emailAddresses | Array of strings or null One or more email addresses that CM.com will be able to contact regarding this profile. This contact can be about the approval status of your profile or a request for additional information. |
| callbackUrl | string or null URL that we'll send a POST request to when the status of the request has been updated. The body of this post request will contain the entire company profile, including the updated status. |
Array of objects or null (Document) List of documents that are legaly required for us to be able to request phone numbers. |
{- "profileName": "string",
- "companyName": "string",
- "registrationNumber": "string",
- "representativeFirstName": "string",
- "representativeLastName": "string",
- "representativePhoneNumber": "string",
- "requiredFields": {
- "property1": "string",
- "property2": "string"
}, - "phoneNumberCountryCode": "string",
- "phoneNumberTypes": [
- "string"
], - "contactFirstName": "string",
- "contactLastName": "string",
- "emailAddresses": [
- "string"
], - "callbackUrl": "string",
- "documents": [
- {
- "requirementKey": "string",
- "documentGuid": "8b3a1f38-7502-4251-81a2-454a62603acf",
- "approved": true,
- "approvalComment": "string"
}
]
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "voiceAccountGuid": "71f5732a-2883-4193-a286-efec13e07e6f",
- "profileName": "string",
- "companyName": "string",
- "registrationNumber": "string",
- "representativeFirstName": "string",
- "representativeLastName": "string",
- "representativePhoneNumber": "string",
- "companyCountryCode": "st",
- "requiredFields": {
- "property1": "string",
- "property2": "string"
}, - "region": "string",
- "city": "string",
- "postalCode": "string",
- "street": "string",
- "streetNumber": "string",
- "streetNumberExt": "string",
- "phoneNumberCountryCode": "st",
- "phoneNumberTypes": [
- "string"
], - "contactFirstName": "string",
- "contactLastName": "string",
- "callbackUrl": "string",
- "documents": [
- {
- "requirementKey": "string",
- "documentGuid": "8b3a1f38-7502-4251-81a2-454a62603acf",
- "approved": true,
- "approvalComment": "string"
}
], - "deletedOn": "2019-08-24T14:15:22Z",
- "statusKey": "string",
- "statusComment": "string"
}Delete the company profile with the given unique identifier.
| accountGuid required | string <uuid> Unique identifier of the Logical Account or Voice Account. |
| companyProfileGuid required | string <uuid> Unique identifier of the company profile. |
{- "requestId": "string",
- "errors": [
- {
- "code": "string",
- "message": "string",
- "source": "string"
}
]
}For some countries, we require additional information to be supplied with your company profile. This additional information is called RequiredFields in your company profile.
With this endpoint you can check if the required fields you want to submit are complete and valid before you submit them in your company profile. If a required field is invalid, the response of this request will also tell you the reason.
| countryCode required | string Country code to validate the required fields for |
The required fields to check
| property name* additional property | string |
{- "property1": "string",
- "property2": "string"
}[- {
- "field": "string",
- "isValid": true,
- "invalidReason": "string"
}
]Validate your street number and postal code combination for a specific country.
| countryCode required | string Country code for validating the street number and postal code combination |
CM.Voice.CompanyProfilesApi.Models.Api.ApiStreetNumberAndPostalCodeValidationRequest
| streetNumber | string or null <= 10 characters Street number of the company address |
| streetNumberExt | string or null <= 255 characters Extra information about the street number. E.g. apartment or suite |
| postalCode | string or null <= 12 characters Postal code of the company address |
{- "streetNumber": "string",
- "streetNumberExt": "string",
- "postalCode": "string"
}[- {
- "isValid": true
}
]Some changes to your company profile will result in your profile having to be revalidated, such as a change in your company address. With this endpoint you can check what the possible concequences are of the update you want to perform, to make sure you don't accidentally invalidate your profile.
| accountGuid required | string <uuid> Unique identifier of the Logical Account or Voice Account. |
| companyProfileGuid required | string <uuid> Unique identifier of the company profile. |
The updated company profile
| profileName | string or null The name of the company profile. This name does not have to be equal to your company name, it's just to make this profile more easily identifiable in our tooling. If the company has multiple branches, this profile can be named 'Amsterdam Office' for example. |
| companyName | string or null The name of the company that will be using the phone numbers requested with this profile. |
| registrationNumber | string or null Business register number of the company (e.g. KVK number for Dutch companies). |
| representativeFirstName | string or null First name of company’s representative that is authorized to sign contracts for the company. |
| representativeLastName | string or null Last name of company’s representative that is authorized to sign contracts for the company |
| representativePhoneNumber | string or null Phone number of company’s representative that is authorized to sign contracts for the company |
object or null Depending on the country of the company address, we might require additional information that needs to be
supplied with the API call. See the | |
| phoneNumberCountryCode | string or null The country code of the country this company profile will request numbers for. For example, if you supply
|
| phoneNumberTypes | Array of strings or null The types of phone numbers this profile is able to request. This can be |
| contactFirstName | string or null First name of the person that CM.com will be able to contact regarding this profile. This contact can be about the approval status of your profile or a request for additional information. |
| contactLastName | string or null Last name of the person that CM.com will be able to contact regarding this profile. This contact can be about the approval status of your profile or a request for additional information. |
| emailAddresses | Array of strings or null One or more email addresses that CM.com will be able to contact regarding this profile. This contact can be about the approval status of your profile or a request for additional information. |
| callbackUrl | string or null URL that we'll send a POST request to when the status of the request has been updated. The body of this post request will contain the entire company profile, including the updated status. |
Array of objects or null (Document) List of documents that are legaly required for us to be able to request phone numbers. |
{- "profileName": "string",
- "companyName": "string",
- "registrationNumber": "string",
- "representativeFirstName": "string",
- "representativeLastName": "string",
- "representativePhoneNumber": "string",
- "requiredFields": {
- "property1": "string",
- "property2": "string"
}, - "phoneNumberCountryCode": "string",
- "phoneNumberTypes": [
- "string"
], - "contactFirstName": "string",
- "contactLastName": "string",
- "emailAddresses": [
- "string"
], - "callbackUrl": "string",
- "documents": [
- {
- "requirementKey": "string",
- "documentGuid": "8b3a1f38-7502-4251-81a2-454a62603acf",
- "approved": true,
- "approvalComment": "string"
}
]
}{- "guid": "ee6a7af7-650d-499b-8e32-58a52ffdb7bc",
- "voiceAccountGuid": "71f5732a-2883-4193-a286-efec13e07e6f",
- "profileName": "string",
- "companyName": "string",
- "registrationNumber": "string",
- "representativeFirstName": "string",
- "representativeLastName": "string",
- "representativePhoneNumber": "string",
- "companyCountryCode": "st",
- "requiredFields": {
- "property1": "string",
- "property2": "string"
}, - "region": "string",
- "city": "string",
- "postalCode": "string",
- "street": "string",
- "streetNumber": "string",
- "streetNumberExt": "string",
- "phoneNumberCountryCode": "st",
- "phoneNumberTypes": [
- "string"
], - "contactFirstName": "string",
- "contactLastName": "string",
- "callbackUrl": "string",
- "documents": [
- {
- "requirementKey": "string",
- "documentGuid": "8b3a1f38-7502-4251-81a2-454a62603acf",
- "approved": true,
- "approvalComment": "string"
}
], - "deletedOn": "2019-08-24T14:15:22Z",
- "statusKey": "string",
- "statusComment": "string"
}