Skip to navigation

Phone verification extension contract reference

View as Markdown

The phone verification extension enables real-time verification of a phone number entered by a recipient. Your extension app must perform validation itself or call an external service that verifies whether a phone number exists and is reachable.

This extension verifies specific types of values. See Connected fields extension overview for information about an extension that can verify any type of value against an organization’s system of record.

You can include this extension when you register an extension app. If you register the extension app using a form, select the Data Verification extension in the form-based UI. Then select a verification type of Phone Number.

Phone number verification extension in form-based registration

If you register the extension app using an app manifest file, set the extensions.template value in your app manifest to Verify.Version4.PhoneNumber

This extension has one action. The action name you specify when you register an extension app depends on whether you register the app using a form or using an app manifest file. The app manifest file value listed here appears in the actions.template property.

Form-Based Action NameApp Manifest File Value
Verify Phone NumberVerify.Version4.PhoneNumber

You provide the details required for action execution when you register an extension app. See Update extension and action settings for information about defining actions using the form-based registration process. See Action schema for information about action properties in the app manifest file.

Action contracts

This contract describes the parameters that Docusign will pass to the external phone number verification service as well as the parameters expected in the response. You specify the URL for the phone number verification service in the action definition in the form-based UI or in the extension app manifest.

Verify Phone Number is the label for this action that appears when you register an extension app using a form. If you register your extension app using an app manifest file, the actions.template property value for this action is Verify.Version4.PhoneNumber.

HTTP method

This action initiates a POST request to the external API service.

Request

{
"phoneNumber": "1234567890",
"countryCode": "1"
}
PropertyTypeDescription
phoneNumberstringThe phone number to verify.
countryCodestringThe country code corresponding to the phone number to verify.

Response Successful case

{
"verified": true,
"responseCode": 'VERIFIED',
"providerResponseCode": 'OK',
}
Unsuccessful case
{
"verified": false,
"responseCode": 'NOT_VERIFIED',
"providerResponseCode": 'FAILED_BECAUSE_REASONS',
}
PropertyTypeOccurrenceDescription
verifiedbooleanRequiredWhether the phone number was successfully verified.
responseCodestringRequiredContains a code that indicates the type of response. If verification failed, this code will contain an error code.
The following response codes are supported or phone verification:
  • ‘VERIFIED'
  • 'NOT_VERIFIED'
  • 'NETWORK_TYPE_MOBILE'
  • 'NETWORK_TYPE_LANDLINE'
  • 'NETWORK_TYPE_LANDLINE_PREMIUM'
  • 'NETWORK_TYPE_LANDLINE_TOLLFREE'
  • 'NETWORK_TYPE_VIRTUAL'
  • 'NETWORK_TYPE_UNKNOWN'
  • 'NETWORK_TYPE_PAGER'
  • 'NETWORK_TYPE_NULL'
  • 'INVALID_NETWORK'
  • 'CARRIER_UNAVAILABLE'
  • 'UNSUPPORTED_NETWORK_TYPE_MOBILE'
  • 'UNSUPPORTED_NETWORK_TYPE_LANDLINE'
  • 'UNSUPPORTED_NETWORK_TYPE_LANDLINE_PREMIUM'
  • 'UNSUPPORTED_NETWORK_TYPE_LANDLINE_TOLLFREE'
  • 'UNSUPPORTED_NETWORK_TYPE_VIRTUAL'
  • 'UNSUPPORTED_NETWORK_TYPE_UNKNOWN'
  • 'UNSUPPORTED_NETWORK_TYPE_PAGER'
  • 'UNSUPPORTED_NETWORK_TYPE_NULL'
  • 'INVALID_FORMAT'
  • 'INTERNAL_DECLINED'
  • 'SERVICE_ERROR’
providerResponseCodestringOptionalContains response code produced from the app indicating the reasons for success or failure.