Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

EXPORT - Get a user's course bookings

Resource URL

URL: user/export/coursebookings


Parameters

string username
required

Username

string password
required

Password

int pageNumber
optional

Page number to retrieve

int pageSize
optional

Maximum number of elements on each page

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:

courseBookingsA list containing course booking data for a specific user
courseBookings[].idID of the user
courseBookings[].externalIdExternal ID of the user

courseBookings[].bookings[].enrollmentReferenceId

Unique identifier of an enrollment.
courseBookings[].bookings[].courseNameCourse name
courseBookings[].bookings[].courseClassNameCourse class name
courseBookings[].bookings[].courseIdUnique identifier of course
courseBookings[].bookings[].courseClassIdUnique identifier of course class
courseBookings[].bookings[].locationName of the location
courseBookings[].bookings[].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
courseBookings[].bookings[].startDateCourse class start date. Format: yyyy-MM-dd
courseBookings[].bookings[].startTimeCourse class start time. Format hh:mm
courseBookings[].bookings[].endDateCourse class end date. Format: yyyy-MM-dd
courseBookings[].bookings[].endTimeCourse class end time. Format hh:mm
pageNumberNumber of the current page
pageSizeSize of the current page

Example request

URL

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

POST DATAusername=username&password=secret&pageNumber=10&pageSize=20
{
"coursebookings": [
{
"id": 123,
"externalId": "abc",
"bookings": [
{
"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"
}
]
}
]
}