TrueXCore SimSwap API
API aggregator for SIM Swap checks and latest SIM swap date retrieval. The service routes every request through Telcofinder using the provided phoneNumber, resolves the consumer-aware provider route, and invokes the downstream Open Gateway SIM Swap capability using CIBA authentication.
/healthHealth checkParameters
No parameters
Responses
| Code | Description | Links |
|---|---|---|
| 200 | Service is healthy Media type application/jsonHealthResponse { status string } | No links |
| 503 | Service is unhealthy Media type application/jsonHealthResponse { status string } | No links |
/sim-swap/checkCheck whether a SIM swap occurred recentlyReturns whether the mobile line has experienced a SIM swap during the requested time window. Requires permission truexcore.simSwap.check.
- Bearer JWT
Parameters
No parameters
Request bodyrequired
Media type
application/json{
"phoneNumber": "+34666666666",
"maxAge": 72
}Subscriber number in E.164 format, starting with country code and prefixed with '+'.
Period in hours to be checked for SIM swap.
Responses
| Code | Description | Links |
|---|---|---|
| 200 | SIM swap check executed successfully Media type application/jsonCheckSimSwapResponse { trace_id* string Distributed trace identifier for the request. swapped* boolean Indicates whether the SIM card has been swapped during the provided maxAge period. } | No links |
| 400 | Validation error Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
| 401 | Unauthorized Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
| 403 | Forbidden Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
| 404 | Operator not supported or information not available Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
| 429 | Provider quota exceeded Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
| 500 | Internal provider or routing error Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
| 503 | Upstream dependency unavailable Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
/sim-swap/retrieve-dateRetrieve the latest SIM swap dateReturns the timestamp of the latest SIM swap event, or null when the downstream provider has no retained value for the requested line. Requires permission truexcore.simSwap.retrieveDate.
- Bearer JWT
Parameters
No parameters
Request bodyrequired
Media type
application/json{
"phoneNumber": "+34666666666"
}Subscriber number in E.164 format, starting with country code and prefixed with '+'.
Responses
| Code | Description | Links |
|---|---|---|
| 200 | Latest SIM swap date retrieved successfully Media type application/jsonRetrieveSimSwapDateResponse { trace_id* string Distributed trace identifier for the request. latestSimChange string($date-time) Timestamp of the latest SIM swap performed. It must follow RFC 3339 and must have a time zone. Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ, which allows values such as 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z. } | No links |
| 400 | Validation error Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
| 401 | Unauthorized Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
| 403 | Forbidden Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
| 404 | Operator not supported or information not available Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
| 429 | Provider quota exceeded Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
| 500 | Internal provider or routing error Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
| 503 | Upstream dependency unavailable Media type application/jsonErrorResponse { trace_id string Distributed trace identifier. code* string Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. message* string Detailed error description. } | No links |
HealthResponseCheckSimSwapRequestSubscriber number in E.164 format, starting with country code and prefixed with '+'.
Period in hours to be checked for SIM swap.
CheckSimSwapResponseDistributed trace identifier for the request.
Indicates whether the SIM card has been swapped during the provided maxAge period.
RetrieveSimSwapDateRequestSubscriber number in E.164 format, starting with country code and prefixed with '+'.
RetrieveSimSwapDateResponseDistributed trace identifier for the request.
Timestamp of the latest SIM swap performed. It must follow RFC 3339 and must have a time zone. Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ, which allows values such as 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z.
ErrorResponseDistributed trace identifier.
Stable TrueXCore error code. Current public values include VALIDATION_ERROR, INVALID_ARGUMENT, KNOW_YOUR_CUSTOMER_INVALID_PARAM_COMBINATION, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR.
Detailed error description.