Phone Tenure

🙌

Important Note

Please use only Staging Credentials on each API Reference page to test the APIs directly from our Documentation.

API Endpoints

EnvironmentHost
Stagingin.staging.decentro.tech
Productionin.decentro.tech

Response Description

KeyData TypeDescription
decentroTxnIdStringTransaction identifier generated by Decentro for tracking the request.
statusStringOverall request status, such as SUCCESS or FAILURE.
responseKeyStringMachine-readable key identifying the response outcome.
messageStringDescription of the response outcome.
dataObjectPhone tenure details returned for a successful request.
data.ageOnNetworkRangeStringReported range of time the mobile number has been on the network.
data.dateOfNetworkInitiationStringReported network initiation date in YYYY-MM-DD format.
data.operatorStringReported telecom operator.
data.isPostpaidBooleanIndicates whether the connection is postpaid.
data.circleStringReported telecom service circle.
responseCodeStringDecentro response code, such as S00000 for success or E00009 for input validation errors.

Response Key Mapping

Response KeyDescription
success_phone_tenure_data_fetchedRequest processed successfully; individual data fields can still be empty.
error_invalid_mobileMobile number fails the required 10-digit format.
error_unsanitized_valuesInput contains rejected special characters, such as + in a mobile number.
error_consent_falseConsent is false.
error_empty_consentConsent is omitted or null.
error_invalid_consent_typeConsent is not a boolean.
error_empty_purposePurpose is omitted or empty.
error_short_purpose_lengthPurpose has fewer than 5 characters.
error_long_purpose_lengthPurpose exceeds 50 characters.
error_invalid_purposePurpose is not a string.
Body Params
string
required

Any unique ID assigned by you for this API request.

string
required

The purpose of taking consent from your customer. Mandatory as per regulation. Must contain 5 to 50 characters, inclusive.

string
required

Indian mobile number containing exactly 10 digits and starting with 6, 7, 8 or 9. Do not include a country code or special characters.

Headers
string
required

The client ID that will be provided to a specific client and environment. Please note, this may change based on the environment you are on.

string
required

The confidential credential provided by Decentro that is associated with the client_id

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json