Control indices

Automatic translation. View original

the CRM has monthly control indices.

Read a control index

Request

Endpoint: GET /api/v0/monthly_stats

Params:

  • app_key: api key of the partner or api key of the school

  • where[type]: SchoolMonthlyStat. (fixed, always this value)

  • where[year]: the year to request the index in YYYY format. eg: 2024

  • where[month]: month of the year to request the index in MM format. eg: 01

  • where[name]: name of the control index. see below the valid names.

  • where[account_name]: padma_school id.

example request:

curl "https://crm.padm.am/api/v0/monthly_stats?app_key=XXXX&where[type]=SchoolMonthlyStat&where[year]=2024&where[month]=11&where[name]=dropouts&where[account_name]=cervino"

example response:

HTTP/1.1 200 OK

[{"id":1834344,"ref_date":"2024-11-30","account_id":1,"user_id":null,"name":"dropouts","value":3,"unit":null,"created_at":"2024-10-30T11:46:09.000-03:00","updated_at":"2024-11-29T15:55:03.000-03:00","display_user_id":"null"}]

Response

Response comes in JSON format. It is an array of objects with the fields:

  • ref_date: reference date of the control index
  • name: statistic name
  • value: the index value. eg: 10.
  • updated_at: date and time when this value was updated.
  • …

Available indices (valid NAMEs)

demand: Searches

male_demand: Search for men

interviews: Visits

male_interviews: Visit of men

p_interviews: Profile visits

male_p_interviews: Profile visit of men

enrollments: Enrollments

students: Students

male_students: male students

standard_students: Students paying ‘standard’, above the MP.

lite_students: Students paying ‘lite’, below the MP.

aspirant_students, sadhaka_students, yogin_students, chela_students, graduate_students, assistant_students, professor_students, master_students: Students at the aspirant, sadhaka, yogin level, etc.

students_average_age: Average age of students

count_students_0_25: Students aged between 0 and 25 years (inclusive)

count_students_0_35: Students aged between 0 and 35 years (inclusive)

students_cycle_duration: How many days does a student stay at the school on average.

dropouts: Dropouts

… there are many others. consult our team: Contact

Back to CRM API

Contact support