TrueXCore Number Recycling API

API aggregator for number recycling verification. Checks if a mobile number (MSISDN) has been recycled (reassigned to a new subscriber) after a specified date. Routes consumer requests to the correct provider based on the operator code resolved from the MSISDN through Telcofinder. Only Orange (004) and Yoigo (005) operators are supported.

  • undefined
  • undefined
  • undefined
  • undefined
healthHealth check operations
GET/healthHealth check

Parameters

No parameters

Responses

CodeDescriptionLinks
200

Service is healthy

Media type

application/json
{
  "status": "OK"
}
503

Service is unhealthy

Media type

application/json
{
  "status": "KO"
}
number-recyclingNumber recycling verification operations
POST/number-recycling/checkCheck if a number has been recycled

Verifies if a phone number (MSISDN) has been recycled after a specified date. Requires permission truexcore.numberRecycling.check. The request always routes through Telcofinder operator lookup using the provided phoneNumber. Only Orange (004) and Yoigo (005) operators are supported. Returns 404 if the operator is not in the allowed list.

  • Bearer JWT

Parameters

No parameters

Request bodyrequired

Media type

application/json
{
  "phoneNumber": "+34600123456",
  "specifiedDate": "2023-07-03"
}

Responses

CodeDescriptionLinks
200

Number recycling check completed successfully

Media type

application/json
{
  "phoneNumberRecycled": false,
  "traceId": "550e8400-e29b-41d4-a716-446655440000"
}
400

Validation error or invalid request parameters

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "VALIDATION_ERROR",
  "message": "phoneNumber is required"
}
401

Unauthorized

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "VALIDATION_ERROR",
  "message": "phoneNumber is required"
}
403

Forbidden — missing required permission

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "VALIDATION_ERROR",
  "message": "phoneNumber is required"
}
404

Operator not supported or information not available

Media type

application/json

operatorNotSupported

{
  "trace_id": "trace-001",
  "code": "NOT_FOUND",
  "message": "Operator not supported. Only Orange and Yoigo are allowed"
}

informationNotAvailable

{
  "trace_id": "trace-001",
  "code": "NOT_FOUND",
  "message": "No information found for this request"
}
429

Too many requests — quota exceeded

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "VALIDATION_ERROR",
  "message": "phoneNumber is required"
}
500

Internal error or routing misconfiguration

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "VALIDATION_ERROR",
  "message": "phoneNumber is required"
}
503

Upstream dependency unavailable

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "VALIDATION_ERROR",
  "message": "phoneNumber is required"
}
Schemas
HealthResponse
HealthResponse {
status
string
example: OK
enum: [ OK, KO ]
}
NumberRecyclingCheckRequest
NumberRecyclingCheckRequest {
phoneNumber*
string
pattern: ^\+([1-9]\d{0,3})\d{4,14}$
example: +34600123456

Customer phone number in E.164 format (starting with country code).

specifiedDate*
string($date)
example: 2023-07-03

Reference date to verify if the number has been recycled, in YYYY-MM-DD format

}
NumberRecyclingCheckResponse
NumberRecyclingCheckResponse {
phoneNumberRecycled*
boolean
example: false

Indicates whether the phone number has been recycled after the specified date

traceId*
string
example: 550e8400-e29b-41d4-a716-446655440000

Distributed trace identifier propagated through the request lifecycle

}
ErrorResponse
ErrorResponse {
trace_id
string
example: trace-001

Distributed trace identifier.

code*
string
example: VALIDATION_ERROR

Stable TrueXCore error code. Current public values are VALIDATION_ERROR, INVALID_ARGUMENT, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, PATH_NOT_FOUND, TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE and INTERNAL_SERVER_ERROR. INVALID_ARGUMENT is propagated from the provider on a 400 and TOO_MANY_REQUESTS accompanies the documented 429 response.

message*
string
example: phoneNumber is required

Detailed error description

}