Check if Profile is Complete
GET/company/auth/isComplete
Endpoint to verify if the company user profile has all mandatory data completed.
Verify that the company user profile is complete before allowing certain actions that require complete information (create auctions, post offers).
Use Cases
- System verifies profile completeness before allowing auction creation
- UI displays incomplete profile indicator to the user
- Action required message is shown to complete the profile
- Periodic verification on the user dashboard
Process Flow
- Authenticated user requests profile verification
- Middleware m.isLoged verifies the user is authenticated (401 if not)
- Client sends GET with JWT token in headers
- Server validates JWT token and extracts user ID
- Server searches for user in database by ID
- System verifies mandatory profile fields
- If all required fields are complete, returns true
- If required fields are missing, returns false
- The indicator allows the frontend to display appropriate messages
Verified Fields
- Full name
- Valid and verified email
- Complete company data
- Fiscal address configured
- Contact phone
- Payment information configured
Security
- Requires authenticated user (valid JWT)
- Does not expose specific information about which fields are missing
Responses
- 200
- 401
Profile completion status
Unauthenticated