Skip to Content
Parent Loans APITerms Acceptance

Terms Acceptance

A loan involves two separate acceptances. Each one is captured in exactly one place, and they are stored separately.

Platform terms and conditionsLoan 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 capturedA checkbox on your application form, sent as acceptTerms in the submit body.Your accept or decline screen, sent to offer/respond.
Stored astermsAccepted, termsAcceptedAtoffer.acceptedAt, offer.rejectedAt, and the loan status
RequiredYes. Submit fails without acceptTerms: true.Yes. It gates Edubanc’s approval and mandate setup.

What changed, and what you need to do:

  1. Send acceptTerms: true when you submit a loan. This field is new and required.
  2. Stop calling accept-terms. It has been removed. Use offer/respond instead.

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.

EndpointWhere acceptTerms goes
POST /api/loansTop level.
POST /api/loans/batchTop level. Applies to every loan in the batch.
POST /api/loan-drafts/applications/{draftId}/submitTop level, next to the document keys.
POST /api/partner/loansTop level.
POST /api/partner/loans/batchTop 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... and POST /api/partner/loan-requests) already take acceptTerms in their payload, see Loan Request.
  • Loans created by an Edubanc admin get termsAccepted: true automatically. 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." }
AnswerEffect
Acceptoffer.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.
Declineoffer.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).

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-terms

Remove 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 Submitted or Approved,
  • 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 knowRead
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 resets termsAccepted. A material edit still moves the loan back to Submitted and needs re-approval.
  • Existing loans are not backfilled. They keep whatever termsAccepted value they had. It isn’t used for gating.
  • Partners must collect consent themselves. acceptTerms is a new required field on POST /api/partner/loans and POST /api/partner/loans/batch, so show the parent the terms in your own UI before you submit for them.