Terms Acceptance
A loan involves two separate acceptances. Each one is captured in exactly one place, and they are stored separately.
| Platform terms and conditions | Loan terms | |
|---|---|---|
| What it means | “I agree to the general terms to apply for a loan.” | “I agree to these numbers”, the offer Edubanc sends after review. |
| Where it’s captured | A checkbox on your application form, sent as acceptTerms in the submit body. | Your accept or decline screen, sent to offer/respond. |
| Stored as | termsAccepted, termsAcceptedAt | offer.acceptedAt, offer.rejectedAt, and the loan status |
| Required | Yes. Submit fails without acceptTerms: true. | Yes. It gates Edubanc’s approval and mandate setup. |
What changed, and what you need to do:
- Send
acceptTerms: truewhen you submit a loan. This field is new and required. - Stop calling
accept-terms. It has been removed. Useoffer/respondinstead.
Platform terms: acceptTerms at submit
Show a terms and conditions checkbox on your application form, block submit until
it’s ticked, and send its value as acceptTerms.
| Endpoint | Where acceptTerms goes |
|---|---|
POST /api/loans | Top level. |
POST /api/loans/batch | Top level. Applies to every loan in the batch. |
POST /api/loan-drafts/applications/{draftId}/submit | Top level, next to the document keys. |
POST /api/partner/loans | Top level. |
POST /api/partner/loans/batch | Top level. |
POST /api/loans:
{
"schoolId": "00000000-0000-0000-0000-000000000010",
"studentId": "00000000-0000-0000-0000-000000000011",
"loanType": "Termly",
"term": "FirstTerm",
"academicSession": "2025/2026",
"tenure": "SixMonths",
"utilityBill": "uploads/example-utility-bill.pdf",
"idCard": "uploads/example-id-card.jpg",
"acceptTerms": true
}POST /api/loan-drafts/applications/{draftId}/submit. A draft doesn’t store the
checkbox, so you send it at submit time:
{
"utilityBill": "uploads/example-utility-bill.pdf",
"idCard": "uploads/example-id-card.jpg",
"acceptTerms": true
}Response
On success the loan is created with termsAccepted: true and termsAcceptedAt set to
the submit time. No separate “accept terms” call follows.
{
"termsAccepted": true,
"termsAcceptedAt": "2025-09-01T10:30:00Z"
}These two fields sit inside the usual loan object, see Submit loan application for the full response.
Error 422
Returned when acceptTerms is missing or false:
{
"success": false,
"statusCode": 422,
"message": "Validation failed.",
"errors": ["You must accept the terms and conditions to apply."]
}What hasn’t changed
- Loan requests (
/api/loan-requests...andPOST /api/partner/loan-requests) already takeacceptTermsin their payload, see Loan Request. - Loans created by an Edubanc admin get
termsAccepted: trueautomatically. The parent still has to accept the loan terms offer.
Loan terms: respond to the offer
POST /api/loans/{loanId}/offer/respond (parent)
POST /api/partner/loans/{loanId}/offer/respond?externalUserId={externalUserId} (partner)After Edubanc reviews the loan, it sends the parent a terms offer and the loan moves to
AwaitingTermsAcceptance. The parent accepts or declines it with one call.
Accept:
{ "accept": true }Decline (reason is required when accept is false):
{ "accept": false, "reason": "The monthly repayment is too high." }| Answer | Effect |
|---|---|
| Accept | offer.acceptedAt is set, and Edubanc records the parent’s IP address. status stays AwaitingTermsAcceptance until Edubanc approves. Edubanc’s approval and mandate setup are unblocked. |
| Decline | offer.rejectedAt and offer.rejectionReason are set. status returns to UnderReview so Edubanc can revise the terms and send a new offer. |
You can only respond while status is AwaitingTermsAcceptance. At any other time the
call returns 422 with the message "There are no loan terms awaiting your response."
Behaviour change: responding to an offer no longer changes termsAccepted. That
field now only records the platform terms accepted at submit.
The full reference, with the response, the offer object, and a “Try it” box, is on
Respond to loan terms offer
(parent) and
Partner Loans API (partner).
Email deep link
The offer email Edubanc sends links to:
{portalUrl}/parent/loans/{loanId}?acceptTerms={loanId}Open your accept or decline view when acceptTerms is in the query string.
This query parameter is only a hint to the UI. It shares a name with the
acceptTerms body field you send at submit, but the two are unrelated.
Removed endpoints
These endpoints have been removed and now return 404:
POST /api/loans/{loanId}/accept-terms
POST /api/partner/loans/{loanId}/accept-termsRemove any button or call that uses them. The accept action on your offer screen
should call offer/respond with accept: true.
Mandate setup needs an accepted offer
Setup repayment mandate
(and the partner equivalent) now
requires offer.acceptedAt to be set. It no longer looks at termsAccepted. Without an
accepted offer the call returns 422 with the message
"Loan terms must be accepted before setting up a mandate."
availableActions contains SetupMandate only when all of these are true:
- the loan is
SubmittedorApproved, - the offer has been accepted,
- there is no mandate yet.
Show or hide your “set up mandate” button from availableActions, not from individual
flags.
Which field to read
| You want to know | Read |
|---|---|
| Did the parent agree to the platform terms when applying? | termsAccepted, termsAcceptedAt |
| Has the parent accepted the loan terms offer? | offer.acceptedAt != null |
| Did the parent decline the offer, and why? | offer.rejectedAt, offer.rejectionReason |
| Is the parent being asked to respond right now? | status === "AwaitingTermsAcceptance" and offer.acceptedAt == null |
| Can they set up a mandate? | availableActions contains SetupMandate |
termsAccepted is informational, for audit and display. Don’t use it to enable or
disable steps.
The offer object on a loan:
{
"sentAt": "2025-09-03T09:00:00Z",
"documentUrl": "https://.../loan-offer-LN-20250901-0001.pdf",
"acceptedAt": null,
"rejectedAt": null,
"rejectionReason": null
}See The offer object for what
each field means.
Admin changes and existing loans
- Reverting or editing a loan clears the offer. If Edubanc reverts a loan from
AwaitingTermsAcceptance, or makes a material edit (amount, tenure, or rates), the offer is cleared and the terms must be sent again. This no longer resetstermsAccepted. A material edit still moves the loan back toSubmittedand needs re-approval. - Existing loans are not backfilled. They keep whatever
termsAcceptedvalue they had. It isn’t used for gating. - Partners must collect consent themselves.
acceptTermsis a new required field onPOST /api/partner/loansandPOST /api/partner/loans/batch, so show the parent the terms in your own UI before you submit for them.