Device Swap
API operation of device API.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org_id | path | string | true | ‘none’ |
body | body | DeviceSwapCreateDeviceSwapDate | true | Create a device swap date request for a phone number. |
Request body - instance of DeviceSwapCreateDeviceSwapDate
|
|
Name | Type | Required | Description |
---|---|---|---|
phoneNumber | DeviceSwapPhoneNumber | false | A public identifier addressing a telephone subscription. In mobile networks it corresponds to the MSISDN (Mobile Station International Subscriber Directory Number). In order to be globally unique it has to be formatted in international format, according to E.164 standard, prefixed with ‘+’. |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Contains information about Device swap change | DeviceSwapDeviceSwapInfo |
400 | Bad Request | Bad Request | DeviceSwapErrorInfo |
401 | Unauthorized | Unauthorized | DeviceSwapErrorInfo |
403 | Forbidden | Forbidden |
In addition to regular scenario of PERMISSION_DENIED, other scenarios may exist:
-
Phone number cannot be deducted from access token context. (
"code": "INVALID_TOKEN_CONTEXT","message": "Phone number cannot be deducted from access token context."
)|DeviceSwapErrorInfo|
|404|Not Found|Not found|DeviceSwapErrorInfo|
|422|Unprocessable Entity|Unprocessable Content -
Service not supported for this phoneNumber. (
"code": "NOT_SUPPORTED","message": "Service not supported for this phoneNumber"
) -
The phone number is not included in the request and the phone number information cannot be derived from the 3-legged access token. (
"code": "UNIDENTIFIABLE_PHONE_NUMBER","message": "The phone number is not included in the request and the phone number information cannot be derived from the 3-legged access token"
)|DeviceSwapErrorInfo|
|500|Internal Server Error|Internal Server Error|DeviceSwapErrorInfo|
|503|Service Unavailable|Service Unavailable|DeviceSwapErrorInfo|
|504|Gateway Time-out|Gateway Timeout|DeviceSwapErrorInfo|
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org_id | path | string | true | ‘none’ |
body | body | DeviceSwapCreateCheckDeviceSwap | true | Create a check device swap request for a phone number. |
Request body - instance of DeviceSwapCreateCheckDeviceSwap
|
|
Name | Type | Required | Description |
---|---|---|---|
phoneNumber | DeviceSwapPhoneNumber | true | A public identifier addressing a telephone subscription. In mobile networks it corresponds to the MSISDN (Mobile Station International Subscriber Directory Number). In order to be globally unique it has to be formatted in international format, according to E.164 standard, prefixed with ‘+’. |
maxAge | integer(int32) | true | Period in hours to be checked for device swap. |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Returns whether a device swap has been performed during a past period | DeviceSwapCheckDeviceSwapInfo |
400 | Bad Request | Bad Request |
In addition to regular scenario of INVALID_ARGUMENT, other scenarios may exist:
- Out of Range. Specific Syntax Exception used when a given field has a pre-defined range or a invalid filter criteria combination is requested (“code”: “OUT_OF_RANGE”,“message”: “Client specified an invalid range.")|DeviceSwapErrorInfo|
|401|Unauthorized|Unauthorized|DeviceSwapErrorInfo|
|403|Forbidden|Forbidden
In addition to regular scenario of PERMISSION_DENIED, other scenarios may exist:
-
Phone number cannot be deducted from access token context. (
"code": "INVALID_TOKEN_CONTEXT","message": "Phone number cannot be deducted from access token context."
)|DeviceSwapErrorInfo|
|404|Not Found|Not found|DeviceSwapErrorInfo|
|422|Unprocessable Entity|Unprocessable Content -
Service not supported for this phoneNumber. (
"code": "NOT_SUPPORTED","message": "Service not supported for this phoneNumber"
) -
The phone number is not included in the request and the phone number information cannot be derived from the 3-legged access token. (
"code": "UNIDENTIFIABLE_PHONE_NUMBER","message": "The phone number is not included in the request and the phone number information cannot be derived from the 3-legged access token"
)|DeviceSwapErrorInfo|
|500|Internal Server Error|Internal Server Error|DeviceSwapErrorInfo|
|503|Service Unavailable|Service Unavailable|DeviceSwapErrorInfo|
|504|Gateway Time-out|Gateway Timeout|DeviceSwapErrorInfo|
Endpoints
Device Swap
KycMatch