Complete Parent Profile
A parent must provide all four of these before a loan can be processed:
| Mandatory field | Rule |
|---|---|
| Gender | Male or Female. |
| NIN | 11 digits. |
| Date of birth | YYYY-MM-DD. The parent must be at least 18. |
| Residential address | The parent’s home address. |
Sign up doesn’t collect them, and Edubanc’s operations team needs them to process the loan. After the parent signs up or signs in, they must complete their profile.
A parent missing any of the four cannot be processed. If you build your own UI,
collect all four and send them in PUT /api/parents/profile
before the parent applies.
When to ask
After the parent signs in:
- If
isBvnVerifiedisfalse, run BVN Verification first. - Then fetch the profile and show a “Complete your profile” form if any of the four mandatory fields is missing:
| Check | Missing when |
|---|---|
| Gender | gender is empty |
| NIN | isNinVerified is false |
| Date of birth | dateOfBirth is empty |
| Address | isAddressVerified is false |
This is what the Edubanc web app does after every sign in. Its form also asks for the parent’s income source and occupation.
Show only the fields that are missing. Never ask again for a NIN or address that is already verified.
Parents can also change these details at any time from their profile settings, using the same two endpoints. Name and email are read-only there.
Get parent profile
GET /api/parents/profileReturns the signed-in parent’s profile. Send the parent token as
Authorization: Bearer {parentAccessToken}.
Response 200
Click to expand
{
"success": true,
"message": "Request successful",
"data": {
"id": "ed050022-d245-4b4b-8aed-b61c8f4abf7a",
"firstName": "Ngozi",
"lastName": "Eze",
"fullName": "Ngozi Eze",
"email": "ngozi.eze@example.com",
"phoneNumber": "08012345678",
"dateOfBirth": "1988-04-12",
"gender": "Female",
"incomeSource": "SalaryEarner",
"occupation": "Teacher",
"isAddressVerified": true,
"isBvnVerified": true,
"isNinVerified": true
},
"errors": [],
"statusCode": 200
}interface ParentProfile {
id: string;
firstName: string;
lastName: string;
fullName: string;
email: string;
phoneNumber: string;
dateOfBirth: string | null; // "YYYY-MM-DD"
gender: string | null; // "Male" | "Female"
incomeSource: "SalaryEarner" | "BusinessOwner" | null;
occupation: string | null;
isAddressVerified: boolean;
isBvnVerified: boolean;
isNinVerified: boolean;
}The NIN and address themselves are never returned, only whether each one is verified. There is nothing to prefill for them.
Try it
Update parent profile
PUT /api/parents/profileSaves the missing details. Send the parent token as
Authorization: Bearer {parentAccessToken}.
Request body
| Field | Description |
|---|---|
address | Mandatory until verified. Residential address. Omit once isAddressVerified is true. |
nin | Mandatory until verified. 11-digit National Identification Number. Omit once isNinVerified is true. |
phoneNumber | Required. Nigerian format, e.g. 08012345678. |
gender | Required. Male or Female. |
incomeSource | Required. SalaryEarner or BusinessOwner. |
occupation | Required. |
dateOfBirth | Required. YYYY-MM-DD. The parent must be at least 18. |
{
"address": "12 Example Street, Ikeja, Lagos",
"nin": "12345678901",
"phoneNumber": "08012345678",
"gender": "Female",
"incomeSource": "SalaryEarner",
"occupation": "Teacher",
"dateOfBirth": "1988-04-12"
}interface UpdateParentProfilePayload {
address?: string; // mandatory until isAddressVerified is true, then omit
nin?: string; // 11 digits; mandatory until isNinVerified is true, then omit
phoneNumber: string;
gender: string; // "Male" | "Female"
incomeSource: "SalaryEarner" | "BusinessOwner";
occupation: string;
dateOfBirth: string; // "YYYY-MM-DD", at least 18
}Don’t send address or nin once they’re verified. Leave them out of the body
entirely, so a blank form field never overwrites confirmed details.
Validate before sending
Check these in your form before calling the endpoint:
| Field | Rule |
|---|---|
nin | Digits only, exactly 11. |
phoneNumber | Nigerian format, e.g. 08012345678. |
dateOfBirth | A real date in YYYY-MM-DD format. The parent must be at least 18. |
gender | Male or Female. |
incomeSource, occupation | Required. |
After saving
The response uses the standard envelope, so show its message to the parent. Then
fetch the profile again and check gender, isNinVerified,
dateOfBirth and isAddressVerified to decide whether the parent can continue.