Skip to Content
Parent Loans APILoan Drafts

Loan Drafts

A draft is a loan application (or loan request) that can be built up over several calls instead of one. Start it, save progress field by field as your UI collects it, walk away and come back, then submit when it’s actually ready. Nothing is booked, or sent for review, until the submit call.

Like child linking, drafts take a parent session token, not your API key. Get one from Create parent SSO session and send it as Authorization: Bearer {accessToken}.

Two flows, pick by what you already know

Application draftRequest draft
Base route/api/loan-drafts/applications/api/loan-drafts/requests
MirrorsPOST /api/loansPOST /api/loan-requests/in-app
Needs a studentId already linked or enrolled?YesNo, can carry an inline student snapshot and links it automatically on submit
School must already be onboarded (schoolId)?YesNo, can submit a schoolName and get matched, or queued for onboarding
Best forA UI that already knows the exact school and studentFast intake when the school or child might not exist in Edubanc yet

Each parent has at most one open draft per flow at a time. Starting a new one resumes and merges into whichever draft is already open, so there’s no risk of two half-finished applications competing.

Application draft flow

Start, or resume into, the draft

POST /api/loan-drafts/applications
POST/api/loan-drafts/applications
{ "data": { "id": "b3422fb4-46e1-4ed9-811e-38ac52178104", "schoolId": "f87b9f4d-240e-47d8-8e04-aa3b0c7694a8", "studentId": "ee4b05ac-4fba-4318-9d0f-3f357a937088", "loanType": "Termly", "term": "FirstTerm", "academicSession": "2025/2026", "tenure": "ThreeMonths", "requestedAmount": 150000, "nextOfKin": null, "missingForSubmit": [], "isSubmitted": false, "submittedLoanApplicationId": null, "createdAt": "2026-09-29T09:00:00Z", "updatedAt": null }, "statusCode": 201 }

missingForSubmit is a UI hint, the fields still needed, and nothing more. It never lists documents; those are only checked at submit.

Save progress

Every field is optional here. Send only what changed and it merges into the existing draft.

PATCH /api/loan-drafts/applications/{draftId}
PATCH/api/loan-drafts/applications/

Resume it later

GET /api/loan-drafts/applications/recent
GET/api/loan-drafts/applications/recent

Submit

Pass the S3 document keys from Upload file, the same keys the direct submit endpoint requires for the school’s product type. This call is JSON, not multipart, even though the direct submit endpoint isn’t.

acceptTerms: true is required. The draft doesn’t store the parent’s agreement to the platform terms and conditions, so send it here, next to the document keys. See Terms Acceptance.

POST /api/loan-drafts/applications/{draftId}/submit
{ "utilityBill": "uploads/example-utility-bill.pdf", "idCard": "uploads/example-id-card.jpg", "acceptTerms": true }
POST/api/loan-drafts/applications//submit
{ "data": { "id": "<loanApplicationId>", "applicationNumber": "EDL-202609-7CA99965", "schoolName": "ClaudeTest Academy", "studentName": "Chidi Obi", "status": "Submitted", "loanAmount": 150000, "tenureMonths": 3, "monthlyRepaymentAmount": 52000, "totalRepayableAmount": 156000 }, "statusCode": 201 }

On success the draft is marked isSubmitted: true and submittedLoanApplicationId points at the resulting loan. A draft you decide not to finish can be discarded:

DELETE /api/loan-drafts/applications/{draftId}

Request draft flow

Lighter weight: the school and child don’t need to exist in Edubanc yet. Good for intake forms that run ahead of onboarding.

POST /api/loan-drafts/requests
POST/api/loan-drafts/requests
{ "data": { "id": "c90830c5-d8a0-459e-b1e8-d0b917c0e478", "referenceNumber": "REQ-202609-AD77BA3A", "status": "Draft", "requestedSchoolName": "MIVA", "requestedSchoolType": "Institution", "requestedAmount": 300000, "tenureMonths": 6, "academicSession": "2026/2027", "payloadJson": "{...the full partial payload, for rehydrating a resumed session...}", "missingForSubmit": [], "createdAt": "2026-09-29T09:05:00Z", "updatedAt": null }, "statusCode": 201 }

Save progress the same way as the application draft, a PATCH with just the changed fields:

PATCH/api/loan-drafts/requests/

Submit

POST /api/loan-drafts/requests/{draftId}/submit
POST/api/loan-drafts/requests//submit
{ "data": { "id": "bca15dd2-774a-459a-86d2-6370aa0f4eb6", "referenceNumber": "REQ-202609-4D5A09A3", "status": "UnderReview", "applicantUserId": "5d470a1e-ae05-440d-acc6-3f37a38180e4", "isNewAccount": false, "message": "Loan request submitted. We will review your application and notify you." }, "statusCode": 201 }

This produces a request, not a booked loan, it goes to UnderReview for Edubanc to match the school and review, then an admin promotes it into an actual loan. Track it with webhooks (loan_request.* events) or GET /api/loan-drafts/requests/{draftId}.

Required documents by school type

Enforced at submit, not before, so a draft can sit unfinished without a single file attached:

School typeRequired documents
K-12utilityBill, idCard
ProfessionalBody (Exam finance)examInvoice, utilityBill, bankStatement, idCard, payslips
Institution (Graduate finance)utilityBill, bankStatement, idCard, payslips (no examInvoice, no admissionLetter)

Upload each file first and keep the returned key, drafts take JSON keys, never multipart files or the presigned url:

curl -X POST "$BASE/api/uploads" -H "Authorization: Bearer $TOKEN" \ -F "file=@/path/to/utility-bill.pdf"

Common errors

ResponseCause
422 "You must accept the terms and conditions to apply."Application-draft submit without acceptTerms: true, see Terms Acceptance.
422 "This product requires: <DocType>."Missing a required document for that school type, see the table above.
422 "You must link this child to your account before applying for a loan on their behalf."Application-draft submit with a studentId that isn’t linked or enrolled yet, see Link or Enroll a Child. The request-draft flow doesn’t need this.
422 "Document key must be under 'uploads/' ..."Passed a raw filename or URL instead of the key returned by POST /api/uploads.
403Called with your API key and secret instead of a parent session token, these are parent-role endpoints.