Skip to Content
Parent Loans APIComplete Parent Profile

Complete Parent Profile

A parent must provide all four of these before a loan can be processed:

Mandatory fieldRule
GenderMale or Female.
NIN11 digits.
Date of birthYYYY-MM-DD. The parent must be at least 18.
Residential addressThe 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:

  1. If isBvnVerified is false, run BVN Verification first.
  2. Then fetch the profile and show a “Complete your profile” form if any of the four mandatory fields is missing:
CheckMissing when
Gendergender is empty
NINisNinVerified is false
Date of birthdateOfBirth is empty
AddressisAddressVerified 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/profile

Returns 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

GET/api/parents/profile

Update parent profile

PUT /api/parents/profile

Saves the missing details. Send the parent token as Authorization: Bearer {parentAccessToken}.

Request body

FieldDescription
addressMandatory until verified. Residential address. Omit once isAddressVerified is true.
ninMandatory until verified. 11-digit National Identification Number. Omit once isNinVerified is true.
phoneNumberRequired. Nigerian format, e.g. 08012345678.
genderRequired. Male or Female.
incomeSourceRequired. SalaryEarner or BusinessOwner.
occupationRequired.
dateOfBirthRequired. 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:

FieldRule
ninDigits only, exactly 11.
phoneNumberNigerian format, e.g. 08012345678.
dateOfBirthA real date in YYYY-MM-DD format. The parent must be at least 18.
genderMale or Female.
incomeSource, occupationRequired.

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.

Try it

PUT/api/parents/profile