Login
Vendors, admins, and customers can log in using the login route, which only allows the POST method.
https://ecom.coderorbit.com/api/login
headers:{
"Accept": "application/json",
"App-Master-Key": `${app_token}`
}
// A vendor’s status is always set to inactive ("status": 0) upon registration and requires approval by an admin.
body: {
"email": "", // required
"password": "" // required
}Result
{
"access_token": "...",
"token_type": "Bearer",
"user_data": {
"id": 1,
"role_id": 1,
"country_id": 18,
"name": "...",
"email": "...",
"extend_props": null,
"email_verified_at": null,
"created_at": "",
"updated_at": "",
"unique_id": "",
"otp": 388103,
"status": 1,
"description": null,
"created_by": 0,
"updated_by": 0,
"deleted_at": null
}
}
Forget Password
Vendors, admins, and customers can reset their password using the forget password route, which only allows the POST method.
Forget password will send a pin code by mail so must you have filed to the mail configuration by Check here
https://ecom.coderorbit.com/api/forgetPassword
headers:{
"Accept": "application/json",
"App-Master-Key": `${app_token}`
}
body: {
"email": "" // required
}Result
{
"message": "We send you a verifaction code in this mail {inputMail} please check",
"send": "success",
"user_data": {
"id": 14,
"role_id": 2,
"country_id": 1,
"name": "shohagh",
"email": "",
"extend_props": null,
"email_verified_at": null,
"unique_id": "",
"otp": 439523,
"created_by": null,
"description": null,
"status": 1,
"updated_by": null,
"created_at": "2023-05-14T21:46:22.000000Z",
"updated_at": "2023-05-17T02:32:34.000000Z",
"deleted_at": null
}
}
Reset Password
Vendors, admins, and customers can reset their password using the reset password route, which only allows the POST method.
https://ecom.coderorbit.com/api/resetPassword
headers:{
"Accept": "application/json",
"App-Master-Key": `${app_token}`
}
body: {
"password": "", // required
"password_confirmation": "", // required
"otp": "", // required
}Result
{
"message": "Password Reset",
"send": "success"
}Password Update
Vendors, admins, and customers can update their password after login using the update password route, which only allows the POST method.
https://ecom.coderorbit.com/api/admin/{{app_token}}/updatePassword
headers:{
"Accept": "application/json"
"Authorization" : `Bearer ${token}`
}
body: {
"current_password": "", // required
"password": "", // required
"password_confirmation": "" // required
}Result
{
"message": "Password Updated",
"send": "success"
}