Get price of a single course depending on the country of user requesting it
Rate limit: Maximum 60 requests in a window of 1m.
curl --request POST \
--url https://backend.codedamn.com/api/public/get-course-price \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"data": {
"fermionCourseId": "<string>",
"fermionSchoolId": "<string>",
"discountCouponCode": "<string>",
"userCountryHint": "<string>"
}
}
]
}
'[
{
"output": {
"status": "ok",
"data": {
"prices": [
{
"planType": "PartialPaymentPlan",
"fermionDigitalProductPriceId": "<string>",
"realFullPriceOfProductInLowestCurrencyUnitIrrespectiveOfTaxAndExclusiveOfDiscount": 123,
"totalDiscountComponentValueInLowestCurrencyUnit": 123,
"basePaymentToPayExclusiveOfTaxAndIrrespectiveOfDiscountInLowestCurrencyUnit": 1,
"emiIntervalInDays": 90,
"allInstallmentOptions": [
{
"eachInstallmentPaymentAmountInLowestCurrencyUnitExclusiveOfTaxAndDiscount": 123,
"eachInstallmentPaymentAmountInLowestCurrencyUnitInclusiveOfDiscountButExclusiveOfTax": 123,
"installmentCount": 2,
"installmentPaymentScheduleInformation": [
{
"payByDate": "2023-11-07T05:31:56Z"
}
]
}
],
"currencySymbol": "<string>",
"currencyType": "Aud",
"inrGstSpecificData": {
"isAmountExclusiveOfGst": true,
"additionalGstAmountInrPaise": 123
},
"couponData": {
"status": "ok",
"discountCodeUsed": "<string>",
"couponTypeSpecificData": {
"type": "percent-off",
"discountPercentOffApplied": 123
},
"description": "<string>"
}
}
]
}
}
}
]API Request Body
Show child attributes
Show child attributes
Course ID of the course. You can find IDs of your course using get-all-courses API endpoint
Your school ID
Any discount code you want to apply to get updated prices. Send null if no discount code should be applied
Two letter country code of user to force apply regional pricing. If not provided then we will use the country code of the user making this request.
API Response Body
Show child attributes
ok Show child attributes
Array of available pricing plans for the course. Each plan includes payment options, currency information, applicable discounts, and tax details
Show child attributes
PartialPaymentPlan x >= 00 <= x <= 1801Show child attributes
x >= 1Aud, Bdt, Brl, Cad, Cop, Dop, Etb, Eur, Gbp, Idr, Inr, Kes, Lkr, Mad, Myr, Mxn, Ngn, Npr, Nzd, Pkr, Pln, Rub, Thb, Try, Usd, Sgd, Cny, Sar, Twd, Jpy, Krw, Vnd Show child attributes
ok curl --request POST \
--url https://backend.codedamn.com/api/public/get-course-price \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"data": {
"fermionCourseId": "<string>",
"fermionSchoolId": "<string>",
"discountCouponCode": "<string>",
"userCountryHint": "<string>"
}
}
]
}
'[
{
"output": {
"status": "ok",
"data": {
"prices": [
{
"planType": "PartialPaymentPlan",
"fermionDigitalProductPriceId": "<string>",
"realFullPriceOfProductInLowestCurrencyUnitIrrespectiveOfTaxAndExclusiveOfDiscount": 123,
"totalDiscountComponentValueInLowestCurrencyUnit": 123,
"basePaymentToPayExclusiveOfTaxAndIrrespectiveOfDiscountInLowestCurrencyUnit": 1,
"emiIntervalInDays": 90,
"allInstallmentOptions": [
{
"eachInstallmentPaymentAmountInLowestCurrencyUnitExclusiveOfTaxAndDiscount": 123,
"eachInstallmentPaymentAmountInLowestCurrencyUnitInclusiveOfDiscountButExclusiveOfTax": 123,
"installmentCount": 2,
"installmentPaymentScheduleInformation": [
{
"payByDate": "2023-11-07T05:31:56Z"
}
]
}
],
"currencySymbol": "<string>",
"currencyType": "Aud",
"inrGstSpecificData": {
"isAmountExclusiveOfGst": true,
"additionalGstAmountInrPaise": 123
},
"couponData": {
"status": "ok",
"discountCodeUsed": "<string>",
"couponTypeSpecificData": {
"type": "percent-off",
"discountPercentOffApplied": 123
},
"description": "<string>"
}
}
]
}
}
}
]