Version 1.4.0
For partners who collect exam fees themselves. An application can carry your own externalRef, the application lists can be filtered by it and by payment status, and a settled payment shows the reference Main Team confirms it with. Nothing is removed; code written against 1.3.0 keeps working.
Added
createApplicationtakes an optionalexternalRef, your own reference for the application (trimmed, 1 to 64 characters, no control characters or line breaks;nullis refused). It is stored on the application and returned bycreateApplication,getApplication,listApplications,listExamApplications,listStudentApplications,moveApplicationanddeleteApplication. A repeat of the create for an application that has noexternalRefsets it; a repeat with the same one, or none, answers200as before; a repeat with a different one answers409 conflict("Application already exists with a different externalRef, …") and changes nothing. A server that cannot store it yet answers503 service_unavailableand writes nothing.listApplications,listExamApplicationsandlistStudentApplicationstake two optional filters:externalRef(exact match) andpaymentStatus(pending,paidorcanceled). They only narrow the list, combine, and are counted inpagination.total. A filter that cannot be read answers400 bad_request.- On
getApplication,listApplications,listExamApplicationsandlistStudentApplications, apaidpayment settled through a transaction carriesreference, the code Main Team quotes when it confirms a payment (for examplestx-6718a2f4c1d3e). It is absent otherwise. - A guide for partners who collect exam fees themselves: Settling payments.
Changed
- How you receive your credentials: Main Team emails a one-time link, never the secret. The link shows
apiKeyandapiSecretonce you click "Show credentials", expires 24 hours after it is created, is replaced by any newer link, and should be destroyed once you have saved the values. Documentation only; no operation changed. - On
hilingua, the rule that stops a student holding two exams on one sitting is keyed by language instead of by category. A student can now hold several languages in one Language Competition sitting; the same language twice on one sitting is refused with409 conflict,Student already has an application for <language> on this sitting. The same language cannot be sat twice on one date.A sitting held in the student's local time (Essay Writing) takes one exam in all and keeps the category message.listAvailableExams,createApplicationandupdateApplicationfollow the same rule. Every other organization is unchanged.
Removed
- The Client libraries pages of the partner documentation (the overview, Node.js and PHP): the libraries were never published. Build your own client stays, now among the guides.
GET /v1/docs/clientsanswers301to it. No operation changed.
Fixed
- The documentation of
price(listExams,getExam,listAvailableExams) and ofpayment.amount(createApplication,getApplication,listApplications,listExamApplications,listStudentApplications,moveApplication,deleteApplication) now says what the API has always returned: whole numbers in the smallest unit of the currency, cents for euro, so2500is 25.00. The examples used to show25. No value changed.
Release notes
Version 1.4.0 adds one optional request field, two optional list filters and two response fields, and removes nothing. Code written against 1.3.0 keeps working without a change.
Your own reference on an application
createApplication takes an optional externalRef, your own
reference for the entry, such as the order number your site charged the student under. It is kept
on the application and returned by every application operation. Once set it does not change: a
repeat of the create with the same reference, or none, answers 200 as before, and a repeat with a
different one answers 409 conflict. A repeat for an application created earlier without a
reference sets it. See Your own reference.
Filtering the application lists
listApplications,
listExamApplications and
listStudentApplications take ?externalRef= and
?paymentStatus=pending|paid|canceled. paymentStatus=pending lists what is still to be paid. See
Filter the lists.
The payment reference
On the application reads, a paid payment settled through a transaction carries reference, for
example stx-6718a2f4c1d3e: the code Main Team quotes when it confirms a payment. Payments settled
together share one.
Settling payments yourself
A new guide, Settling payments, describes the whole flow for
partners who collect exam fees on their own site and pay Main Team by bank transfer: create the
application, send Main Team a settlement list with the transfer, read the payments back as paid, and
only then let the student sign in.
Amounts are in cents
price and payment.amount have always been whole numbers in the smallest unit of the currency:
2500 is 25.00. The documentation's examples showed 25; they now show what the API returns.
Receiving your credentials
Main Team now emails you a one-time link to your apiKey and apiSecret, never the secret
itself. The link expires 24 hours after it is created; destroy it once you have saved the values.
See How you receive them.