Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Get information on a booking

Get information on a booking from Trainingportal

Resource URL

URL: v1/booking/get/{bookingReference}

Request Method

POSTGET

Parameters

string username
required

Username

string password
required

Password

string bookingReference

path variable
required

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

lastNameLast name of the student
emailEmail address of the student
phonePhone number for the student
birthDateBirth date for the student
enroller

Information on the enroller:

  • firstName
  • lastName
  • email
  • phone
companyCompany the student is employed in
enrollmentStatus

Enrollment status. Possible values:

  • NEW
  • COMPLETED
commentOnEnrollmentComment from the enroller to the course provider
purchaseOrderNumberPurchase order number for the booking. If present, this must be referenced on invoices to Mintra Trainingportal


Example request

URL

https://www.trainingportal.no/mintra/api/courseprovider/rest/v1/booking/get/bdcac92e_a229_42bb_ba29_75add29454b4

POST DATAusername=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"
}