Get Seller by Email
Fetch Seller data by Seller email
Endpoint
Base URL
http://localhost:8080
Method and Endpoint
GET /api/sellers/current
Headers
Authorization: Bearer access_token
Responses
You will get responses like this:
200 (success)
Response Body
{
"data": {
"ID": "6657998e3434aea83471a797",
"first_name": "firsName",
"last_name": "lastName",
"email": "example@gmail.com",
"password": "$2a$14$clFCbdfYCq6QUr6ZXEP6b.y1kJNU7MCqrfwUiE/HbxH9VAa6kcyfC",
"image_url": "",
"phone": "081234556776",
"refresh_token": "",
"role": "Seller",
"created_at": "2024-05-29T21:09:34.945Z",
"updated_at": "2024-05-29T21:09:34.945Z",
"email_verified": false,
"phone_verified": false,
"seller_id": "6657998e3434aea83471a797",
"store_id": "",
"address": null
},
"message": "Fetch Seller Successfully"
}
401 (unauthorized)
Response Body
{
"error": "Invalid authorization header"
}
401 (unauthorized - expire token)
Response Body
{
"error": "token is expired: token is expired by 2m19s"
}
500 (server error)
Response Body
{
"error": "Internal server error"
}