-
Notifications
You must be signed in to change notification settings - Fork 30
Description
It is to implement the common PR: camaraproject/Commonalities#578 for SIMSwap API.
Problem description
The SIM Swap API specification does not include responses for 200 status codes that demonstrate the use of CONTEXT_CODE (e.g., regulatory or privacy restrictions) in business-level outcomes. This issue is propose updating the Simswap API spec with contextCode/contextMessage as SUBJECT_CONTEXT.
This ensures that consumers can see how SUBJECT_CONTEXT(contextCode/contextMessage) are used alongside primary outcome fields in successful responses.
Additional context
This update aligns the API documentation with CAMARA API Design Guide section 3.1 https://github.com/camaraproject/Commonalities/blob/main/documentation/CAMARA-API-Design-Guide.md#31-business-level-outcomes-in-successful-responses, ensuring business-level outcomes are visible and context fields are properly demonstrated. No changes to info.description were deemed necessary at this time.
Possible evolution
In order for the data is understandable machine2machine. It is important to define a semi-standard context_code that applicable to the SimSwap API.
Following are a list of CONTEXT_CODE for SIMSwap API (optionally, it could be an enum to limit the random code to be used):
-
NUMBER_DEACTIVATED: The phone number has been cancelled or deactivated. The network cannot provide a recent swap date because the primary subject no longer exists in an active state.
-
UNSUPPORTED_MVNO: The number belongs to a Mobile Virtual Network Operator that operates on the host network, but the host network does not have the authority or visibility to share the MVNO's SIM swap logs.
-
RESTRICTED_ACCOUNT_TYPE: The number belongs to a corporate, government, or specialized enterprise account where data sharing is restricted by master service agreements.
-
CUSTOMER_OPT_OUT: The end-user has explicitly exercised a privacy control (e.g., via their carrier settings) blocking the sharing of network-level authentication data.
-
OTHERS
Alternative solution