π#8 Phone Info
#8.1 Add New Phone:
This API is to add client's phone number. Client can add up to 5 numbers.
post
Authorizations
Body
codestringRequiredExample:
Country Code
20
phoneNumberstringRequiredExample:
Client mobile number
01xxxxxxxxx
Responses
200
Success
application/json
400
BadRequest
application/json
401
Unauthorized
application/json
post
POST /Onboarding/api/v1/onboarding/PhoneInfo HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"code": "20",
"phoneNumber": "01xxxxxxxxx"
}
{
"status": 0
}
#8.2 Send OTP :
This API is to send OTP to added mobile number. OTP will be expired after 10 minutes.
post
Authorizations
Responses
200
Success
application/json
400
BadRequest
application/json
401
Unauthorized
application/json
post
POST /Onboarding/api/v1/onboarding/PhoneInfo/SendOtp HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"status": 0
}
#8.3 Validate OTP:
This API is to validate OTP sent to client's mobile.
post
Authorizations
Body
otpstringRequiredExample:
OTP sent to client's mobile.
686330
Responses
200
Success
application/json
400
BadRequest
application/json
401
Unauthorized
application/json
post
POST /Onboarding/api/v1/onboarding/PhoneInfo/ValidateOTP HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"otp": "686330"
}
{
"status": 0
}
#8.4 Get Verified Phones :
This API is to get list of client's verified mobile numbers.
get
Authorizations
Responses
200
Success
application/json
400
BadRequest
application/json
401
Unauthorized
application/json
get
GET /Onboarding/api/v1/onboarding/PhoneInfo/GetVerifiedPhones HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"phoneNumber": "+201xxxxxxxxx",
"isDefault": true
}
]
#8.5 Set Default Phone:
This API is to set default client's specific mobile number if client has multiple numbers.
post
Authorizations
Body
phoneNumberstringRequiredExample:
Client's phone number
+201xxxxxxxxx
Responses
200
Success
application/json
400
BadRequest
application/json
401
Unauthorized
application/json
post
POST /Onboarding/api/v1/onboarding/PhoneInfo/SetDefault HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"phoneNumber": "+201xxxxxxxxx"
}
{
"status": 0
}
#8.6 Finalize Phone Step:
This API is to finalize phone step.
post
Authorizations
Responses
200
Success
application/json
400
BadRequest
application/json
401
Unauthorized
application/json
post
POST /Onboarding/api/v1/onboarding/PhoneInfo/Approve HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"status": 0
}
Last updated