Auto-detect an operator

With the /operators/auto-detect/phone/{phone}/countries/{iso} endpoint, a user can retrieve the operator details of a mobile number and the ISO code of the country where the mobile number is registered

Auto-detect operator

GET https://topups.reloadly.com/operators/auto-detect/phone/{phone}/countries/{countryisocode}

Path Parameters

Name
Type
Description

countryIsoCode*

string

The ISO code of the country where the mobile number is registered

phone*

string

The mobile number whose operator is to be auto-detected

Query Parameters

Name
Type
Description

suggested AmountsMap

boolean

Indicates if the suggestedAmountsMap field should be returned. Default value is false

suggested Amounts

boolean

Indicates if the suggestedAmounts field should be returned. Default value is false

Headers

Name
Type
Description

Authorization*

string

Your access token is required as a bearer token in the request's header

{
  "operatorId":88,
  "name":"Movistar Colombia",
  "bundle":false,
  "data":false,
  "pin":false,
  "supportsLocalAmounts":false,
  "denominationType":"RANGE",
  "senderCurrencyCode":"USD",
  "senderCurrencySymbol":"$",
  "destinationCurrencyCode":"COP",
  "destinationCurrencySymbol":"$",
  "commission":4.42,
  "internationalDiscount":4.42,
  "localDiscount":0.00,
  "mostPopularAmount":null,
  "minAmount":5.00,
  "maxAmount":50,
  "localMinAmount":null,
  "localMaxAmount":null,
  "country":{
    "isoName":"CO",
    "name":"Colombia"
  },
  "fx":{
    "rate":2192.1867,
    "currencyCode":"COP"
  },
  "logoUrls":[
    "https://s3.amazonaws.com/rld-operator/3f4a8bcd3268-size-1.png",
    "https://s3.amazonaws.com/rld-operator/3f4a8bcd3268-size-2.png",
    "https://s3.amazonaws.com/rld-operator/3f4a8bcd3268-size-3.png"
  ],
  "fixedAmounts":[
    
  ],
  "fixedAmountsDescriptions":[
    
  ],
  "localFixedAmounts":[
    
  ],
  "localFixedAmountsDescriptions":[
    
  ],
  "suggestedAmounts":[
    7,
    10,
    15,
    20,
    25,
    30,
    35,
    40,
    45,
    50,
    55,
    60,
    65
  ],
  "suggestedAmountsMap":{
    "7":19482.51,
    "10":27832.16,
    "15":41748.23,
    "20":55664.31,
    "25":69580.39,
    "30":83496.46,
    "35":97412.54,
    "40":111328.61,
    "45":125244.69,
    "50":139160.77,
    "55":153076.84,
    "60":166992.92,
    "65":180909.00
  },
  "promotions":[
    
  ]
}

Reloadly has an open-source library used to format, parse, and validate the authenticity of an international phone number. You can check it out here on GitHub.

Do note that due to the regional differences across Indian operators, the Auto-detect endpoint is a PAID service for mobile numbers registered in India. This service costs 0.0013 USD per API call involving mobile numbers registered in India only. If you have any questions, you can always reach out to us via our developer community

Request samples

curl --location --request GET 'https://topups.reloadly.com/operators/auto-detect/phone/03238482221/countries/PK?suggestedAmountsMap=true&SuggestedAmounts=true' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN_HERE' \
--header 'Accept: application/com.reloadly.topups-v1+json'

Response parameters

Parameter

Type

Description

id/operatorId

integer

This indicates the operator's ID

name

string

The operator's name

bundle

boolean

Indicates if the operator has any existing bundle plans

data

boolean

Indicates if the operator has any existing data plans

pin

boolean

Indicates if the operator supports PIN transactions

supportsLocal

Amounts

boolean

Indicates if the operator can make top-ups in local amounts

denominationType

string

Indicates if the operator makes top-ups through a fixed amount or a range of amounts. Options include FIXED and RANGE

senderCurrencyCode

string

Indicates the currency code of the account where the top-up is being made from

senderCurrency

Symbol

string

Indicates the currency symbol of the account where the top-up is being made from

destination

CurrencyCode

string

Indicates the currency code of the mobile number where the top-up is being sent to

destination

CurrencySymbol

string

Indicates the currency symbol of the mobile number where the top-up is being sent to

commission

integer

Indicates if the operator offers a commission or discount

international

Discount

integer

Indicates if the operator offers a discount for top-ups made to foreign numbers

localDiscount

integer

Indicates if the operator offers a discount for top-ups made to local numbers

mostPopularAmount

integer

Indicates the amount that is often used to make a top-up

mostPopular

LocalAmount

integer

Indicates the amount that is often used to make a top-up locally

minAmount

integer

Indicates the minimum amount that can be used to make a top-up

maxAmount

integer

Indicates the maximum amount that can be used to make a top-up

localMinAmount

integer

Indicates the minimum amount that can be used to make a top-up locally

localMaxAmount

integer

Indicates the maximum amount that can be used to make a top-up locally

isoName

string

Indicates the country's ISO code

name

string

Indicates the country's name

rate

integer

Indicates the FX rate at which the top-up will be made

currencyCode

string

Indicates the code of the currency at which the top-up will be made

logoURLs

string

These are links to SVG images of the operator's logos

fixedAmounts

integer

Indicates the fixed amounts that a top-up can be made in with the operator

fixedAmounts

Description

string

Indicates the descriptions for the operator's fixed amounts

localFixedAmounts

integer

Indicates the local fixed amounts that a top-up can be made in with the operator

localFixedAmounts

Description

string

Indicates the descriptions for the operator's local fixed amounts

suggestedAmounts

integer

Indicates the suggested amounts that can be used to make a top-up with the operator

suggestedAmounts

Map

string

Indicates the suggested amounts that can be mapped through

promotions

string

Indicates the promotions currently offered by the operator

Last updated

Was this helpful?