Estimate the CASNOS contribution
Estimate of the 2026 CASNOS contribution, from the same formula as the UpGrowth calculator. Tunisia (country=TN): the CNSS contribution of the non-agricultural self-employed, by income_class 1 to 10. An estimate from public texts, not tax advice.
Request
- Base URL: https://www.upgrowth.dz/api/v1
- URL: https://www.upgrowth.dz/api/v1/calculators/casnos
- Auth: one of:
- none
- HTTP bearer
Query parameters
Yearly amount in Algerian dinars (DZD). For the flat-rate regimes send the turnover (chiffre d'affaires) of the previous year; for BENEFICE_REEL send the taxable profit. Needed for those three regimes, ignored for AUTO_ENTREPRENEUR and PREMIERE_ANNEE. Ignored for Tunisia (country TN), whose contribution depends on the income class. For Morocco (country MA, regime AUTO_ENTREPRENEUR) it is required: the yearly amount, in Moroccan dirhams (MAD), of the "droits annuels" that select the bracket of the scale of the tax administration.
Algeria: FORFAITAIRE_ACHAT_VENTE, FORFAITAIRE_PRESTATIONS (flat-rate regimes, resale and services), BENEFICE_REEL (actual profit), AUTO_ENTREPRENEUR (flat yearly option) or PREMIERE_ANNEE (first year). Tunisia (country TN): INDEPENDANT_NON_AGRICOLE, INDEPENDANT_AGRICOLE and ARMATEUR_PECHE_30T (ten classes, need income_class); PETIT_AGRICULTEUR, PETIT_ARMATEUR_PECHE and PECHEUR_INDEPENDANT (flat 7.5 % scheme of law 2002-32); ARTISAN (craftsmen of the same law, 7.5 % of 2/3 of the SMIG over 200 hours a month). Morocco (country MA): AUTO_ENTREPRENEUR (decree 2-21-928) or TRAVAILLEUR_NON_SALARIE (the other non-salaried workers: one decree per category, chosen with category).
Tunisia only (country TN): the income class of the insured person in the CNSS scale of the self-employed, from 1 (the lowest base) to 10. Required with the regime INDEPENDANT_NON_AGRICOLE; the answer lists the ten classes. Ignored for Algeria.
Tunisia only (country TN): the monthly guaranteed minimum wage (SMIG) in dinars, for the craftsmen of the law no. 2002-32 (regime ARTISAN of calculate_casnos, activity crafts of calculate_ifu): their contribution is 7.5 % of two thirds of its hourly value (monthly amount divided by 208 hours at 48 hours a week) over 200 hours a month. Leave it out to use the SMIG of décret 2026-67 (554.736 dinars, 48 hour week; see week_hours).
Tunisia only (country TN): the weekly working-time regime whose SMIG of décret 2026-67 the craftsmen's contribution uses when smig_monthly_tnd is left out: 48 (554.736 dinars a month, the default) or 40 (470.251). The CNSS page of the craftsmen uses the 48 hour regime, so leave it at 48.
Morocco only (country MA), regime TRAVAILLEUR_NON_SALARIE: the category of non-salaried worker, for example doctor, dentist, pharmacist, notary, architect, veterinarian, land_surveyor, judicial_bailiff, taxi_driver, professional_driver, farmer, trader_artisan_accounting, artisan_unaccounted, traditional_fishing_boat_owner, cpu. Leave it out to list the categories, each with its decree and its Bulletin officiel.
Morocco only (country MA): the tier of the category when it has several (for example general or specialist for a doctor, owner or non_owner for a driver, class_1 to class_9 for a farmer, simplified for a trader under the simplified net result regime). The answer lists the tiers of the category.
Morocco only (country MA): the seniority in years, which picks the tier of the categories whose forfait income depends on it (dentist, veterinarian, land_surveyor, architect). Complete years count.
Morocco only (country MA), category trader_artisan_accounting under the actual net result regime: the annual net profit in dirhams, which picks the tier (up to 100,000 dirhams or above).
Morocco only (country MA), regime TRAVAILLEUR_NON_SALARIE: the legal hourly minimum wage of non-agricultural activities in dirhams, which the decrees do not state. With it the answer gives the forfait income in dirhams (multiplier times that wage times the yearly hours) and the AMO and pension contributions on it.
Morocco only (country MA): the normal yearly working time in hours used with minimum_wage_hourly; 2,288 (article 184 of the Labour Code, not read in the decrees) when left out.
Year of the rates. Only the 2026 rates are published today, so this can be left out.
Language of the labels, notes and attribution text in the answer: fr (French, the default), ar (Arabic) or en (English).
Country of the data, an ISO 3166-1 alpha-2 code in any letter case: DZ for Algeria, the default, TN for Tunisia or MA for Morocco. Only live countries answer: list_countries shows them and their datasets. Any other country, or a dataset the country does not have (for example the activity nomenclature for Morocco), returns country_not_available. Without an API key only DZ answers: TN and MA return key_required.
Response
The data, with its meta.
Changes
No recorded changes to this operation across all 1 revision of this API.