Get Authenticated Merchant Profile
2/7/25Less than 1 minute
Get Authenticated Merchant Profile
Description
The Get Authenticated Merchant Profile API retrieves the details of the currently authenticated user. This endpoint requires a valid JWT token.
Endpoint
GET /v1/users/profile
Required Headers
{
"Authorization": "Bearer JWT_TOKEN"
}
Example API Call (Fetch or Axios)
fetch('https://api.shopsynch.com/v1/merchants/profile', {
method: 'GET',
headers: {
'Authorization': 'Bearer JWT_TOKEN'
}
})
.then(response => response.json())
.then(data => console.log(data));
📤 Sample 200 Response (Success)
{
"status": true,
"message": "profile retrieved",
"data": {
"id": "679e88f60ed25b3ca5dd530f",
"email": "system@yopmail.com",
"fullName": "tao adewuyi",
"phoneNumber": "090765541234",
"address": "44 Ogunsolu street",
"role": {
"name": "Merchant",
"slug": "merchant"
},
"tenantId": "SYSTEM-0971648-2-2-2025",
"merchantId": "SYSTEM-0971648-2-2-2025"
}
}
❌ Sample 401 Response (Unauthorized)
{
"status": false,
"message": "Unauthorized. Missing or invalid token."
}