GET
/v1/basket/{familyId}/quote
curl \
--request GET 'https://api.classmanager.io/v1/basket/fml_123123123123/quote?enrolments=%7B%7D&trials=%7B%7D'
Response examples (200)
{
"registrationFees": [
{
"name": "string",
"registrationFeeId": "reg_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"subTotal": 100,
"total": 100,
"taxTotal": 100
}
],
"seasons": [
{
"familyId": "fml_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"season": {
"id": "sea_xxxxxxxxxxx",
"companyId": "co_123123123123",
"name": "2024 Season",
"startAt": "2023-12-25",
"endAt": "2023-12-25",
"registrationOpen": true,
"registrationStatus": "never",
"enableRegistrationFees": true,
"registrationFeeDto": {
"id": "reg_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "Registration Fee",
"amount": 100,
"maxAmountPerFamily": 100,
"repetitionInterval": "one-off",
"dueDate": "2023-12-05",
"proRated": true,
"taxRate": {
"id": "tax_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"rate": "20.000",
"label": "VAT (20%)",
"isDefault": true
},
"archivedAt": "2024-06-12T09:39:49.000000Z"
},
"registrationFee": 100,
"registrationFeeTaxRateId": "tax_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"hasMaxRegistrationFee": true,
"maxRegistrationFee": 200,
"pricingScheme": "none",
"pricingModel": "per-lesson",
"pricingPlans": [
{
"id": "pp_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"seasonId": "sea_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"pricingModel": "per-lesson",
"firstPaymentDate": "2023-12-05",
"numberOfInstallments": 100,
"type": "monthly",
"paymentDay": 100,
"discount": 42.0,
"billingTiming": "advance",
"enabled": true
}
],
"additionalFees": [
{
"id": "mkpl_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"companyId": "co_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"entityId": "sea_xxxxxxxxxxx",
"description": "Setup fee",
"amount": 1500,
"maxAmountPerFamily": 100,
"taxRateId": "tax_xxxxxxxxxxxxxxxxxxxxxxxxxx"
}
],
"createdAt": "2023-12-05 14:30:41",
"updatedAt": "2023-12-05 14:30:41",
"archivedAt": "2023-12-05 14:30:41"
},
"enabledPricingPlans": [
{
"id": "pp_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"seasonId": "sea_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"pricingModel": "per-lesson",
"firstPaymentDate": "2023-12-05",
"numberOfInstallments": 100,
"type": "monthly",
"paymentDay": 100,
"discount": 42.0,
"billingTiming": "advance",
"enabled": true
}
],
"description": "This is a bill description",
"date": "2023-12-05",
"subtotal": 1000,
"discountTotal": -100,
"taxTotal": 200,
"total": 1200,
"items": [
{
"description": "This is a bill item description",
"type": "manual-debit",
"subtotal": 1000,
"discountTotal": 100,
"taxTotal": 200,
"taxDescription": "1200",
"total": 1200,
"discounts": [
{
"description": "VAT (20%)",
"total": 200,
"amount": 320,
"taxAmount": 120
}
]
}
],
"taxes": [
{
"description": "VAT (20%)",
"amount": 200
}
],
"remainingInstalments": 100,
"proRatedTotal": 100
}
],
"summary": {
"subTotal": 100,
"total": 100,
"taxTotal": 100,
"discountTotal": 100,
"proRatedTotal": 100
}
}
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}
Response examples (404)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}