Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Get available course classes

Get list of available courses classes for a given course

Resource URL

URL: v1/courses/get/{externalCourseId}/courseClasses/get

Request Method

POSTGET

Parameters

string username
required

Username

string password
required

Password

string externalCourseId
required

Course provider's

ID for the course

Return value

Returns list of course class objects. Each object contains the following information:

cancelledTrue if the course class has been cancelled

courseExternalId

The course provider's ID for the course (in their booking system)

externalId

The course provider's ID for the course class (in their booking system)

locationLocation for the course class

availableSeats

Number of available seats

enrollmentDeadlineEnrollment deadline
cancellationDeadlineCancellation deadline
startDateStart date
startTimeStart time
endDateEnd date
endTimeEnd time
address

Address consists of:

  • addressLine1
  • addressLine2
  • city
  • zipCode
  • country
price

Price consists of:

  • currency
  • amount

Example request

URL

https://www.trainingportal.no/mintra/api/courseprovider/rest/v1/courses/get/4/courseClasses/get

POST DATAusername=username&password=secret
[
{ "cancelled":false,
"courseExternalId":"4",
"externalId":"203",
"location":"Rjukan",
"availableSeats":6,
"enrollmentDeadline":"2015-07-02",
"cancellationDeadline":"2015-07-01",
"startDate":"2015-07-09",
"startTime":"00:00:00",
"endDate":"2015-07-12",
"endTime":"00:00:00",
"address":
{ "addressLine1":"Breivikveien 25",
"addressLine2":"","city":"Rjukan",
"zipCode":"3120",
"country":"Norway"
},
"price":
{ "amount":18690.00,
"currency":"NOK"
}
}
]