Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Get a user's course bookings

Resource URL

URL: user/coursebookings


Parameters

string username
required

Username

string password
required

Password

string userId
optional

Trainingportal internal ID of the user
string userExternalId
optional
External ID of the user. Either userId or userExternalId must be filled

string language
optional

Language, available values are:
no, en, pr
Default value: no


Return value

Method returns collection of enrollments. Each element contains following fields:

enrollmentReferenceId

Unique identifier of an enrollment.
courseNameCourse name
courseClassNameCourse class name
courseIdUnique identifier of course
courseClassIdUnique identifier of course class
locationName of the location
address

Contains location where course class is going to take place. Can be empty when course class has multiple sessions in different locations.

Consists of:

  • city
  • location
  • zipCode
  • country
startDateCourse class start date. Format: yyyy-MM-dd
startTimeCourse class start time. Format hh:mm
endDateCourse class end date. Format: yyyy-MM-dd
endTimeCourse class end time. Format hh:mm

Example request

URL

https://www.trainingportal.no/mintra/rest/user/coursebookings

POST DATAuserExternalId=a001&username=username&password=secret
{
"coursebookings": [
{
"address": {
"location": "Kobbervikdalen 61",
"city": "Drammen",
"zipCode": "3036",
"contry": ""
},
"startTime": "09:00",
"endTime": "16:00",
"courseId": 6547,
"courseClassId": 12345,
"startDate": "2014-05-05",
"courseClassName": "Kis kompetanse AS",
"courseName": "Anleggasmaskin - Modul 1.1, 2.1 og 3.1",
"endDate": "2014-05-09",
"enrollmentReferenceId": "fwere92f-b3e1-412a-a452-fe6e2b51afa9",
"courseExternalId": "",
"location": "Bergen"
},
]
}