TrueXCore KYC Tenure API

API aggregator for Open Gateway KYC Tenure. The service routes every request through Telcofinder using the provided phoneNumber, resolves the consumer-aware provider route, and invokes the downstream KYC Tenure capability using consumer-specific Open Gateway credentials and CIBA authentication.

  • 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"
}
kyc-tenureKYC Tenure check operations
POST/kyc-tenure/checkCheck KYC tenure for a network subscriber

Verifies that a network subscriber has been a customer of the operator for at least the minimum period indicated by tenureDate. Routing is performed via Telcofinder using the provided phoneNumber. Requires permission truexcore.kycTenure.check.

  • Bearer JWT

Parameters

No parameters

Request bodyrequired

Media type

application/json
{
  "phoneNumber": "+34666666666",
  "tenureDate": "2024-02-28"
}

Responses

CodeDescriptionLinks
200

KYC tenure check executed successfully

Media type

application/json
{
  "trace_id": "trace-001",
  "contractType": "Business",
  "tenureDateCheck": true
}
400

Validation error

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}
401

Unauthorized

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}
403

Forbidden

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}
404

Operator not supported or subscriber not found

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}
429

Provider quota exceeded

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "TOO_MANY_REQUESTS",
  "message": "Too many requests, please retry later using a backoff strategy"
}
500

Internal provider or routing error

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}
503

Upstream dependency unavailable

Media type

application/json
{
  "trace_id": "trace-001",
  "code": "VALIDATION_ERROR",
  "message": "Request validation failed"
}
Schemas
HealthResponse
HealthResponse {
status
string
example: OK
enum: [ OK, KO ]
}
KycTenureRequest
KycTenureRequest {
phoneNumber*
string
pattern: ^\+[1-9][0-9]{4,14}$
example: +34666666666

A phone number in E.164 format used for Telcofinder routing.

tenureDate*
string($date)
example: 2024-02-28

The minimum customer tenure date to verify in YYYY-MM-DD format.

}
KycTenureResponse
KycTenureResponse {
trace_id*
string
example: trace-001

Distributed trace identifier for the request.

contractType
string
example: Business

The type of contract held by the subscriber.

tenureDateCheck*
boolean
example: true

True if the subscriber has been a customer since at least tenureDate.

}
ErrorResponse
ErrorResponse {
trace_id
string
example: trace-001

Distributed trace identifier.

code*
string
example: VALIDATION_ERROR

Stable application error code.

message*
string
example: Request validation failed

Detailed error description.

}