API - Description - IDMOBILE - Simswap - Response

Support DQE
Support DQE
  • Updated

Simswap response success

KeyDescriptionFormat
statusStatus labelSTRING
operatorPhone number operatorSTRING
swappedIndicates if the sim card has been swapped (false or true)STRING

 

Response example:

{
    "status": "success",
    "operator": "Orange",
    "swapped": "false"
}

 

Simswap response error

KeyDescriptionFormat
statusRequest statusSTRING
error_typeError label detailed in the following tableSTRING
error_idError code detailed in the following tableSTRING(2)

 

Error codes details:

error_iderror_typeDescription
01invalid requestThe request is not valid
02invalid licence keyThe license is not valid
04invalid scopeInvalid scope
05missing or empty parameter (user_infos) for this scopeA parameter is missing for the scope called
06bad parameter format (user_infos) is not a valid JSONThe "user_infos" parameter is not a valid json
07missing mandatory key in user informations (phone)The missing "phone" key in the "user_infos" parameter is mandatory for this operator [SFR].
09ineligible phone numberNumber not eligible for the solution
10invalid phone numberThe phone number does not exist
11phone number is emptyThe phone number is empty
12phone check failedThe operator verification did not work
13operator [Operator Name] not foundThe operator is not found
14operator [Operator Name] not authorized for this licenceYour license is not open on this operator
15operator [Operator Name] not supported yetThe solution is not yet available on the requested solution
16operator [Operator Name] unreachableImpossible to contact the operator
17scope not supported by this operator [Operator Name] yetThis scope is not supported by the operator
30invalid or expired tokenThe token has expired

 

Response example:

{
         "status": "error",
         "error_type": "invalid phone number",
         "error_id": "10"
}



 

Related to

Was this article helpful?

0 out of 0 found this helpful