Partner Loans API
Take loans and loan requests the same way an Edubanc parent does, without holding a
parent JWT. Your backend calls these endpoints with your API key and names the parent
with externalUserId.
Requires the CanSubmitLoans scope, which is off by default. Email
hello@edubanc.ng to have it enabled. Without it, every
endpoint on this page returns 403.
Changed: terms acceptance. POST /api/partner/loans and /loans/batch now require
acceptTerms: true, and the separate accept endpoint has been removed in favour of
offer/respond. See
Terms Acceptance for what to update.
Before you start
CanSubmitLoansis enabled for your partner.- Your schools and students are synced, so
externalSchoolIdandexternalStudentIdresolve. - The parent has been provisioned once via
Create parent SSO session
(needs
CanProvisionParents). You can ignore the token it returns if you only use API-key calls.
Each call runs the same commands as the Parent Loans API, so validation, pricing, and ownership rules are identical. A partner can only act on parents it provisioned and loans those parents own.
Some steps still need the parent in person. Mono bank linking for credit
assessment and mandate authorisation cannot be done server-to-server. Use the
hosted SSO flow, or show the parent the authorizationUrl returned by
Setup repayment mandate. Admin decisions (review,
terms offer, approve, disburse) stay with Edubanc, and you hear about outcomes through
webhooks.
Two ways to authenticate
| Credential | How the parent is identified |
|---|---|
X-EdPay-Api-Key + X-EdPay-Api-Secret | externalUserId in the body (submits) or as a ?externalUserId= query parameter (everything else). |
Parent SSO token (Authorization: Bearer) | Taken from the token. externalUserId is ignored. |
A normal parent login token is refused with 403.
Headers (API key)
| Header | Value |
|---|---|
Accept | application/json |
X-EdPay-Api-Key | {partnerApiKey} |
X-EdPay-Api-Secret | {partnerApiSecret} |
Content-Type | application/json (for requests with a body) |
Submit loan application
POST /api/partner/loansSubmit a loan using your ids. Edubanc resolves externalSchoolId and
externalStudentId and links the parent to the student. Same validation, pricing, and
one-loan-per-student-per-session rule as the parent flow.
Documents are S3 keys from Upload file. K-12 requires utilityBill
and idCard. Omit creditAssessmentId to submit into manual review. The loan is
attributed to your partner, so every loan.* webhook reaches your webhookUrl.
acceptTerms: true is required. Collect the parent’s agreement to the platform
terms and conditions in your own UI before you submit for them. If it’s missing or
false, the call returns 422 with
"You must accept the terms and conditions to apply." See
Terms Acceptance.
This route links the child for you from externalStudentId, so there’s nothing to
do beforehand. That’s different from POST /api/loans on a parent session token,
which needs the child linked or enrolled first, and
from a loan draft, which needs it at submit time.
{
"externalUserId": "PARENT-USER-9921",
"externalSchoolId": "SCHOOL-001",
"externalStudentId": "STU-2025-001",
"loanType": "Termly",
"term": "FirstTerm",
"academicSession": "2025/2026",
"tenure": "SixMonths",
"creditAssessmentId": "00000000-0000-0000-0000-000000000002",
"requestedAmount": null,
"utilityBill": "uploads/example-utility-bill.pdf",
"idCard": "uploads/example-id-card.jpg",
"nextOfKin": {
"name": "Ngozi Eze",
"phone": "08012345678",
"relationship": "Spouse",
"occupation": "Teacher"
},
"acceptTerms": true
}Try it
Submit batch loan (multi-child)
POST /api/partner/loans/batchMulti-child K-12 application: one loan per child, grouped under one batch reference.
Children are named by externalStudentId. acceptTerms: true is required here too,
and applies to every loan in the batch.
{
"externalUserId": "PARENT-USER-9921",
"externalSchoolId": "SCHOOL-001",
"loanType": "Termly",
"term": "FirstTerm",
"academicSession": "2025/2026",
"tenure": "SixMonths",
"students": [
{ "externalStudentId": "STU-2025-001", "requestedAmount": null },
{ "externalStudentId": "STU-2025-002", "requestedAmount": 80000 }
],
"utilityBill": "uploads/example-utility-bill.pdf",
"idCard": "uploads/example-id-card.jpg",
"creditAssessmentId": "00000000-0000-0000-0000-000000000002",
"acceptTerms": true
}Try it
Read loans
All reads take externalUserId as a query parameter when you use the API key.
| Endpoint | Returns |
|---|---|
GET /api/partner/loans | The parent’s loans, newest first. Optional status, page, pageSize. |
GET /api/partner/loans/{loanId} | Full detail: terms, mandate, disbursement, payment history. |
GET /api/partner/loans/{loanId}/repayment-schedule | Installment-by-installment schedule. |
GET /api/partner/loans/batch/{batchId} | Batch summary with each child’s loan. |
Try it
Cancel loan
POST /api/partner/loans/{loanId}/cancel?externalUserId={externalUserId}Withdraws the parent’s application, only possible before disbursement. Fires
loan.cancelled.
{ "reason": "Applied by mistake" }Try it
Respond to loan terms offer
POST /api/partner/loans/{loanId}/offer/respond?externalUserId={externalUserId}Accept or decline the terms offer Edubanc sent. You receive loan.terms_offered, and the
loan status is AwaitingTermsAcceptance. Declining requires a reason and returns the
loan to UnderReview so Edubanc can send a new offer. It does not cancel the loan.
Fires loan.terms_accepted or loan.terms_rejected.
Accept:
{ "accept": true }Decline:
{ "accept": false, "reason": "The monthly repayment is too high for me" }You can only respond while the loan is AwaitingTermsAcceptance. At any other time the
call returns 422 with "There are no loan terms awaiting your response."
The request, response, errors, and resulting loan state match the parent endpoint, see Respond to loan terms offer. This is the only way to accept loan terms, the older accept endpoint has been removed.
Try it
Setup repayment mandate
POST /api/partner/loans/{loanId}/setup-mandate?externalUserId={externalUserId}Initialises the direct-debit mandate. The response includes authorizationUrl. Show it
to the parent (WebView or redirect) so they can authorise with their bank; this step
needs the human. You are notified with loan.mandate_activated, or
loan.mandate_failed.
The terms offer must be accepted first (offer.acceptedAt set). Otherwise the call
returns 422 with "Loan terms must be accepted before setting up a mandate." Check
that the loan’s availableActions contains SetupMandate before you call this.
{
"loanApplicationId": "00000000-0000-0000-0000-000000000001",
"address": "12 Example Street, Ikeja, Lagos"
}Try it
Upload supporting document
POST /api/partner/loans/{loanId}/documents?externalUserId={externalUserId}Attach an extra document after submit (multipart, max 10MB). Prefer Upload file and pass keys at submit time.
Try it
Loan requests
A loan request is reviewed by Edubanc and then booked into a loan. Requests submitted
here are stored with Channel = Partner and attributed to you, so every
loan_request.* webhook reaches you.
Submit loan request
POST /api/partner/loan-requestsexternalSchoolId and externalStudentId are optional. When given they fill
payload.schoolId and payload.studentId; otherwise the payload’s schoolName and
student snapshot flow through as in the parent’s in-app request.
documents are S3 keys from Upload file, grouped by document type,
unlike the parent-facing endpoint, which takes raw multipart files. See
Loan Request for the full field list payload
accepts and the LoanRequestStatus values a submission can come back with.
{
"externalUserId": "PARENT-USER-9921",
"externalSchoolId": "SCHOOL-001",
"externalStudentId": "STU-2025-001",
"payload": {
"fullName": "Chidi Eze",
"phoneNumber": "08099887766",
"email": "chidi@example.com",
"schoolType": "K12",
"requestedFinancingAmount": 250000,
"tenure": "SixMonths"
},
"documents": {
"UtilityBill": ["uploads/example-utility-bill.pdf"],
"IdCard": ["uploads/example-id-card.jpg"]
}
}List and read loan requests
| Endpoint | Returns |
|---|---|
GET /api/partner/loan-requests | Requests for the acting parent. Optional page, pageSize. |
GET /api/partner/loan-requests/{loanRequestId} | Status of one request. Once booked it carries the resulting loanId. |