Skip to content

Add MonitoredPeriod into the API Response if a Telco cannot show the date / data for for Privacy Reasons #124

@QaunainM

Description

@QaunainM

Problem / Context

  • I noticed that when doing a SIM Swap API request against a number that had a SIM Swap event greater than the maxAge that the Telco wants to expose for privacy reasons, the response comes back blank but still logs as a 200 API successful event
  • In this case, for end users it would be better for an error to be returned saying something like; Requests for data more than x days not allowed
  • Not all telcos are using the same MaxAge time period at the moment, this will be due to privacy regulations that differ for each country

To Reproduce

  • Perform SIM Swap /retrieve-date and /check operations on a German number with Telco (DT) that had the events done more than 30 days ago
  • We get back blank data points and 200 API response

Expected behavior
As the restriction on the data being sent back is due to the Telcos privacy reasons, it seems it would be better for:

  • An error API response to be returned, as a 451 (unavailable for legal reasons)
  • An error message to be returned instead of a blank, i.e. Requests for data more than x days not allowed

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions