Retrieve dynamic pricing for all products on a specific course date.
Use this API call to fetch price quotes for every product tied to the given course date, as FrontCore's own booking form prices them: the rate plan for the course date's location and month, then the active price rules (seat utilization, early-bird, etc.). Campaign codes, vouchers and customer agreements are not included; a campaign code is applied in the booking.
To book at a quoted price, send final_price as price in POST /v2/booking (on the participant for the course price), or let the booking price itself with config.use_price_engine. The quote is for the moment it is asked for; a rule can start or end before the booking is made.
For every API request you make, you'll need to present the API access key in the HTTP Header as X-API-Key to be authenticated.
| Name | Required | Value | Description |
|---|---|---|---|
| coursedate_id | required | number | Course date identifier. E.g. 12930145 |
| currency | optional | string | Three-letter ISO currency code, lowercase. Defaults to account’s standard currency. |
| product_id | optional | number | Only the quote for this product. |
| bookingDate | optional | string | The time of booking to price for, e.g. 2026-12-01. Defaults to now. |
The quote lists the course's own prices: the main course price and any other price types set up on the course (for example a student price). Member prices and add-on products are not included; they keep the price set up in FrontCore. To book at a quoted price, copy these values from the quote into POST /v2/booking:
| From the quote | Into the booking |
|---|---|
coursedate_id | coursedate_id |
The currency you asked for | currency (the same currency, so the price means the same) |
final_price of the main course price (product.is_main_price is true) | price on each participant |
product.id and final_price of another price type on the course | { "id": product.id, "price": final_price } in the participant's products, with "config": { "auto_append_course_product": false } |
final_price is before VAT; FrontCore adds VAT when the booking is made. price_label (for example "Early bird") is a text you can show next to the price.
The main course price. A quote for course date 12761394:
GET /v2/price-quote?coursedate_id=12761394¤cy=nok
{
"prices": [
{
"course_id": 9,
"coursedate_id": 12761394,
"final_price": 5400,
"original_price": 6000,
"price_label": "Early bird",
"currency": "NOK",
"product": { "id": 101, "title": "Course fee", "is_main_price": true, ... },
...
}
]
}
The booking at that price. FrontCore adds the main course price to each participant by itself, so only price is needed:
POST /v2/booking
{
"coursedate_id": 12761394,
"currency": "nok",
"payment_method": "invoice",
"participants": [
{ "firstname": "John", "lastname": "Doe", "email": "john@example.com", "price": 5400 }
]
}
Another price type, for example a student price with product.id 102 and final_price 4500. Turn off the automatic main price and send the one you want, with exactly one course price per participant:
{
"coursedate_id": 12761394,
"currency": "nok",
"payment_method": "invoice",
"config": { "auto_append_course_product": false },
"participants": [
{
"firstname": "John",
"lastname": "Doe",
"email": "john@example.com",
"products": [
{ "id": 102, "price": 4500 }
]
}
]
}
Add-on products go in the same products list, for example { "id": 202 }. They aren't in the quote; find them with GET /v2/courses/{id}?include[]=products.
A quote is the price at the moment you ask for it. If a price rule starts or ends before the booking is made, the price you send is still used. To let the booking get the price at the moment it is made instead, leave price out and send "config": { "use_price_engine": true }; see Prices under POST /v2/booking.
$request_url = 'https://api.frontcore.com/v2/price-quote';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'X-API-Key: {your-api-key}',
'Accept: application/json',
));
$result = curl_exec($ch);
curl_close($ch);
If the method is successful it responds with an JSON structure, as it is shown below.
{
"prices": [
{
"course_id": "44724",
"coursedate_id": "12654406",
"final_price": 43,
"original_price": 43,
"price_label": null,
"currency": "NOK",
"currency_converted": false,
"product": {
"id": "23199",
"id_regular": null,
"is_member_price": false,
"item_number": "23199",
"title": "Nice test course - Example Price",
"title_label": "Example Price",
"id_group": "1",
"id_vat": 1,
"id_type": 2,
"id_currency": 1,
"id_relation": 44724,
"id_external_system": null,
"price": 43,
"co_products": [],
"is_archived": false,
"is_deleted": false,
"is_main_price": false,
"account_number": null,
"cost_unit": null
},
"rule": null,
"qualified_rules": null,
"condition_inputs": {
"currentDate": {
"date": "2025-11-20 13:16:53.757682",
"timezone_type": 3,
"timezone": "Europe/Oslo"
},
"cancellationDeadlineEnabled": true,
"currentSeatUtilization": 1,
"daysUntilCourseDate": -2884,
"todaysDayOfWeek": "thursday",
"todaysMonthName": "november",
"startDateWeekNumber": 52,
"courseLocationId": "2996",
"courseStartDate": {
"date": "2017-12-28 00:00:00.000000",
"timezone_type": 3,
"timezone": "Europe/Oslo"
},
"instanceId": "12654406",
"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W1jeU45UTNTZ1RNLzBjRGVXRWQreEtkcWI2VU5MbWFQbWRyeU9FMTRNOWJUSzcvdnVvWU01WExyWDBsallxb2pDVkE3VnBRcXNtck1jUGI3eGtiNmtMVUdxUTlYSHJxMFVHTlNPS1Mya2MwSHMxeVJwMWtDN3doSnNQY05Id3g3Y3dWNEo3ZS9LQ0VLQXR3b1Y2Wnk0Z3FCbU1hSGxDY1d5Zy8zS29NTldvZEowWHY3UVdVR2NGSEZoS2ExTy9WTlVieHlCSmFWMzVQa082SGpRVk9Xa0lUek5ISW5nPT0iLCJtYWMiOiI2ZDRkYjdmM2M3ZDU4NDk4NGEzNzM2OGQ4MjA4OTZjNmE2NzBmNzBkNzA3NjZiYTFkZWFjNjk2Mjc1YjMxZGU3IiwidGFnIjoiIn0="
},
{
"course_id": "44724",
"coursedate_id": "12654406",
"final_price": 34,
"original_price": 34,
"price_label": null,
"currency": "NOK",
"currency_converted": false,
"product": {
"id": "22976",
"id_regular": null,
"is_member_price": false,
"item_number": "22976",
"title": "A nice test course - Regular Price",
"title_label": "Regular Price",
"id_group": "1",
"id_vat": 1,
"id_type": 2,
"id_currency": 1,
"id_relation": 44724,
"id_external_system": null,
"price": 34,
"co_products": {
"22926": {
"idTo": "22926",
"id": "1"
},
"22927": {
"idTo": "22927",
"id": "0"
}
},
"is_archived": false,
"is_deleted": false,
"is_main_price": true,
"account_number": null,
"cost_unit": null
},
"rule": null,
"qualified_rules": null,
"condition_inputs": {
"currentDate": {
"date": "2025-11-20 13:16:53.764803",
"timezone_type": 3,
"timezone": "Europe/Oslo"
},
"cancellationDeadlineEnabled": true,
"currentSeatUtilization": 1,
"daysUntilCourseDate": -2884,
"todaysDayOfWeek": "thursday",
"todaysMonthName": "november",
"startDateWeekNumber": 52,
"courseLocationId": "2996",
"courseStartDate": {
"date": "2017-12-28 00:00:00.000000",
"timezone_type": 3,
"timezone": "Europe/Oslo"
},
"instanceId": "12654406",
"ecProductId": "22976"
},
"rateplan": null,
"calculated_at":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2RtSUZZNkd0ckU0eEc5MVhUTjEzSjhkL2JKVFJmVHlud2JybUFNallhTFRkeWtQSnlLYnArYnoxRFc1U1c1QXBCYU1EQ2tobEJ4cmRmQmtpa0pzQjg1cnpPdGZCUFBpQnJYTlZ2WFUwN1VFT3VOMU92RGtzWVdMY213WTRTUEkrcUhYUGxtRmZ5MlJsSVJFM0FORGZ1UWlBVkNKRGladFZWblZBTVVmNStnNFJiSmpQMjhzdXdSVDhtYUhXSzN3PT0iLCJtYWMiOiIyMmYwNTdjZGI3YjRkZjU5Nzg3MDRhMGFmMTc4MTY1OTUwMzdmNThmMjdjZmQwMmVmN2RkZDdlM2I2OWJiM2YxIiwidGFnIjoiIn0="
}
]
}
Unsuccessful response sample:
{
"error": "Wrong API Key"
}
| course_date_identifier_invalid | Missing or invalid course date ID. |
| currency_not_supported | The specified currency is not supported. |
| pricing_calculation_failed | Internal error calculating dynamic prices. |