POST
/v1/seasons/
curl \
--request POST 'https://localhost/v1/seasons/' \
--header "Content-Type: application/json" \
--data '{"name":"Fall Season","startAt":"2023-12-05","endAt":"2023-12-05","pricingScheme":"none","enableRegistrationFees":true,"pricingModel":"per-lesson","additionalFees":[{"id":"mkpl_xxxxxxxxxxxxxxxxxxxxxxxxxx","companyId":"co_xxxxxxxxxxxxxxxxxxxxxxxxxx","entityId":"sea_xxxxxxxxxxx","description":"Setup fee","amount":1500,"proRated":false,"maxAmountPerFamily":100,"taxRateId":"tax_xxxxxxxxxxxxxxxxxxxxxxxxxx"}],"pricingPlans":[{"id":"pp_xxxxxxxxxxxxxxxxxxxxxxxxxx","seasonId":"sea_xxxxxxxxxxxxxxxxxxxxxxxxxx","pricingModel":"per-lesson","firstPaymentDate":"2023-12-05","numberOfInstallments":100,"type":"one-off","discount":42.0,"enabled":true,"installmentDates":["2025-05-04T09:42:00Z"]}]}'
Request examples
{
"name": "Fall Season",
"startAt": "2023-12-05",
"endAt": "2023-12-05",
"pricingScheme": "none",
"enableRegistrationFees": true,
"pricingModel": "per-lesson",
"additionalFees": [
{
"id": "mkpl_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"companyId": "co_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"entityId": "sea_xxxxxxxxxxx",
"description": "Setup fee",
"amount": 1500,
"proRated": false,
"maxAmountPerFamily": 100,
"taxRateId": "tax_xxxxxxxxxxxxxxxxxxxxxxxxxx"
}
],
"pricingPlans": [
{
"id": "pp_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"seasonId": "sea_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"pricingModel": "per-lesson",
"firstPaymentDate": "2023-12-05",
"numberOfInstallments": 100,
"type": "one-off",
"discount": 42.0,
"enabled": true,
"installmentDates": [
"2025-05-04T09:42:00Z"
]
}
]
}
Response examples (200)
{
"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": "one-off",
"discount": 42.0,
"enabled": true,
"installmentDates": [
"2025-05-04T09:42:00Z"
]
}
],
"additionalFees": [
{
"id": "mkpl_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"companyId": "co_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"entityId": "sea_xxxxxxxxxxx",
"description": "Setup fee",
"amount": 1500,
"proRated": false,
"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"
}
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}
Response examples (422)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}