post
https://in.staging.decentro.tech/v2/bytes/alternate-data/phone-tenure
Important NotePlease use only Staging Credentials on each API Reference page to test the APIs directly from our Documentation.
API Endpoints
| Environment | Host |
|---|---|
| Staging | in.staging.decentro.tech |
| Production | in.decentro.tech |
Response Description
| Key | Data Type | Description |
|---|---|---|
decentroTxnId | String | Transaction identifier generated by Decentro for tracking the request. |
status | String | Overall request status, such as SUCCESS or FAILURE. |
responseKey | String | Machine-readable key identifying the response outcome. |
message | String | Description of the response outcome. |
data | Object | Phone tenure details returned for a successful request. |
data.ageOnNetworkRange | String | Reported range of time the mobile number has been on the network. |
data.dateOfNetworkInitiation | String | Reported network initiation date in YYYY-MM-DD format. |
data.operator | String | Reported telecom operator. |
data.isPostpaid | Boolean | Indicates whether the connection is postpaid. |
data.circle | String | Reported telecom service circle. |
| responseCode | String | Decentro response code, such as S00000 for success or E00009 for input validation errors. |
Response Key Mapping
| Response Key | Description |
|---|---|
success_phone_tenure_data_fetched | Request processed successfully; individual data fields can still be empty. |
error_invalid_mobile | Mobile number fails the required 10-digit format. |
error_unsanitized_values | Input contains rejected special characters, such as + in a mobile number. |
error_consent_false | Consent is false. |
error_empty_consent | Consent is omitted or null. |
error_invalid_consent_type | Consent is not a boolean. |
error_empty_purpose | Purpose is omitted or empty. |
error_short_purpose_length | Purpose has fewer than 5 characters. |
error_long_purpose_length | Purpose exceeds 50 characters. |
error_invalid_purpose | Purpose is not a string. |
