User Story #690
openFeature #664: My Profile
Backend - Partner Approval
0%
Description
As a Business Partner (Travel Agent),
I want to register my business account and know the approval status,
So that I understand when I can start accessing B2B pricing and partner features.
Business Background¶
Partner accounts are different from customer accounts.
Every partner registration must be reviewed and approved by a Super Admin before the account becomes active.
Until approval, the partner must not have access to any B2B functionality.
Functional Requirements¶
1. Partner Registration Confirmation¶
After a partner successfully submits the registration form, display the following confirmation screen.
Message
Your partner registration has been submitted successfully.
Our team will review your application and notify you once it has been approved.
Display a button
Return to Login
2. Pending Approval Login¶
If a partner attempts to log in while their application is still under review,
Do not allow access.
Display
Your partner account is currently under review.
You will receive a notification once your application has been approved.
Buttons
- Return to Login
- Contact Support
3. Approved Partner¶
Once approved,
The partner shall be able to log in normally.
After login,
Display the Partner Dashboard.
The navigation shall include
- B2B Packages
- Partner Quotes
- B2B Pricing
4. Rejected Application¶
If the partner application has been rejected,
Display
Unfortunately, your partner application was not approved.
Please contact our support team if you believe this is incorrect.
Buttons
- Contact Support
- Return to Login
5. Suspended Partner¶
If an approved partner is later suspended,
Display
Your partner account has been temporarily suspended.
Please contact our support team for further assistance.
Do not allow login.
6. Corporate Email Validation¶
If the email address entered is not a business email address,
Display
Please register using your official business email address.
The registration cannot continue until a valid business email is provided.
7. Duplicate Registration¶
If the business has already registered,
Display
A partner account already exists for this business email address.
Display button
Sign In
8. Approval Status Display¶
If the partner is signed in after approval,
The profile page shall display
Partner Status
Approved
User Messages¶
Pending Approval
Your partner account is currently under review.
Approved
Welcome to Halal Travels Club Partner Portal.
Rejected
Unfortunately, your partner application was not approved.
Suspended
Your partner account has been temporarily suspended.
Duplicate
A partner account already exists for this business email address.
Acceptance Criteria¶
Scenario 1¶
Given a new partner registers,
When registration is completed,
Then a confirmation message is displayed and the account remains pending approval.
Scenario 2¶
Given a partner is pending approval,
When attempting to log in,
Then login is prevented and the pending approval message is displayed.
Scenario 3¶
Given a partner has been approved,
When logging in,
Then the Partner Dashboard is displayed with B2B features.
Scenario 4¶
Given a partner application has been rejected,
When logging in,
Then access is denied and the rejection message is displayed.
Scenario 5¶
Given a suspended partner,
When attempting to log in,
Then access is denied with the suspension message.
In Scope¶
- Registration confirmation
- Approval status screens
- Approval messages
- Partner dashboard visibility
- Login restrictions
Out of Scope¶
- Admin approval actions
- B2B pricing management
- Partner profile management
Backend User Story (BE)¶
Story Overview¶
Story ID: AUTH-BE-PA-001
Title: Partner Approval Workflow
Epic: Authentication & User Management
Sub Feature: Partner Approval
Objective¶
As the platform,
I need to control the approval status of partner accounts,
So that only approved business partners can access B2B pricing and partner functionality.
Business Rules¶
Every partner registration shall begin with the status:
Pending Approval
Partner accounts cannot access B2B features until approved by a Super Admin.
Functional Requirements¶
1. Initial Status¶
When a partner account is created,
The system shall automatically assign the status
Pending Approval.
2. Approval¶
When a Super Admin approves the partner,
The status shall become
Approved.
The partner shall immediately become eligible to access:
- Partner Dashboard
- B2B Pricing
- Partner Quotes
3. Rejection¶
When a Super Admin rejects the application,
The status shall become
Rejected.
The partner shall not be permitted to log in.
Display
Unfortunately, your partner application was not approved.
4. Suspension¶
A Super Admin may suspend an approved partner.
When suspended,
The partner shall no longer be able to access the platform.
Display
Your partner account has been temporarily suspended.
5. Duplicate Business Email¶
If another registration is attempted using an existing partner business email,
The registration shall not be created.
Display
A partner account already exists for this business email address.
6. Corporate Email Requirement¶
Partner registration shall only be accepted using an official business email address.
If the requirement is not met,
Display
Please register using your official business email address.
7. Status Changes¶
Whenever a partner status changes,
The latest status shall be applied immediately.
If the partner is currently signed in,
The updated status shall take effect the next time they access the platform.
8. Invalid Status¶
If an account contains an unknown approval status,
The partner shall not be granted access.
Display
Your account status could not be verified. Please contact support.
Approval Statuses¶
Supported statuses
- Pending Approval
- Approved
- Rejected
- Suspended
No other status values shall be permitted.
Acceptance Criteria¶
Scenario 1¶
Given a new partner registers,
When registration completes,
Then the account status becomes Pending Approval.
Scenario 2¶
Given a pending partner,
When attempting to log in,
Then access is denied.
Scenario 3¶
Given an approved partner,
When logging in,
Then access is granted.
Scenario 4¶
Given a rejected partner,
When logging in,
Then access is denied.
Scenario 5¶
Given a suspended partner,
When logging in,
Then access is denied.
Scenario 6¶
Given a duplicate business email,
When registration is submitted,
Then the registration is rejected with the duplicate account message.
In Scope¶
- Partner approval lifecycle
- Partner status management
- Login authorization
- Corporate email validation
- Duplicate partner prevention
Out of Scope¶
- Partner pricing configuration
- Partner package management
- Partner reporting
- Super Admin permission management
No data to display