Get information on a booking
Get information on a booking from Trainingportal
Resource URL
URL: v1/booking/get/{bookingReference}
Request Method
| POST | GET |
Parameters
string username | Username |
string password | Password |
string bookingReference path variable | Booking reference in Trainingportal |
Return value
Returns information on the booking
bookingReference | The booking reference in Trainingportal | ||
externalCourseClassId | Course provider's ID of the course class | ||
firstName | First name of the student | ||
| lastName | Last name of the student | ||
| Email address of the student | |||
| phone | Phone number for the student | ||
| birthDate | Birth date for the student | ||
| enroller | Information on the enroller:
| ||
| company | Company the student is employed in | ||
| enrollmentStatus | Enrollment status. Possible values:
| ||
| commentOnEnrollment | Comment from the enroller to the course provider | ||
| purchaseOrderNumber | Purchase order number for the booking. If present, this must be referenced on invoices to Mintra Trainingportal | ||
Example request
URL | |
| POST DATA | username=username&password=secret |
{ "bookingReference":"bdcac92e_a229_42bb_ba29_75add29454b4", "externalCourseClassId":"1", "firstname":"zamata quispe", "lastname":"Ek", "enroller": {"firstName":"Rolf Magne", "lastName":"King", "email":"noreply@example.org", "phone":"4712345678" }, "company":"Mintra Trainingportal", "enrollmentStatus":"NEW", "email":"noreply@example.org", "phone":"4712345678", "birthDate":"1969-01-03", "commentOnEnrollment":"I have a nut allergy"} |