| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'clients_list' constant | ||
| key | string | Security key | ||
| params[memberships] | string | Filter users by status in club | leads, leads_passive, leads_active, new_leads_to_call, valid, not_valid, not_valid_recent, future, old, not_active, active, in_stop, in_medical_stop | |
| params[email] | string | Search user by email, exact match | ||
| params[last_update] | time | Updated after requested datetime | ||
| params[club_id] | integer | Club id from get_clubs command | ||
| params[label_id] | string | Search user by label ID (see user/get_labels) | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| total_count | integer | Total users count | |
| current_page | integer | Page number that was requested | |
| total_pages | integer | Total number of pages for request | |
| users | hash |
{
id: { }inscriptions: hash }{ brought_by: stringindex: { }inscr_enddate: date }inscr_maxvisit: integer inscrtype_id: integer inscr_id: integer inscr_stop_date: date inscrtype_type: integer inscr_last_visit: date inscr_visitdone: integer inscr_startdate: date inscrtype_name: string phone: string club_card_nr_qrcode: string mob_phone: string zipcode: string province: string valid_member_days: integer labels: string sex: string lastname: string smsLastSent: date check_in_pincode: string country: string email: string updated_at: date_time entered: string campaign: string personal_coach: string smsSent: integer city: string name: string member_number: string birthday: date club_card_nr: string comment: string photo: string club_card_amount: string interjection: string sales: string address: string |
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_leads_to_call' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| total_count | integer | Total users count | |
| current_page | integer | Page number that was requested | |
| total_pages | integer | Total number of pages for request | |
| users | hash |
{
id: { }phone: string }mob_phone: string sex: string lastname: string salesperson: string email: string name: string member_number: string comment: string interjection: string address: hash { data: { }zipcode: string }country: string city: string address: string |
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_leads_to_followup' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| total_count | integer | Total users count | |
| current_page | integer | Page number that was requested | |
| total_pages | integer | Total number of pages for request | |
| users | hash |
{
id: { }phone: string }mob_phone: string sex: string lastname: string salesperson: string email: string name: string member_number: string comment: string interjection: string address: hash { data: { }zipcode: string }country: string city: string address: string |
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_leads_not_intrested' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| total_count | integer | Total users count | |
| current_page | integer | Page number that was requested | |
| total_pages | integer | Total number of pages for request | |
| users | hash |
{
id: { }phone: string }mob_phone: string sex: string lastname: string salesperson: string email: string name: string member_number: string comment: string interjection: string address: hash { data: { }zipcode: string }country: string city: string address: string |
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_companies' constant | ||
| key | string | Security key | ||
| params[company_type] | string | Filter users by company type | client, supplier, lead, potential, reseller, insurance, repairer, school | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| total_count | integer | Total users count | |
| current_page | integer | Page number that was requested | |
| total_pages | integer | Total number of pages for request | |
| users | hash |
{
id: { }outlets: array }phone: string mob_phone: string sex: string lastname: string email: string name: string member_number: string comment: string interjection: string company_type: string address: hash { data: { }zipcode: string }country: string city: string address: string |
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_company' constant | ||
| key | string | Security key | ||
| params[company_id] | integer | true | Company database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| users | hash |
{
id: { }is_receive_mailings: bool }outlets: array phone: string standard_sales_values: hash { website: stringdata: { }bookkeeping_diary: hash }bookkeeping_number: hash percent_vat_deductible: double price_excl_vat: double tax: hash bookkeeping_type_cost: hash vat_amount: double currency: hash price_incl_vat: double bookkeeping_cost_center: hash subject_text: string amount_vat_deductible: double standard__values_type: integer vat_code: double is_recurrent: bool process_automatically: bool mob_phone: string labels: string sex: string lastname: string email: string financial: hash { name: stringdata: { }fin_mandate: string }invoice_due_days: integer iban: string is_paid_by_company: bool group_id: integer kvk: string custom_storno_email: string is_fixed_discount_date: bool vat_nr: string fin_account_owner: string payment_method: hash is_do_not_charge_reminders_extra_fee: bool custom_storno: bool no_reminders: bool is_no_storno_emails: bool fixed_euro_discount: double fixed_discount: double invoice_terms: string fin_mandate_signed_ar: date sepa_custom_payer: bool bank_account_status: bool member_number: string peppol: hash standard_purchase_values: hash { comment: stringdata: { }bookkeeping_diary: hash }bookkeeping_number: hash percent_vat_deductible: double price_excl_vat: double tax: hash bookkeeping_type_cost: hash vat_amount: double currency: hash price_incl_vat: double bookkeeping_cost_center: hash subject_text: string amount_vat_deductible: double standard__values_type: integer vat_code: double is_recurrent: bool process_automatically: bool interjection: string address: hash { fax: stringdata: { }zipcode: string }country: string city: string address: string company_type: string |
Comapany details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_valid_clients_small' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[per_page] | integer | Limit of items to return | ||
| params[memberships] | string | Filter users by status in club | leads, leads_passive, leads_active, valid, not_valid, not_valid_recent, future, old, not_active, active, in_stop, in_medical_stop | |
| params[last_update] | time | Updated after requested datetime | ||
| params[club_id] | integer | Club id from get_clubs command | ||
| params[access] | string | Put 'access' to get all people who linked to club id | ||
| params[starters_from] | date | Date to fetch started members, YYYY-MM-DD | ||
| params[starters_until] | date | Date to fetch started members, YYYY-MM-DD | ||
| params[stopped_from] | date | Date to fetch stopped members, YYYY-MM-DD | ||
| params[stopped_until] | date | Date to fetch stopped members, YYYY-MM-DD |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| current_page | integer | Page number that was requested | |
| total_pages | integer | Total number of pages for request | |
| users | hash |
{
id: { }outlet_ids: string }glan_card: string barcode_card: string sex: string lastname: string qr_codes: string next_reservation: datetime check_in_pincode: string email: string main_outlet_id: integer rfid_card: date name: string member_number: string interjection: string qrcode_card: string club_card: string |
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'validate_qr' constant | ||
| key | string | Security key | ||
| params[qr_code] | string | true | QR code read from phone |
| Naam | Type | Omschrijving |
|---|
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'validate_qr' constant | ||
| key | string | Security key | ||
| params[qr] | string | QR code | ||
| params[hardware_point_id] | integer | QR hardware point id | ||
| params[staff_id] | string | Staff that will check in, used to determine outlet | ||
| params[outlet_id] | string | Staff that will check in, used to determine outlet |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| user_id | integer | User id in case check in are ok, message if not | |
| visit_id | integer | Visit id | |
| revisit | integer | How many times user checked in today | |
| check_out | date | When check out was registered |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'dynamic_qr_check_in' constant | ||
| key | string | Security key | ||
| params[qr] | string | QR code | ||
| params[qr_hardware_point_id] | integer | QR hardware point id | ||
| params[staff_id] | string | Staff that will check in, used to determine outlet |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| user_id | integer | User id in case check in are ok, message if not | |
| visit_id | integer | Visit id | |
| revisit | integer | How many times user checked in today | |
| check_out | date | When check out was registered |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'club_card_check_in' constant | ||
| key | string | Security key | ||
| params[club_card_number] | string | Club card number | ||
| params[hardware_point_id] | string | Hardware point ID | ||
| params[staff_id] | string | Staff that will check in, used to determine outlet |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| user_id | integer | User id in case check in are ok, message if not | |
| visit_id | integer | Visit id | |
| revisit | integer | How many times user checked in today |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_valid_clients_vending' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| current_page | integer | Page number that was requested | |
| total_pages | integer | Total number of pages for request | |
| users | hash |
{
id: { }outlet_ids: string }glan_card: string barcode_card: string vending_code: string sex: string lastname: string qr_codes: string next_reservation: datetime check_in_pincode: string email: string main_outlet_id: integer rfid_card: string name: string member_number: string interjection: string qrcode_card: string club_card: string |
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'client_detail' constant | ||
| key | string | Security key | ||
| params[client_id] | integer | true | User database ID, not 'Custom ID assigned by club' |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 14 | |
| club_id | integer | Reserved for future, blank now | |
| members_name | string | First name | |
| members_interjection | string | Interjection | |
| members_lastname | string | Last name | |
| members_sex | string | M or F | |
| birthday | date | YYYY-DD-MM format | |
| bank_account | string | Bank account | |
| bank_bic | string | Bank bic | |
| members_address | string | Address | |
| country | string | Country | |
| province | string | Province | |
| members_zipcode | string | Zipcode | |
| members_city | string | City | |
| members_phone | string | Phone | |
| members_mob_phone | string | Mobile phone | |
| members_email | string | ||
| personal_coach | string | Personal coach | |
| brought_by | string | Brought by | |
| campaign | string | Campaign | |
| labels | string | Client labels assigned by club, comma separated | |
| entered | string | Entered by | |
| client_photo | string | Url to image (max 100px size) | |
| sales | string | Sales person | |
| club_card_amount | double | Amount stored on club_card | |
| smsSent | integer | sms sent 1 or 0 | |
| smsLastSent | date | smsLastSent date, YYYY-MM-DD format |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'add_money_to_clubcard' constant | ||
| key | string | Security key | ||
| payment_reference | string | |||
| params[client_id] | integer | true | User database ID, not 'Custom ID assigned by club' | |
| params[payment_method_type_id] | integer | true | Payment method type, 1 = Cash, 2 = Bank, 3 = PIN, 10 = Online | 1, 2, 3, 10 |
| params[amount] | double | true | Amount to add to user club card' |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 14 | |
| old_club_card_amount | double | Old amount on club card | |
| club_card_amount | double | Current amount on club card |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_client_by' constant | ||
| key | string | Security key | ||
| params[field] | string | true | One of the values: club_card_nr, club_card_nr_qrcode | club_card_nr, club_card_nr_qrcode |
| params[value] | string | true | New value of field | |
| params[client_id] | integer | true | User database ID, not 'Custom ID assigned by club' |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 14 |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'update_client_info' constant | ||
| key | string | Security key | ||
| params[client_id] | integer | true | User database ID, not 'Custom ID assigned by club' | |
| params[name] | string | true | First name | |
| params[interjection] | string | true | Interjection | |
| params[lastname] | string | Last name | ||
| params[members_gender] | boolean | Gender | M, F | |
| params[birthdate] | date | Birthdate, DD/MM/YYYY format | ||
| params[address] | string | Address | ||
| params[zipcode] | string | ZIP | ||
| params[city] | string | City | ||
| params[country_id] | integer | Country id, 159 for Netherlands, 20 for Belgium | ||
| params[club_id] | integer | Outlet id from get_clubs command | ||
| params[phone] | string | Phone number | ||
| params[bank_account] | string | Bank account | ||
| params[bank_bic] | string | Bank bic | ||
| params[mobile_phone] | string | Mobile phone number | ||
| params[comment] | string | General comment | ||
| params[email] | string |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 14 |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_client_by' constant | ||
| key | string | Security key | ||
| params[field] | string | true | One of the values: member_number, club_card_nr, club_card_nr_qrcode | member_number, club_card_nr, club_card_nr_qrcode |
| params[value] | string | true | Value of field |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 14 | |
| client_id | integer | Uniq id of customer | |
| p_persoon | integer | Custom id assigned by School | |
| club_id | integer | Reserved for future, blank now | |
| members_name | string | First name | |
| members_interjection | string | Interjection | |
| club_card_nr_qrcode | string | Club card QR-code | |
| club_card_nr | string | Card number assigned to client | |
| members_lastname | string | Last name | |
| members_sex | string | M or F | |
| birthday | date | YYYY-DD-MM format | |
| bank_account | string | Bank account | |
| bank_bic | string | Bank bic | |
| members_address | string | Address | |
| country | string | Country | |
| province | string | Province | |
| members_zipcode | string | Zipcode | |
| members_city | string | City | |
| members_phone | string | Phone | |
| members_mob_phone | string | Mobile phone | |
| members_email | string | ||
| personal_coach | string | Personal coach | |
| brought_by | string | Brought by | |
| campaign | string | Campaign | |
| instelnr | string | Instelnr | |
| school_name | string | School | |
| vestcode | string | Vestcode | |
| vestiging | string | Vestiging | |
| department | string | Afdeling | |
| depcode | string | Afdcode | |
| department_year | string | Afdelingsjaar | |
| class_name | string | Klas | |
| class_number | string | Klasnr | |
| degree | string | Graad | |
| learn_year | integer | Leerjaar | |
| begin_date | date | Begindatum (YYYY-MM-DD) | |
| end_date | date | Einddatum (YYYY-MM-DD) | |
| stop_date | date | Uitgeschreven (YYYY-MM-DD) | |
| labels | string | Client labels assigned by club, comma separated | |
| entered | string | Entered by | |
| client_photo | string | Url to image (max 100px size) | |
| sales | string | Sales person | |
| club_card_amount | double | Amount stored on club_card | |
| smsSent | integer | sms sent 1 or 0 | |
| smsLastSent | date | smsLastSent date, YYYY-MM-DD format |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_client_by' constant | ||
| key | string | Security key | ||
| params[client_id] | integer | true | User database ID, not 'Custom ID assigned by club' |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 6 | |
| member_number | string | Custom id assigned by club | |
| client_name | string | First name | |
| client_interjection | string | Interjection | |
| client_lastname | string | Last name | |
| client_sex | string | M or F | |
| client_birthday | date | YYYY-DD-MM format | |
| client_email | string | ||
| client_minutes | double | In development, always return 0.0 now | |
| client_address | string | Client address | |
| client_country | string | Client country | |
| client_province | string | Province | |
| client_client_zipcode | string | Zipcode | |
| client_city | string | City | |
| client_phone | string | Phone | |
| client_mob_phone | string | Mobile | |
| client_club_card_amount | string | Amount left on club card | |
| client_photo | string | Url to image (max 100px size) | |
| personal_coach | string | Personal coach name | |
| brought_by | string | Brought by | |
| campaign | string | Campaign | |
| labels | string | Client labels assigned by club, comma separated | |
| entered | string | Entered by | |
| sales | string | Sales person | |
| smsSent | integer | sms sent 1 or 0 | |
| smsLastSent | date | smsLastSent date, YYYY-MM-DD format | |
| comment | string | General comment | |
| client_inscription | hash |
{
index: { }inscr_enddate: date }inscr_maxvisit: integer inscrtype_id: integer inscr_stop_date: date inscrtype_type: integer inscr_last_visit: date inscr_visitdone: integer inscr_startdate: date inscrtype_name: string |
Client inscription data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'login' constant | ||
| key | string | Security key | ||
| params[username] | string | true | Login | |
| params[password] | string | true | Password |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| client_id | integer | Unique ID |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[name] | string | true | First name | |
| params[interjection] | string | true | Interjection | |
| params[lastname] | string | Last name | ||
| params[members_gender] | boolean | Gender | M, F | |
| params[birthdate] | date | Birthdate, DD/MM/YYYY format | ||
| params[address] | string | Address | ||
| params[zipcode] | string | ZIP | ||
| params[city] | string | City | ||
| params[phone] | string | Phone number | ||
| params[bank_account] | string | Bank account | ||
| params[mobile_phone] | string | Mobile phone number | ||
| params[comment] | string | General comment | ||
| params[email] | string | |||
| params[password] | string | Password | ||
| params[password] | string | Password confirmation | ||
| params[country_id] | integer | Country id, 159 for Netherlands, 20 for Belgium | ||
| params[club_id] | integer | Outlet id from get_clubs command | ||
| params[club_card_nr_qrcode] | string | Club card QR-code | ||
| params[club_card_nr] | string | Club card code | ||
| params[member_number] | integer | Auto generated if blank | ||
| params[retention_labels] | array | ID's of labels from 'get_labels' command | ||
| params[as_client] | integer | 1 to mark user as valid client |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 29 | |
| client_id | integer | Client unique ID | |
| client_number | integer | Client number | |
| username | string | Username | |
| password | string | Password |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[lesson_id] | integer | true | Lesson id | |
| params[country_id] | integer | Country id, 159 for Netherlands, 20 for Belgium | ||
| params[club_id] | integer | Outlet id from get_clubs command | ||
| params[p_persoon] | integer | Auto generated if blank | ||
| params[name] | string | true | First name | |
| params[lastname] | string | Last name | ||
| params[phone] | string | Phone number | ||
| params[mobile_phone] | string | Mobile phone number | ||
| params[address] | string | Address | ||
| params[zipcode] | string | ZIP | ||
| params[city] | string | City | ||
| params[members_gender] | boolean | Gender | M, F | |
| params[birthdate] | date | Birthdate, DD/MM/YYYY format | ||
| params[email] | string | |||
| params[start_date] | date | Start date, DD/MM/YYYY format |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 33 | |
| client_id | integer | Client unique ID | |
| reservation_id | integer | Reservation id added by the call | |
| password | string | Password |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_client_fin_info' constant | ||
| key | string | Security key | ||
| params[field] | string | true | One of the values: id, member_number, club_card_nr, club_card_nr_qrcode | id, member_number, club_card_nr, club_card_nr_qrcode |
| params[value] | string | true | Value of field |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| invocies | hash |
{
index: { }pay_url: string }due_date: date price: float payment_reference: string date: date pdf_url: string title: string |
Invocies data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'add_new_student' constant | ||
| key | string | Security key | ||
| params[name] | string | true | First name | |
| params[interjection] | string | true | Interjection | |
| params[lastname] | string | Last name | ||
| params[members_gender] | boolean | Gender | M, F | |
| params[birthdate] | date | Birthdate, DD/MM/YYYY format | ||
| params[address] | string | Address | ||
| params[zipcode] | string | ZIP | ||
| params[city] | string | City | ||
| params[phone] | string | Phone number | ||
| params[bank_account] | string | Bank account | ||
| params[bank_bic] | string | Bank bic | ||
| params[mobile_phone] | string | Mobile phone number | ||
| params[comment] | string | General comment | ||
| params[email] | string | |||
| params[password] | string | Password | ||
| params[password] | string | Password confirmation | ||
| params[country_id] | integer | Country id, 159 for Netherlands, 20 for Belgium | ||
| params[club_id] | integer | Outlet id from get_clubs command | ||
| params[club_card_nr_qrcode] | string | Club card QR-code | ||
| params[club_card_nr] | string | Club card code | ||
| params[p_persoon] | integer | Auto generated if blank | ||
| params[instelnr] | string | Instelnr | ||
| params[school_name] | string | School | ||
| params[vestcode] | string | Vestcode | ||
| params[vestiging] | string | Vestiging | ||
| params[department] | string | Afdeling | ||
| params[depcode] | string | Afdcode | ||
| params[department_year] | string | Afdelingsjaar | ||
| params[class_name] | string | Klas | ||
| params[class_number] | string | Klasnr | ||
| params[degree] | string | Graad | ||
| params[learn_year] | integer | Leerjaar | ||
| params[begin_date] | date | Begindatum (YYYY-MM-DD) | ||
| params[end_date] | date | Einddatum (YYYY-MM-DD) | ||
| params[retention_labels] | array | ID's of labels from 'get_labels' command | ||
| params[as_client] | integer | 1 to mark user as valid client |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 31 | |
| client_id | integer | Client unique ID | |
| client_number | integer | Client number | |
| username | string | Username | |
| password | string | Password |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'update_student_information' constant | ||
| key | string | Security key | ||
| params[field] | string | true | One of the values: member_number, club_card_nr, club_card_nr_qrcode | member_number, club_card_nr, club_card_nr_qrcode |
| params[value] | string | true | Value of field | |
| params[name] | string | true | First name | |
| params[interjection] | string | true | Interjection | |
| params[lastname] | string | Last name | ||
| params[members_gender] | boolean | Gender | M, F | |
| params[birthdate] | date | Birthdate, DD/MM/YYYY format | ||
| params[address] | string | Address | ||
| params[zipcode] | string | ZIP | ||
| params[city] | string | City | ||
| params[country_id] | integer | Country id, 159 for Netherlands, 20 for Belgium | ||
| params[club_id] | integer | Outlet id from get_clubs command | ||
| params[phone] | string | Phone number | ||
| params[bank_account] | string | Bank account | ||
| params[bank_bic] | string | Bank bic | ||
| params[mobile_phone] | string | Mobile phone number | ||
| params[comment] | string | General comment | ||
| params[email] | string | |||
| params[instelnr] | string | Instelnr | ||
| params[vestcode] | string | Vestcode | ||
| params[vestiging] | string | Vestiging | ||
| params[department] | string | Afdeling | ||
| params[depcode] | string | Afdcode | ||
| params[department_year] | string | Afdelingsjaar | ||
| params[class_name] | string | Klas | ||
| params[class_number] | string | Klasnr | ||
| params[degree] | string | Graad | ||
| params[begin_date] | date | Begindatum (YYYY-MM-DD) | ||
| params[end_date] | date | Einddatum (YYYY-MM-DD) | ||
| params[stop_date] | date | Uitgeschreven (YYYY-MM-DD) | ||
| params[smsSent] | boolean | sms sent | 0, 1 | |
| params[smsLastSent] | date | smsLastSent date (YYYY-MM-DD) | ||
| params[school_name] | string | School | ||
| params[learn_year] | integer | Leerjaar | ||
| params[retention_labels] | array | ID's of labels from 'get_labels' command |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 32 | |
| client_number | integer | Client number |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_student_sales' constant | ||
| key | string | Security key | ||
| params[field] | string | true | One of the values: member_number, club_card_nr, club_card_nr_qrcode | member_number, club_card_nr, club_card_nr_qrcode |
| params[value] | string | true | Value of field |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| products | hash |
{
index: { }code: string }price: double payment_reference: string date: date title: string |
Products data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_student_information_query' constant | ||
| key | string | Security key | ||
| params[instelnr] | string | Filter students by Instelnr | ||
| params[school_name] | string | Filter students by School | ||
| params[vestcode] | string | Filter students by Vestcode | ||
| params[vestiging] | string | Filter students by Vestiging | ||
| params[department] | string | Filter students by Afdeling | ||
| params[depcode] | string | Filter students by Afdcode | ||
| params[department_year] | string | Filter students by Afdelingsjaar | ||
| params[class_name] | string | Filter students by Klas | ||
| params[class_number] | string | Filter students by Klasnr | ||
| params[degree] | string | Filter students by Graad | ||
| params[learn_year] | integer | Filter students by Leerjaar | ||
| params[begin_date] | date | Filter students by Begindatum (YYYY-MM-DD) | ||
| params[end_date] | date | Filter students by Einddatum (YYYY-MM-DD) | ||
| params[stop_date] | date | Filter students by Uitgeschreven (YYYY-MM-DD) | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| p_persoon | string | Custom id assigned by School | |
| club_card_nr_qrcode | string | Club card QR-code | |
| club_card_nr | string | Card number assigned to client | |
| student_id | integer | Uniq id of student | |
| student_name | string | First name | |
| student_interjection | string | Interjection | |
| student_lastname | string | Last name | |
| student_gender | string | M or F | |
| birthday | date | YYYY-DD-MM format | |
| bank_account | string | Bank account | |
| bank_bic | string | Bank bic | |
| student_address | string | Address | |
| country | string | Country | |
| student_zipcode | string | Zipcode | |
| student_city | string | City | |
| student_phone | string | Phone | |
| student_mob_phone | string | Mobile phone | |
| student_email | string | ||
| personal_coach | string | Personal coach | |
| brought_by | string | Brought by | |
| campaign | string | Campaign | |
| instelnr | string | Instelnr | |
| school_name | string | School | |
| vestcode | string | Vestcode | |
| vestiging | string | Vestiging | |
| department | string | Afdeling | |
| depcode | string | Afdcode | |
| department_year | string | Afdelingsjaar | |
| class_name | string | Klas | |
| class_number | string | Klasnr | |
| degree | string | Graad | |
| learn_year | integer | Leerjaar | |
| begin_date | date | Begindatum (YYYY-MM-DD) | |
| end_date | date | Einddatum (YYYY-MM-DD) | |
| stop_date | date | Uitgeschreven (YYYY-MM-DD) | |
| labels | string | Client labels assigned by club, comma separated | |
| entered | string | Entered by | |
| client_photo | string | Url to image (max 100px size) | |
| sales | string | Sales person | |
| club_card_amount | double | Amount stored on club_card | |
| current_page | integer | Page number that was requested | |
| total_pages | integer | Total number of pages for request | |
| users | hash | Users data hash |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| blocks | hash |
{
index: { }fields: hash }{ id: integerindex: { }Title: string }values: string is_required: boolean id: integer type_id: integer title: string |
Blocks |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[user_id] | integer | true | User ID from clients_list | |
| params[block_id] | integer | true | Block ID from custom_blocks command | |
| params[fields] | hash | true | Hash of values, key is ID of field from custom_blocks, value is actual value to store |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| saved | integer | Count of saved records |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[user_id] | integer | true | User ID from clients_list | |
| params[block_id] | integer | true | Block ID from custom_blocks command |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| data | hash |
{
index: { }index: string } |
Data |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_user_segments' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| user_segments | hash |
{
id: { }outlet: hash }title: string |
Advanced search templates |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_service_category' constant | ||
| key | string | Security key | ||
| params[segment_id] | integer | true | Service category database ID | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| user_id | integer | Uniq id of user | |
| member_number | string | Custom id assigned (member number) | |
| user_name | string | First name | |
| user_interjection | string | Interjection | |
| user_lastname | string | Last name | |
| user_gender | string | M or F | |
| birthday | date | YYYY-DD-MM format | |
| user_address | string | Address | |
| country | string | Country | |
| user_zipcode | string | Zipcode | |
| user_city | string | City | |
| user_phone | string | Phone | |
| user_mob_phone | string | Mobile phone | |
| user_email | string | ||
| users | hash | Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[club_id] | integer | Club id, not implemented, now all mailings/sms groups is global | ||
| params[SMSGroups] | boolean | Sms group, 0 - get mailing groups, 1 - get sms groups | ||
| params[group] | integer | Group id, return all or specific group by id | ||
| params[suppress_details] | boolean | Suppress details, 0 - get users in groups, 1 - only name and id of groups returned |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| groups | hash |
{
index: { }group_id: integer }group_values: hash { group_name: stringindex: { }mailing_lastname: string }mailing_interjection: string mailing_name: string members_mob_phone: string mailing_email: string password: string username: string |
Groups |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[email_id] | integer | true | Email database ID, see 'get_mails' method |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| hash |
{
id: { }email_type: string }created_at: time subject: string read_at: time sent_at: time |
Inbox mails |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[email_type] | string | Gender | all, in, out | |
| params[from] | string | Date from 'YYYY-MM-DD hh:mm'. By default, the start of the month is used if no time is specified. | ||
| params[until] | string | Date until YYYY-MM-DD hh:mm'. Default is the current time if no time is specified | ||
| params[field] | string | One of the values: id, member_number, email | id, member_number, email | |
| params[value] | string | Value of field | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| mails | hash |
{
id: { }created_at: time }subject: string body: string users: array read_at: time from: string mail_to: string sent_at: time |
Mails |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_sales_invoices' constant | ||
| key | string | Security key | ||
| params[field] | string | true | One of the values: id, member_number, club_card_nr, club_card_nr_qrcode | id, member_number, club_card_nr, club_card_nr_qrcode |
| params[value] | string | true | Value of field |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| invoices | hash |
{
index: { }code: string }paid: double due_date: date id: integer payment_reference: string type_id: integer price: double date: date payments: hash { pdf_url: stringindex: { }payment_method: string }at: datetime amount: double |
Invoices data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_invoice' constant | ||
| key | string | Security key | ||
| params[invoice_id] | integer | true | Invoice database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| invoice | hash |
{
id: { }total_price: double }vat_total: double vat_deductible_total: double code: string products: array [ paid: double{ ]bookkeeping_diary: hash }bookkeeping_number: hash vat_price: double quantity: double product: hash bookkeeping_type_cost: hash vat: double discount_percent: double custom_product_name: string summable_discount: double excl_vat_price: double description: string line_number: integer vat_deductible: double discount_fixed: double bookkeeping_cost_center: hash price: double bookkeeping_tax: hash discount_total: double due_date: date payment_reference: string type_id: integer price: double date: date payments: hash { pdf_url: stringindex: { }payment_method: string }at: datetime amount: double |
Invoice details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_payments' constant | ||
| key | string | Security key | ||
| params[payment_method_type_id] | integer | true | Payment method type, 1 = Cash, 2 = Bank, 3 = PIN, 10 = Online | 1, 2, 3, 10 |
| data_from | string | Start data('yyyy-mm-dd') of period | ||
| data_to | string | End data('yyyy-mm-dd') of period | ||
| by_terminal | string | Select payment payd by terminal. Only for PIN. |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| payments | hash | Payments data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_payments' constant | ||
| key | string | Security key | ||
| params[payment_method_type_id] | integer | true | Payment method type, 1 = Cash, 2 = Bank, 3 = PIN, 10 = Online | 1, 2, 3, 10 |
| data_from | string | Start data('yyyy-mm-dd') of period | ||
| data_to | string | End data('yyyy-mm-dd') of period | ||
| by_terminal | string | Select payment payd by terminal. Only for PIN. |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| payments | hash | Payments data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'buy_product_from_club_card' constant | ||
| key | string | Security key | ||
| params[client_id] | integer | true | User database ID, not 'Custom ID assigned by club' | |
| params[product_id] | integer | true | Product database ID | |
| params[quantity] | integer | true | Quantity of products to sell | |
| params[amount] | double | true | Total amount in format 123.45 |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 6 | |
| old_club_card_amount | double | Amount on club card before sale | |
| club_card_amount | double | Amount on club card after sale |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_products' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| products | hash |
{
index: { }vatpercent: double }destroyed: boolean articleno: string priceinclvat: double priceexclvat: double prod_id: integer descr: string title: string category_id: integer |
Products data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_product_categories' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| categories | hash |
{
index: { }title: string }category_id: integer |
Categories data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_service_categories' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| categories | hash |
{
index: { }title: string }category_id: integer |
Service categories data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_service_category' constant | ||
| key | string | Security key | ||
| params[category_id] | integer | true | Service category database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| category | hash |
{
id: { }show_on_site: boolean }parent: hash staffs: array outlet: string logo: string order_idx: integer title: string department: hash show_in_pos: boolean color: string |
Service categoriy data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_services' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| count | integer | Total count of services | |
| services | hash |
{
id: { }order_idx: integer }title: string |
Services data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_service' constant | ||
| key | string | Security key | ||
| params[service_id] | integer | true | Service database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| service | hash |
{
id: { }service_before: hash }outlets: array service_duration: integer category: hash in_pos: boolean staffs: array article_number: integer selling_total_price_rounded: double barcode: string prepayment_percent: double order_idx: integer service_after: hash is_show_online: boolean service_type: string color_in_pos: string |
Services data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'products' constant | ||
| key | string | Security key | ||
| params[in_stock] | boolean | Get products in stock^ 1 - in stock | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| total_count | integer | Total users count | |
| current_page | integer | Page number that was requested | |
| total_pages | integer | Total number of pages for request | |
| products | hash |
{
id: { }outlet_ids: array }vat: double pos_ids: array price: double title: string |
Products data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_labels' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| labels | hash |
{
index: { }max_per_day: double }label_id: integer allowed_minus: double title: string |
Labels data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_labels' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| company_labels | hash |
{
index: { }label_id: integer }title: string color: string |
Company Labels data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'req_activity_groups' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| groups | hash |
{
index: { }group_id: string }event: string group_name: string |
Group types data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'req_activity_group_details' constant | ||
| key | string | Security key | ||
| params[date] | date | Date | ||
| params[group_id] | integer | Activity group type ID | ||
| params[club_id] | integer | Outlet id from get_clubs command |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 2 | |
| activities | hash |
{
index: { }staff_name: string }start_time: time activity_id: integer location: hash schedule: hash { capacity: integerindex: { }waitlist_size: integer }available: integer id: integer start: time end_time: time description: string ext_description: string staff_id: integer activity_id_name: string |
Activities data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[count] | integer | Сount reservations | ||
| params[client_id] | integer | true | Client ID | |
| params[date_time] | date | true | Date time, dd/mm/yyyy HH:MM:SS | |
| params[activity_id] | integer | true | Activity ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 4 |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[count] | integer | Сount reservations | ||
| params[client_id] | integer | true | Client ID | |
| params[date_time] | date | true | Date | |
| params[activity_id] | integer | true | Activity ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 4 |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[client_id] | integer | true | Client ID | |
| params[start_date] | date | true | Start date | |
| params[end_date] | date | true | End date |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| activities | hash |
{
index: { }activity_id: integer }count: string activity_id_name: string price: string date: date start: time status: string |
Activities data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[client_id] | integer | true | Client ID | |
| params[date_time] | date | true | Date | |
| params[activity_id] | integer | true | Activity ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 37 |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[date_time] | date | true | Date time, dd/mm/yyyy HH:MM:SS | |
| params[activity_id] | integer | true | Activity ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| reservations | hash |
{
index: { }id: integer }user_id: integer |
Reservations data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_reservation_groups' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| reservation_groups | hash |
{
id: { }title: string } |
Reservation group, id and title |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_reservation_group' constant | ||
| key | string | Security key | ||
| params[group_id] | integer | true | Reservation group database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| reservation_group | hash |
{
id: { }waiting_list: array }date_time: string max_capacity: integer users: array booked_until: string avg_age: integer max_trial_lesson_limit: integer by_gender: string max_waiting_list_capacity: integer activity_title: string clear_user_list: array capacity_taken: integer activity_type: string title: string |
Reservation group details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[date_time] | date | true | Date time, dd/mm/yyyy HH:MM:SS | |
| params[activity_id] | integer | true | Activity ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| waitlist | hash |
{
index: { }user_name: string }id: integer user_id: integer |
waitlist data hash |
| activity_title | string | Activity title |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[waitlist_id] | integer | true | Waitlist ID from 'get_waitlist' |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| status | boolean | Is operation done | |
| message | string | Text explanation of error/success result |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[sub_type_id] | integer | 0 - Activity, 1 - Event, 2 - Workshop | ||
| params[staff_id] | integer | ID of staff from 'clients_list' | ||
| params[club_id] | integer | Club ID of staff from 'get_clubs' |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| shedule | hash |
{
index: { }group_id: integer }sub_type_id: integer with_membership_price: double is_active: boolean activity_id: integer no_membership_price: double startdate: date enddate: date staff_id: integer activity_id_name: string shedule: hash { club_id: integerindex: { }weekday: integer }start: time end: time |
Shedule |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| holidays | hash | Holidays |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[client_id] | integer | true | Client ID | |
| params[start_date] | date | true | Start date | |
| params[weeks] | string | true | Weeks of stopperiod |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 25 |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[client_id] | integer | true | Client ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| stopperiods | hash |
{
index: { }reason: string }end_date: date start_date: date |
Stopperiods data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[client_id] | integer | true | Client ID | |
| params[start_date] | date | true | Start date YYYY-MM-DD format |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 37 |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'inscrtypes_list_online' constant | ||
| key | string | Security key | ||
| params[club_id] | integer | Club ID of staff from 'get_clubs' |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| inscrtypes | hash |
{
index: { }type: integer }price_start_one: hash start_from_first_of_month: boolean have_custom_link_of_activities: boolean is_active: boolean period_title: string description: string auto_renew: boolean payment_period_title: string is_show_in_reports: bool free_period_membership_id: integer id: integer name: string price: double price_start_two: hash online_discount_description: string price_two: hash price_one: hash |
Memberships data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'inscrtype_activities' constant | ||
| key | string | Security key | ||
| params[inscription_id] | integer | true | Unique ID of inscription period |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| inscrtype_activities | hash |
{
index: { }description: string }free_period_membership_id: integer online_discount_description: string |
Activities data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[client_id] | integer | true | Client ID | |
| params[inscription_id] | integer | true | Unique ID of inscription period | |
| params[start_date] | date | true | Start date YYYY-MM-DD format | |
| params[discount_percent] | double | Discount percent - leading | ||
| params[discount_money] | double | Discount money | ||
| params[prepaid_amount] | double | Prepaid amount | ||
| params[payment_method] | integer | Payment method, where 1 = Cash, 2 = Bank, 5 = SEPA, 10 = Online | 1, 2, 5, 10 |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 30 | |
| client_id | integer | Unique ID of user | |
| inscription_id | integer | Unique ID of inscription period | |
| to_pay | double | Invoice unpaid amount | |
| total | double | Total price |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_clubs' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| clubs | hash |
{
id: { }title: string } |
Outlets, id and title |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_club_info' constant | ||
| key | string | Security key | ||
| params[outlet_id] | integer | true | Club database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| clubs | hash |
{
id: { }phone: string }facebook_url: string language: string iban: string instragram_url: string website: string business_bank_code: string kvk: string zip: string physical_house_nr: string pwa_logo: string vat_nr: string short_title: string country: string logo: string email: string longitude: string physical_address: string city: string peppol: hash latitude: string title: string fax: string physical_house_nr_two: string |
Info for Outlet |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_staffs' constant | ||
| key | string | Security key | ||
| params[club_id] | integer | Club id from get_clubs command | ||
| params[access] | string | Put 'access' to get all people who linked to club id | access, admin | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| total_count | integer | Total users count | |
| current_page | integer | Page number that was requested | |
| total_pages | integer | Total number of pages for request | |
| staffs | hash |
{
id: { }agreement_commission_amount: double }glan_card: string barcode_card: string commission_vat_person: double date_service: date bsn_number: string sex: string lastname: string color_mark: string tax_credit: date email: string agreement_type_title: string insurance_number: string rfid_card: string member_number: string id: integer agreement_subtype_title: string interjection: string photo: string title: string qrcode_card: string club_card: string |
Staffs, id and title |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| clubs | hash |
{
id: { }poses: hash }{ id: integerid: { }id: integer }title: string title: string |
Outlets info |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_departments' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| departments | hash |
{
id: { }title: string } |
Departments, id and title |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_retention_goals' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| retention_goals | hash |
{
id: { }retention_activities: array }average_visit_frequency: double description: string title: string coaching_target: hash |
Retention goals, id and title |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_task_types' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| task_types | hash |
{
id: { }title: string } |
Task types, id and title |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_task_type' constant | ||
| key | string | Security key | ||
| params[task_id] | integer | true | Task type database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| task_type | hash |
{
id: { }reminder_min: integer }is_show_in_retention_manager: boolean is_schow_in_lead_manager: boolean title: string department: hash color: string is_schow_in_coaching: boolean |
Task type details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_retention_activities' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| total_count | integer | Total users count | |
| current_page | integer | Page number that was requested | |
| total_pages | integer | Total number of pages for request | |
| retention_activities | hash |
{
id: { }title: string } |
Retention activities data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_retention_activities' constant | ||
| key | string | Security key | ||
| params[retention_activity_id] | integer | true | Retention activity ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| retention_activity | hash |
{
id: { }is_no_show_in_customer_satisfaction: boolean }is_no_show_in_reports: boolean full_description: string is_startable: boolean is_no_show_in_continuation: boolean retention_goals: array is_active: boolean duration: integer capacity: integer retention_activity_follow_ups: array is_no_confirmation_required: boolean public_title: string title: string is_no_send_reminder: boolean |
Task type details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_planning' constant | ||
| key | string | Security key | ||
| params[staff_id] | integer | Staff ID | ||
| params[from] | string | Date from 'YYYY-mm-dd'. Default is the beginning of the current month if no date is specified) | ||
| params[until] | string | Date until YYYY-mm-dd'. Default is the end of the current year if no date is specified) | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| planning | hash |
{
id: { }date_until: date }description: hash date_from: date color: string work_time: string |
Planning |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_planning' constant | ||
| key | string | Security key | ||
| params[planning_id] | integer | true | Planning ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| planning | hash |
{
id: { }date_until: date }hours: integer location: hash description: hash date_from: date day_part: string date: date status_title: string department: hash weekday_name: array color: string work_time: string |
Staff planning details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_leave' constant | ||
| key | string | Security key | ||
| params[staff_id] | integer | Staff ID | ||
| params[status_id] | integer | Status ID (Pending: 0, Scheduled: 1, Taken: 2, Rejected: 3, Cancelled: 4) | 0, 1, 2, 3, 4 | |
| params[from] | string | Date from 'YYYY-mm-dd'. Default is the beginning of the current month if no date is specified) | ||
| params[until] | string | Date until YYYY-mm-dd'. Default is the end of the current year if no date is specified) | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| leave | hash |
{
id: { }date_until: date }date_from: date staff: hash comment: string status: string |
Leave |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_absence' constant | ||
| key | string | Security key | ||
| params[staff_id] | integer | Staff ID | ||
| params[status_id] | integer | Status ID (Pending: 0, Scheduled: 1, Taken: 2, Rejected: 3, Cancelled: 4) | 0, 1, 2, 3, 4 | |
| params[from] | string | Date from 'YYYY-mm-dd'. Default is the beginning of the current month if no date is specified) | ||
| params[until] | string | Date until YYYY-mm-dd'. Default is the end of the current year if no date is specified) | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| absence | hash |
{
id: { }date_until: date }date_from: date staff: hash comment: string status: string |
Absence |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_locations' constant | ||
| key | string | Security key | ||
| params[outlet_id] | integer | true | Club database ID | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| locations | hash |
{
id: { }zip: string }resource_type: hash house_nr_two: string outlet: hash longitude: string order_idx: integer latitude: string house_nr: string title: string address: string color: string |
Locations |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_branding' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| branding | hash |
{
id: { }second_tiles_color: string }theme_color: string logo: string tiles_color: string content_background_image: string icon: string action_buttons_background_color: string action_buttons_text_color: string |
Locations |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[date] | date | true | Date YYYY-MM-DD format | |
| params[club_id] | integer | true | Club ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| visits | hash |
{
index: { }date_time: date }client_id: integer |
Visits |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[time] | DateTime | true | DateTime YYYY-MM-DD hh:mm format. 30 min ago be default | |
| params[club_id] | integer | Club ID | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| visits | hash |
{
index: { }date_time: date }activities: array membership_info: hash client_id: integer |
Visits |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[visits] | array | true | Array of hash values, in hash - keys are 'user_id' or 'member_number' and 'at', where at is time field in YYYY-MM-DD HH:MM:SS format | |
| params[user_id] | string | User id | ||
| params[member_number] | integer | Member number | ||
| params[qr_code] | string | If special QR-codes option is ON | ||
| params[member_number] | integer | Member number |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| saved | integer | Count of saved records | |
| saved | integer | Count of saved records | |
| errors | array | Errors of not saved records |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_inscription_invoice_date' constant | ||
| key | string | Security key | ||
| params[inscription_id] | integer | Inscription ID | ||
| params[date] | date | Inscription start date, YYYY-DD-MM format |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| total | float | Total price to be paid by client | |
| pro_rata | float | Price per period, discount is applied for this | |
| start_fee | float | Membership start fee | |
| period_price | float | Total pro rata price to be paid by client for all period |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_inscription_invoice_date' constant | ||
| key | string | Security key | ||
| params[inscription_id] | integer | Inscription ID | ||
| params[start_date] | date | Inscription start date, YYYY-DD-MM format | ||
| params[name] | string | true | First name | |
| params[interjection] | string | true | Interjection | |
| params[lastname] | string | Last name | ||
| params[members_gender] | boolean | Gender | M, F | |
| params[birthdate] | date | Birthdate, DD/MM/YYYY format | ||
| params[address] | string | Address | ||
| params[zipcode] | string | ZIP | ||
| params[city] | string | City | ||
| params[phone] | string | Phone number | ||
| params[bank_account] | string | Bank account | ||
| params[bank_bic] | string | Bank bic | ||
| params[mobile_phone] | string | Mobile phone number | ||
| params[comment] | string | General comment | ||
| params[email] | string | |||
| params[password] | string | Password | ||
| params[password] | string | Password confirmation | ||
| params[country_id] | integer | Country id, 159 for Netherlands, 20 for Belgium | ||
| params[club_id] | integer | Outlet id from get_clubs command | ||
| params[club_card_nr_qrcode] | string | Club card QR-code | ||
| params[club_card_nr] | string | Club card code | ||
| params[p_persoon] | integer | Auto generated if blank | ||
| params[instelnr] | string | Instelnr | ||
| params[school_name] | string | School | ||
| params[vestcode] | string | Vestcode | ||
| params[vestiging] | string | Vestiging | ||
| params[department] | string | Afdeling | ||
| params[depcode] | string | Afdcode | ||
| params[department_year] | string | Afdelingsjaar | ||
| params[class_name] | string | Klas | ||
| params[class_number] | string | Klasnr | ||
| params[degree] | string | Graad | ||
| params[learn_year] | integer | Leerjaar | ||
| params[begin_date] | date | Begindatum (YYYY-MM-DD) | ||
| params[end_date] | date | Einddatum (YYYY-MM-DD) | ||
| params[payment_method_id] | integer | true | Payment method type, 1 = Cash, 2 = Bank, 3 = PIN, 10 = Online | 1, 2, 3, 10 |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value 30 | |
| client_id | integer | Client internal id | |
| inscription_id | integer | Inscription ID that was sold | |
| payment_reference_one | string | Invoice reference number for first period | |
| period_one | float | Total price for first period | |
| payment_reference_two | string | Invoice reference number for next period, blank if no next period | |
| period_two | float | Total price for first period, blank if no next period |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_menu_types' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| menu_types | hash |
{
id: { }title: string } |
Nutrition menu types |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_nutrition_master_group_foods' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| master_group_foods | hash |
{
id: { }source_title: string }title: string |
Nutrition master group_foods |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_nutrition_food_groups' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| group_foods | hash |
{
id: { }source_title: string }title: string |
Nutrition food groups |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_nutrition_foods' constant | ||
| key | string | Security key | ||
| params[master_food_group_id] | integer | master food group ID | ||
| params[food_group_id] | integer | Food group ID | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| nutrition_foods | hash |
{
id: { }image_path: string }fatt: double quan: double nutrition_food_group: hash carb: double gr: integer source_title: string kcal: double nutrition_master_food_group: hash use_mult: boolean prot: double group: integer weight: string title: string |
Nutrition foods list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_nutrition_menu_list' constant | ||
| key | string | Security key | ||
| params[nutrition_menutype_id] | integer | nutrition menutype ID | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| menu_list | hash |
{
id: { }source_title: string }cal_group: integer number: integer nutrition_menu_type: hash type_idx: integer day_idx: integer title: string |
Nutrition foods list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_coaching_exercises' constant | ||
| key | string | Security key | ||
| params[image_set] | integer | Image type: 1 - 3D ; 2 - Pictures ; 3 - Video's ; | 1, 2, 3 | |
| params[region_id] | integer | region ID | ||
| params[materials] | integer | Material ID | ||
| params[type] | integer | Exercise type (see 'get_exercise_types') | ||
| params[source] | integer | Source IDx: 1 - CTRL+ ; 2 - Club; 3 - Favorites | 1, 2, 3 | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| coaching_exercises | hash |
{
id: { }image_set_title: hash }source_title: string coaching_exercise_regions: array exercise_type: hash title: string coaching_materials: array |
Nutrition foods list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_coaching_exercise' constant | ||
| key | string | Security key | ||
| params[exercise_id] | integer | true | Exercise database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| exercise | hash |
{
id: { }image_set: hash }standard_parameters: hash { video_url: stringorder_idx: { }type_title: string }unit: hash value_2: hash value_1: hash source_title: string description: string coaching_exercise_regions: array images: array title: string set_types_title: string coaching_materials: array |
Coaching exercise details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_exercise_muslce_regions' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| exercise_regions | hash |
{
id: { }title: string } |
Exercise region list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_exercise_materials' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| exercise_materials | hash |
{
id: { }title: string } |
Exercise materials list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_exercise_types' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| exercise_types | hash |
{
id: { }title: string } |
Exercise type list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_meal_types' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| meal_types | hash |
{
id: { }title: string } |
Exercise type list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_calorie_groups' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| calorie_group_numbers | array | Calorie group numbers list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_coaching_categories' constant | ||
| key | string | Security key | ||
| params[parent_id] | integer | true | Parent category ID | |
| params[type_idx] | integer | true | Type category: 1 - Articles ; 2 - Exercises ; 3 - Recipes ; 4 - Videos | 1, 2, 3, 4 |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| coaching_categories | hash |
{
id: { }parent: Hash }is_show_on_portal: boolean is_show_on_lifestyle: boolean order_idx: integer category_type: hash image: string title: string is_show_on_online_lesson: boolean sorting: string |
Coaching categories list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_nutrition_menus' constant | ||
| key | string | Security key | ||
| params[calorie_group] | integer | Calorie group number (see 'get_calorie_group_numbers') | ||
| params[meal_idx] | integer | Meal index (see 'get_meal_types') | ||
| params[food_id] | integer | Nutrition food id (see 'get_nutrition_foods') | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| nutrition_menus | hash |
{
id: { }fatt: double }quan: double carb: double source_title: string kcal: double unit: string day_idx: integer meal: hash nutrition_food: hash prot: double title: integer |
coaching nutrition menus list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_recipe_types' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| recipe_types | hash |
{
id: { }title: string } |
Coaching recipe types list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_coaching_recipe_tags' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| coaching_recipe_tags | hash |
{
id: { }order_idx: integer }image: string title: string color: string |
Coaching recipe tags list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_coaching_recipes' constant | ||
| key | string | Security key | ||
| params[category_id] | integer | Coaching category ID id (see 'get_coaching_categories') | ||
| params[visibility] | integer | Visibility type : 1 - Draft ; 2 - Published ; | 1, 2 | |
| params[recipe_type_id] | integer | Recipe type ID (see 'get_recipe_types') | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| coaching_recipes | hash |
{
id: { }coaching_category: hash }image: string title: string recipe_type: hash visibility: string |
Coaching recipe list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_coaching_recipe' constant | ||
| key | string | Security key | ||
| params[recipe_id] | integer | true | Coaching recipe database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| coaching_recipe | hash |
{
id: { }nutrition_macros: text }fatt: double carb: text ingredients: text settings: hash { kcal: doubledata: { }is_always: boolean }visibile_until: date visibile_from: date is_show_logo: boolean visibility: string description: text remarks: text prot: double prerparation_method: text number_of_persons: integer prepration_time: string image: string title: string recipe_type: hash |
Coaching recipe details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_internal_sport_activities' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| sport_activities | hash |
{
id: { }is_not_sport_activity: boolean }image: string title: string coefficient_threshold: double kcal_per_hour: double |
Internal API sport activities |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_coaching_workout_groups' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| workout_groups | hash |
{
id: { }title: string } |
Coaching workout groups list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_coaching_workout_subgroups' constant | ||
| key | string | Security key | ||
| params[main_group_id] | integer | Workout group ID id (see 'get_coaching_workout_groups') | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| workout_subgroups | hash |
{
id: { }main_group: hash }title: string |
Coaching workout subgroups list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_coaching_workouts' constant | ||
| key | string | Security key | ||
| params[main_group_id] | integer | Workout group ID id (see 'get_coaching_workout_groups') | ||
| params[group_id] | integer | Coaching workout sub group ID id (see 'get_coaching_workout_groups') | ||
| params[source] | integer | Source IDx: 1 - CTRL+ ; 2 - Club; | 1, 2 | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| coaching_workouts | hash |
{
id: { }main_group: hash }sub_group: hash image: string title: string |
Coaching workouts list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_coaching_workout' constant | ||
| params[recipe_id] | integer | true | Coaching workout database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| coaching_workout | hash |
{
id: { }targets: hash }{ main_group: hashdata: { }id: integer }title: string source_title: string is_use_schemes: boolean is_active: boolean is_show_title_in_image: boolean description: string duration: string is_use_existing_workouts: boolean exercises: hash { image: stringdata: { }full_info: string }images: string full_title: string title: string sets: hash { order_idx: { }type_title: string }unit: hash value_2: hash value_1: hash title: string |
Coaching workout details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_coaching_targets' constant | ||
| key | string | Security key | ||
| params[subtype] | integer | Source IDx: 0 - '' ; 1 - Serie; 2 - Circuit; | 0, 1, 2 | |
| params[source] | integer | Source IDx: 1 - CTRL+ ; 2 - Club; | 1, 2 | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| coaching_targets | hash |
{
id: { }source_title: string }is_use_schemes: boolean is_active: boolean subtype: string title: string |
Coaching targets list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_coaching_target' constant | ||
| params[target_id] | integer | true | Coaching target database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| coaching_target | hash |
{
id: { }schemes: hash }{ source_title: stringindex: { }repetitions: integer }tempo: integer week: integer strength_percent: integer series: integer pause: integer time: integer is_use_schemes: boolean is_active: boolean subtype: string title: string |
Coaching target details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_client_body_composition' constant | ||
| key | string | Security key | ||
| params[from] | string | Date from 'YYYY-mm-dd'. Default is the date of the last body measurement if no date is specified | ||
| params[until] | string | Date until YYYY-mm-dd'. Default is the current date if no date is specified | ||
| params[field] | string | true | One of the values: id, member_number, club_card_nr, club_card_nr_qrcode | id, member_number, club_card_nr, club_card_nr_qrcode |
| params[value] | string | true | Value of field |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| users | hash |
{
index: { }phone: string }mob_phone: string sex: string lastname: string measurements: array [ email: string{ ]fat_moisture_free_mass: double }water_kg: double body_fat_percent: double bmi: double weighing_date: datetime metabolic_age: double body_water_percent: double length: integer visceral_fat_kg: double lean_body_mass: double weight_kg: double muscle_mass_kg: double fat_kg: double personal_coach: string name: string member_number: string photo: string interjection: string sales: string |
User body measurements |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_valid_clients_benfit' constant | ||
| key | string | Security key | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return | ||
| params[memberships] | string | Filter users by status in club | valid, not_valid | |
| params[last_update] | time | Updated after requested datetime | ||
| params[club_id] | integer | Club id from get_clubs command |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| users | hash |
{
id: { }inscriptions: hash }{ phone: stringindex: { }inscr_enddate: date }inscr_maxvisit: integer inscrtype_id: integer inscr_id: integer inscr_stop_date: date inscrtype_type: integer inscr_last_visit: date inscr_visitdone: integer inscr_startdate: date inscrtype_name: string mob_phone: string sex: string lastname: string next_reservation: datetime email: string personal_coach: string name: string member_number: string photo: string interjection: string sales: string |
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_ledger_types' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }title: string } |
Ledgers types list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_exercise_types' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }title: string } |
Ledgers modules list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_ledger_groups' constant | ||
| key | string | Security key | ||
| params[country_id] | integer | Country ID | ||
| params[account_type] | integer | Account type, 1 = Activa, 2 = Passiva, 3 = Resultaat | 1, 2, 3 | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| ledger_groups | hash |
{
id: { }account_type_title: hash }country_id: integer title: string |
Ledger group list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_ledgers' constant | ||
| key | string | Security key | ||
| params[outlet_id] | integer | Outlet ID | ||
| params[ledger_group_id] | integer | Ledger group ID | ||
| params[type_id] | integer | Ledger type idx (see 'get_ledger_types') | ||
| params[module_id] | integer | Ledger module ID (see 'get_ledger_modules') | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| ledgers | hash |
{
id: { }type: hash }cost_center: hash cost_center_type: hash subgroup: hash diary: hash outlet: hash number: string group: hash title: string linked_module: hash |
Ledgers list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_ledger' constant | ||
| key | string | Security key | ||
| params[ledger_id] | integer | Ledger ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| ledger | hash |
{
id: { }type: hash }cost_center: hash is_client_specific_account: boolean explanation: string assets_options: hash { tax_report_code: stringindex: { }depreciation_cost_ledger: hash }depreciation_start_date_type: hash number_years: integer residual_percent: double depreciation_sales_ledger: hash depreciation_ledger: hash group_name: string depreciation_percent: double cost_center_type: hash subgroup: hash diary: hash outlet: hash vat_applicable: boolean number: string rgs_code: double activated: boolean group: hash level: integer title: string linked_module: hash |
Ledger details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_tax_types' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }title: string } |
Tax types list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_tax_eu_services' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }title: string } |
Tax eu services list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_taxes' constant | ||
| key | string | Security key | ||
| params[type_id] | integer | Tax type (see 'get_tax_types') | ||
| params[eu_service] | integer | Tax eu service (see 'get_tax_eu_services') | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| ledgers | hash | Ledgers list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_tax' constant | ||
| key | string | Security key | ||
| params[tax_id] | integer | Tax ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| tax | hash |
{
id: { }type: string }tarif_group: integer rgs_description: string ledger: hash duty: integer report_parameters: hash { percent: doubleindex: { }box_vat_section: hash }box_vat_credit_note_section: hash box_vat_column_number: integer box_turnover_column_number: integer box_vay_credit_note_column_number: integer box_credit_note_section: hash box_turnover_section: hash box_credit_note_column_number: integer btw_code: string eu_service: string rgs_code: string title: string |
Ledger details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_bookkeeping_number_diaries' constant | ||
| key | string | Security key | ||
| params[outlet_id] | integer | Outlet ID | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }bookkeeping_number_type_cost: hash }bookkeeping_number_cost_center: hash outlet: hash number: string description: string group: string |
Bookkeeping number diaries list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_bookkeeping_cost_centers' constant | ||
| key | string | Security key | ||
| params[outlet_id] | integer | Outlet ID | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }outlet: hash }number: string description: string |
Bookkeeping number cost centers list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_bookkeeping_cost_types' constant | ||
| key | string | Security key | ||
| params[outlet_id] | integer | Outlet ID | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }outlet: hash }number: string description: string |
Bookkeeping number cost types list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'get_transactions' constant | ||
| key | string | Security key | ||
| params[user_id] | integer | User ID | ||
| params[from] | string | Date from 'YYYY-mm-dd'. Default is the beginning of the current date if no date is specified | ||
| params[until] | string | Date until YYYY-mm-dd'. Default is the end of the current month if no date is specified | ||
| params[imported] | integer | Is imported | ||
| params[transaction_type] | string | Transaction type | plus, minus | |
| params[autorecognized] | string | Is it autorecognized; not recognized - 0, recognized - 1 | 0, 1 | |
| params[bank_batches] | string | To show bank batches; not show - 0, show - 1. Show all if no parameter is specified | 0, 1 | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }imported: boolean }autorecognized: boolean iban: string account_logo_path: string transaction_type: string posted: date counter_account: string payment_method: hash outlet: hash amount: double |
List of the bank transactions |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'find_my_shift_lesnamen' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving |
|---|
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'find_my_shift_zaalnamen' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving |
|---|
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'find_my_shift_data_tables' constant | ||
| key | string | Security key |
| Naam | Type | Omschrijving |
|---|
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'find_my_shift_update_les_leraar' constant | ||
| key | string | Security key | ||
| params[wie] | string | true | Naam van de nieuwe leraar | |
| params[dag] | string | true | Dag | |
| params[tijd] | string | true | Tijd | |
| params[wat] | string | true | Les |
| Naam | Type | Omschrijving |
|---|
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'find_my_shift_update_tijd' constant | ||
| key | string | Security key | ||
| params[dag] | string | true | Dag, 'Di 1/7' | |
| params[tijd] | string | true | Tijd, '17:00-18:00' | |
| params[wat] | string | true | Les | |
| params[nieuw_dag] | string | true | Nieuw dag | |
| params[nieuw_tijd] | string | true | Nieuw tijd |
| Naam | Type | Omschrijving |
|---|
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | 'find_my_shift_create_staff' constant | ||
| key | string | Security key | ||
| params[name] | string | true | First name | |
| params[interjection] | string | true | Interjection | |
| params[lastname] | string | Last name | ||
| params[members_gender] | boolean | Gender | M, F | |
| params[birthdate] | date | Birthdate, DD/MM/YYYY format | ||
| params[address] | string | Address | ||
| params[zipcode] | string | ZIP | ||
| params[city] | string | City | ||
| params[phone] | string | Phone number | ||
| params[bank_account] | string | Bank account | ||
| params[mobile_phone] | string | Mobile phone number | ||
| params[comment] | string | General comment | ||
| params[email] | string | |||
| params[password] | string | Password | ||
| params[password] | string | Password confirmation | ||
| params[country_id] | integer | Country id, 159 for Netherlands, 20 for Belgium | ||
| params[club_id] | integer | Outlet id from get_clubs command | ||
| params[club_card_nr_qrcode] | string | Club card QR-code | ||
| params[club_card_nr] | string | Club card code | ||
| params[member_number] | integer | Auto generated if blank | ||
| params[as_client] | integer | 1 to mark user as valid client |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| json_code | integer | Constant value: 29 | |
| client_id | integer | Client unique ID | |
| client_number | integer | Client number | |
| username | string | Username | |
| password | string | Password |