| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'clients_list' constant | |
| key | string | true | 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: { }updated_at: date_time
Last update on user data, YYYY-MM-DD hh:mm:ss format
entered: string
Entered by, user name
labels: string
Labels, coma separated
lastname: string
Last name
inscriptions: hash
All inscriptions as hash, returned only if "memberships" param request valid members
{ index: { }inscr_maxvisit: integer
Max visits allowed by insription, blank if not limited
inscrtype_id: integer
Unique ID of membership
inscr_last_visit: date
Last visit date, DD/MM/YYYY format
inscr_visitdone: integer
Visits done by inscription, blank if limited
inscr_stop_date: date
Blank if not stopped, date in DD/MM/YYYY format if stopped manually in some custom date
inscr_startdate: date
Start date, DD/MM/YYYY format
inscr_id: integer
Unique ID of inscription period
inscrtype_type: integer
Inscription type id, Trial = 1, Base = 2, Time = 3, Visit = 4, Season = 6, Put money on card = 7
inscr_enddate: date
End date, DD/MM/YYYY format, is normal end date, so will stay same even if inscription stopped
inscrtype_name: string
Title given by club
smsLastSent: date
smsLastSent date, YYYY-MM-DD format
sales: string
Sales person name
city: string
City
zipcode: string
ZIP
valid_member_days: integer
valid member days
club_card_amount: string
Amount left on club card
member_number: string
Custom id assigned by club.
smsSent: integer
sms sent 1 or 0
country: string
Country name
sex: string
M or F
interjection: string
Interjection
comment: string
General comment
brought_by: string
Brought by name
birthday: date
YYYY-DD-MM format
email: string
Email
name: string
First name
club_card_nr: string
Card number assigned to client
check_in_pincode: string
Check-in pincode
campaign: string
Campaign title
personal_coach: string
Personal coach name
photo: string
Url to image (max 100px size)
phone: string
Phone number
address: string
Address
mob_phone: string
Mobile phone number
province: string
Reserved for future, blank now
club_card_nr_qrcode: string
Card QR number assigned to client
|
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_leads_to_call' constant | |
| key | string | true | 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: { }salesperson: string
Linked salesperson
lastname: string
Last name
member_number: string
Custom id assigned by club.
sex: string
M or F or empty ''
interjection: string
Interjection
comment: string
Comment
email: string
Email
name: string
First name
address: hash
Address details
{ data: { }city: string
City
zipcode: string
ZIP
country: string
Country name
address: string
Address
phone: string
Phone number
mob_phone: string
Mobile phone number
|
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_leads_to_followup' constant | |
| key | string | true | 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: { }salesperson: string
Linked salesperson
lastname: string
Last name
member_number: string
Custom id assigned by club.
sex: string
M or F or empty ''
interjection: string
Interjection
comment: string
Comment
email: string
Email
name: string
First name
address: hash
Address details
{ data: { }city: string
City
zipcode: string
ZIP
country: string
Country name
address: string
Address
phone: string
Phone number
mob_phone: string
Mobile phone number
|
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_leads_not_intrested' constant | |
| key | string | true | 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: { }salesperson: string
Linked salesperson
lastname: string
Last name
member_number: string
Custom id assigned by club.
sex: string
M or F or empty ''
interjection: string
Interjection
comment: string
Comment
email: string
Email
name: string
First name
address: hash
Address details
{ data: { }city: string
City
zipcode: string
ZIP
country: string
Country name
address: string
Address
phone: string
Phone number
mob_phone: string
Mobile phone number
|
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_companies' constant | |
| key | string | true | 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: { }lastname: string
Last name
outlets: array
Connected outlets
member_number: string
Custom id assigned by club.
sex: string
M or F or empty ''
interjection: string
Interjection
comment: string
Comment
email: string
Email
name: string
First name
company_type: string
Company type
address: hash
Address details
{ data: { }city: string
City
zipcode: string
ZIP
country: string
Country name
address: string
Address
phone: string
Phone number
mob_phone: string
Mobile phone number
|
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_company' constant | |
| key | string | true | Security key | |
| params[company_id] | integer | true | Company database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| users | hash |
{
id: { }labels: string
Labels, coma separated
lastname: string
Last name
standard_sales_values: hash
Standard purchase invoice creation values
{ data: { }bookkeeping_diary: hash
Bookkeeping diary details
amount_vat_deductible: double
Amount VAT deductible
bookkeeping_type_cost: hash
Bookkeeping type cost details
percent_vat_deductible: double
VAT deductible
subject_text: string
Subject text
price_incl_vat: double
Amount incl VAT
price_excl_vat: double
Amount excl VAT
currency: hash
Currency
vat_amount: double
VAT amount
standard__values_type: integer
Standard invoice values type
vat_code: double
Vat code
bookkeeping_cost_center: hash
Bookkeeping cost place details
is_recurrent: bool
Is recurrent
bookkeeping_number: hash
Bookkeeping number details
tax: hash
Tax details
process_automatically: bool
Is process automatically
outlets: array
Connected outlets
member_number: string
Custom id assigned by club.
financial: hash
financial company data
{ data: { }custom_storno_email: string
Custom email for Storno/Reminders
iban: string
IBAN
payment_method: hash
Default payment method
is_do_not_charge_reminders_extra_fee: bool
Don't charge extra fee for sending reminders
invoice_terms: string
Invoice terms
sepa_custom_payer: bool
Is other parson pay by SEPA
vat_nr: string
VAT number
is_paid_by_company: bool
Is paid by company
is_no_storno_emails: bool
Is no storno
kvk: string
KVK number
fin_account_owner: string
Account owner
fin_mandate: string
Mandate
custom_storno: bool
Is use custom email for Storno/Reminders
fin_mandate_signed_ar: date
Mandate signed at
group_id: integer
Reduction group ID
fixed_discount: double
Fixed discount %
bank_account_status: bool
Bank account status: 'true' - is verified, 'false' - is not verified
no_reminders: bool
Is No reminders
is_fixed_discount_date: bool
Is use discount date limit
fixed_euro_discount: double
Fixed discount €
invoice_due_days: integer
Invoice due days
is_receive_mailings: bool
Nieuwsbrief
sex: string
M or F or empty ''
interjection: string
Interjection
comment: string
Comment
fax: string
Fax
email: string
Email
name: string
First name
address: hash
Address details
{ data: { }city: string
City
zipcode: string
ZIP
country: string
Country name
address: string
Address
company_type: string
Company type
phone: string
Phone number
peppol: hash
Peppol data
mob_phone: string
Mobile phone number
standard_purchase_values: hash
Standard purchase invoice creation values
{ data: { }bookkeeping_diary: hash
Bookkeeping diary details
amount_vat_deductible: double
Amount VAT deductible
bookkeeping_type_cost: hash
Bookkeeping type cost details
percent_vat_deductible: double
VAT deductible
subject_text: string
Subject text
price_incl_vat: double
Amount incl VAT
price_excl_vat: double
Amount excl VAT
currency: hash
Currency
vat_amount: double
VAT amount
standard__values_type: integer
Standard invoice values type
vat_code: double
Vat code
bookkeeping_cost_center: hash
Bookkeeping cost place details
is_recurrent: bool
Is recurrent
bookkeeping_number: hash
Bookkeeping number details
tax: hash
Tax details
process_automatically: bool
Is process automatically
website: string
Website
|
Comapany details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_valid_clients_small' constant | |
| key | string | true | 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, user_is_blocked | |
| 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: { }next_reservation: datetime
Timestamp of next reservation
lastname: string
Last name
outlet_ids: string
Coma separated outlet id's, to use in club_id param to filter members from specific club
main_outlet_id: integer
Main outlet id
qrcode_card: string
Card number
member_number: string
Custom id assigned by club.
barcode_card: string
Card number
sex: string
M or F
interjection: string
Interjection
qr_codes: string
Coma separated QR code numbers
club_card: string
Card number
glan_card: string
Card number
email: string
Email
name: string
First name
blocked: boolean
Is user blocked
rfid_card: date
Birthday
check_in_pincode: string
Check-in pincode
|
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'validate_qr' constant | |
| key | string | true | Security key | |
| params[qr_code] | string | true | QR code read from phone |
| Naam | Type | Omschrijving |
|---|
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'validate_qr' constant | |
| key | string | true | Security key | |
| params[qr] | string | true | QR code | |
| params[hardware_point_id] | integer | true | 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 | true | 'dynamic_qr_check_in' constant | |
| key | string | true | Security key | |
| params[qr] | string | true | QR code | |
| params[qr_hardware_point_id] | integer | true | 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 | true | 'club_card_check_in' constant | |
| key | string | true | Security key | |
| params[club_card_number] | string | true | 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 | true | 'get_valid_clients_vending' constant | |
| key | string | true | 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: { }vending_code: string
Special qr code number for Vending sales
next_reservation: datetime
Timestamp of next reservation
lastname: string
Last name
outlet_ids: string
Coma separated outlet id's, to use in club_id param to filter members from specific club
main_outlet_id: integer
Main outlet id
qrcode_card: string
Card number
member_number: string
Custom id assigned by club.
barcode_card: string
Card number
sex: string
M or F
interjection: string
Interjection
qr_codes: string
Coma separated QR code numbers
club_card: string
Card number
glan_card: string
Card number
email: string
Email
name: string
First name
rfid_card: string
Card number
check_in_pincode: string
Check-in pincode
|
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'client_detail' constant | |
| key | string | true | 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 | true | 'add_money_to_clubcard' constant | |
| key | string | true | Security key | |
| payment_reference | string | true | ||
| 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 | true | 'get_client_by' constant | |
| key | string | true | 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 | true | 'update_client_info' constant | |
| key | string | true | 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 | true | 'get_client_by' constant | |
| key | string | true | 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 | true | 'get_client_by' constant | |
| key | string | true | 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_maxvisit: integer
Max visits allowed by insription, blank if not limited
inscrtype_id: integer
Unique ID of membership
inscr_last_visit: date
Last visit date, DD/MM/YYYY format
inscr_visitdone: integer
Visits done by inscription, blank if limited
inscr_stop_date: date
Blank if not stopped, date in DD/MM/YYYY format if stopped manually in some custom date
inscr_startdate: date
Start date, DD/MM/YYYY format
inscrtype_type: integer
Inscription type id, Trial = 1, Base = 2, Time = 3, Visit = 4, Season = 6, Put money on card = 7
inscr_enddate: date
End date, DD/MM/YYYY format, is normal end date, so will stay same even if inscription stopped
inscrtype_name: string
Title given by club
|
Client inscription data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'login' constant | |
| key | string | true | 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[language_id] | integer | Language ID (See 'get_languages' into General section). 4628 (Dutch) is set if not defined | ||
| 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 | true | 'get_client_fin_info' constant | |
| key | string | true | 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: { }date: date
Date of booking in ledgers
due_date: date
Due date
pay_url: string
Url to pay invoice online
title: string
Invoice code
price: float
Paid amount
payment_reference: string
Payment reference
pdf_url: string
Url to Pdf
|
Invoices data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'add_new_student' constant | |
| key | string | true | 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 | true | 'update_student_information' constant | |
| key | string | true | 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 | true | 'get_student_sales' constant | |
| key | string | true | 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: { }date: date
Date of booking in ledgers
title: string
Product title
price: double
Quantity
payment_reference: string
Payment reference
code: string
Invoice code: year-order_index
|
Products data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_student_information_query' constant | |
| key | string | true | Security key | |
| params[labels] | string | Filter students by labels | ||
| 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
Fields of block
{ index: { }Title: string
Title
values: string
For radio (2) and select (3) types, coma separated
type_id: integer
Type id: 0 = Text, 1 = Date, 2 = Radio buttons, 3 = Select box, 4 = Check box
id: integer
Unique id
is_required: boolean
Is field required
title: string
Title
id: integer
Unique ID
|
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
Hash with field id: data
|
Data |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_user_segments' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| user_segments | hash |
{
id: { }outlet: hash
Data of linked outlet
title: string
Title of category
|
Advanced search templates |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_service_category' constant | |
| key | string | true | 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_values: hash
Blank if suppress_details = 1
{ index: { }password: string
Blank due protecting of personal data
members_mob_phone: string
User mobile phone
mailing_email: string
User email
mailing_lastname: string
User last name
username: string
User name
mailing_interjection: string
User interjection
mailing_name: string
User first name
group_id: integer
Unique ID
group_name: string
Name of group
|
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
Mail type
sent_at: time
Sent time
created_at: time
Time of creation
subject: string
Subject
read_at: time
Read 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: { }body: string
body
sent_at: time
Sent time
mail_to: string
Mail to
users: array
User(s)
created_at: time
Time of creation
from: string
From
subject: string
Subject
read_at: time
Read time
|
Mails |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_sales_invoices' constant | |
| key | string | true | 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: { }payments: hash
Payments registered for invoice
{ index: { }payment_method: string
Title of payment method of transaction
amount: double
Transaction amount
at: datetime
When payment was accepted
date: date
Date of booking in ledgers
paid: double
Amount that was paid
due_date: date
Due date
type_id: integer
Invoice type id, Sales = 0, Offer = 1, Creditnote = 2, Order = 3, Membership = 4
payment_reference: string
Payment reference
price: double
Full price of invoice
id: integer
Invoice ID
pdf_url: string
Download PDF url
code: string
Invoice code: year-order_index
|
Invoices data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_invoice' constant | |
| key | string | true | Security key | |
| params[invoice_id] | integer | true | Invoice database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| invoice | hash |
{
id: { }payments: hash
Payments registered for invoice
{ index: { }payment_method: string
Title of payment method of transaction
amount: double
Transaction amount
at: datetime
When payment was accepted
date: date
Date of booking in ledgers
vat_total: double
VAT total
paid: double
Amount that was paid
due_date: date
Due date
type_id: integer
Invoice type id, Sales = 0, Offer = 1, Creditnote = 2, Order = 3, Membership = 4
payment_reference: string
Payment reference
total_price: double
Full price of invoice
price: double
Full price of invoice
pdf: string
PDF Base64 encoded
products: array
Order lines of invoice
[ { ]bookkeeping_diary: hash
Diary details
vat_price: double
VAT price
discount_fixed: double
Discount fixed value
bookkeeping_type_cost: hash
Bookkeeping type cost details
vat_deductible: double
VAT deductible
custom_product_name: string
Custom product name
product: hash
Product details
line_number: integer
Line number
discount_percent: double
Discount percent value %
price: double
Price
bookkeeping_tax: hash
Tax details
bookkeeping_cost_center: hash
Bookkeeping cost center details
excl_vat_price: double
Excl. VAT
bookkeeping_number: hash
Ledger details
quantity: double
Quantity
description: string
Description
vat: double
VAT %
summable_discount: double
Summable discount
pdf_url: string
Download PDF url
vat_deductible_total: double
VAT deductible total
code: string
Invoice code: year-order_index
discount_total: double
Discount total
|
Invoice details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_payments' constant | |
| key | string | true | 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 | true | 'get_payments' constant | |
| key | string | true | 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 | true | 'get_purchase_invoices' constant | |
| key | string | true | 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: { }payments: hash
Payments registered for invoice
{ index: { }payment_method: string
Title of payment method of transaction
amount: double
Transaction amount
at: datetime
When payment was accepted
date: date
Date of booking in ledgers
paid: double
Amount that was paid
due_date: date
Due date
type_id: integer
Invoice type id, Sales = 0, Offer = 1, Creditnote = 2, Order = 3, Membership = 4
payment_reference: string
Payment reference
price: double
Full price of invoice
id: integer
Invoice ID
pdf_url: string
Download PDF url
code: string
Invoice code: year-order_index
|
Purchase Invoices data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_purchase_invoice' constant | |
| key | string | true | Security key | |
| params[invoice_id] | integer | true | Invoice database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| invoice | hash |
{
id: { }payments: hash
Payments registered for invoice
{ index: { }payment_method: string
Title of payment method of transaction
amount: double
Transaction amount
at: datetime
When payment was accepted
date: date
Date of booking in ledgers
vat_total: double
VAT total
paid: double
Amount that was paid
due_date: date
Due date
type_id: integer
Invoice type id, Sales = 0, Offer = 1, Creditnote = 2, Order = 3, Membership = 4
payment_reference: string
Payment reference
total_price: double
Full price of invoice
price: double
Full price of invoice
products: array
Order lines of invoice
[ { ]bookkeeping_diary: hash
Diary details
vat_price: double
VAT price
discount_fixed: double
Discount fixed value
bookkeeping_type_cost: hash
Bookkeeping type cost details
vat_deductible: double
VAT deductible
custom_product_name: string
Custom product name
product: hash
Product details
line_number: integer
Line number
discount_percent: double
Discount percent value %
price: double
Price
bookkeeping_tax: hash
Tax details
bookkeeping_cost_center: hash
Bookkeeping cost center details
excl_vat_price: double
Excl. VAT
bookkeeping_number: hash
Ledger details
quantity: double
Quantity
description: string
Description
vat: double
VAT %
summable_discount: double
Summable discount
pdf_url: string
Download PDF url
vat_deductible_total: double
VAT deductible total
code: string
Invoice code: year-order_index
discount_total: double
Discount total
|
Purchase invoice details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'buy_product_from_club_card' constant | |
| key | string | true | 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 | true | 'get_products' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| products | hash |
{
index: { }articleno: string
Product number
priceexclvat: double
Price without VAT
category_id: integer
Category id
priceinclvat: double
Full price
destroyed: boolean
Destroyed porduct flag
title: string
Title of product
descr: string
Description of product
vatpercent: double
VAT percent
prod_id: integer
Unique ID of product
|
Products data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_product_categories' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| categories | hash |
{
index: { }category_id: integer
Unique ID of category
title: string
Title of category
|
Categories data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_service_categories' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| categories | hash |
{
index: { }category_id: integer
Unique ID of category
title: string
Title of category
|
Service categories data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_service_category' constant | |
| key | string | true | Security key | |
| params[category_id] | integer | true | Service category database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| category | hash |
{
id: { }outlet: string
The name of the outlet it belongs to
order_idx: integer
Order idx
department: hash
Department details
color: string
Color in POS
title: string
Category name
logo: string
Link to the category logo
show_in_pos: boolean
Is show in POS site home-page
parent: hash
Info about the category parent
show_on_site: boolean
Is show in site
staffs: array
Connected staffs
|
Service categoriy data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_services' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| count | integer | Total count of services | |
| services | hash |
{
id: { }order_idx: integer
Unique ID of service
title: string
Title of service
|
Services data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_service' constant | |
| key | string | true | Security key | |
| params[service_id] | integer | true | Service database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| service | hash |
{
id: { }service_before: hash
Service before
category: hash
Service category
prepayment_percent: double
Prepayment percent
service_type: string
Service type
selling_total_price_rounded: double
Selling total price
color_in_pos: string
Color in POS
order_idx: integer
Order idx
outlets: array
Connected outlets
in_pos: boolean
In pos
article_number: integer
Service number
service_after: hash
Service after
is_show_online: boolean
Is show online
staffs: array
Connected staffs
barcode: string
Barcode
service_duration: integer
Service duration
|
Services data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'products' constant | |
| key | string | true | 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
Id's of outlets, not available if linked to all outlets
title: string
Title
price: double
Full price
pos_ids: array
Id's of POSes, not available if linked to all POSes
vat: double
Vat percent
|
Products data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_labels' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| labels | hash |
{
index: { }allowed_minus: double
Max amount to due to club by this label, 10 means that allowed max minus 10 on club card
max_per_day: double
Max money spent per day
label_id: integer
Unique ID of label
title: string
Title of label
|
Labels data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_labels' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| company_labels | hash |
{
index: { }label_id: integer
Unique ID of label
color: string
color
title: string
Title of label
|
Company Labels data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_labels' constant | |
| key | string | true | Security key | |
| params[client_id] | integer | true | User database ID, not 'Custom ID assigned by club' |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| points | hash |
{
index: { }amount: double
Number of loyalty points at the time of adding
created_at: datetime
Adding date
description: string
Description
|
Company Labels data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'req_activity_groups' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| groups | hash |
{
index: { }event: string
Reserved for future, now always 0
group_id: string
Unique ID of group type
group_name: string
Title of group type
|
Group types data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'req_activity_group_details' constant | |
| key | string | true | 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: { }location: hash
Location. See General 'get_locations' command
schedule: hash
Activity start times
{ index: { }start: time
Activity start time, HH:MM:SS format
waitlist_size: integer
Number of users in waitlist
available: integer
Free places left
id: integer
Lesson id (of specific time/place)
staff_name: string
Name of staff
activity_id_name: string
Activity title
start_time: time
Time of first lesson starts
staff_id: integer
ID of staff
capacity: integer
Maximum capacity of persons
end_time: time
Time of finishing lesson
ext_description: string
Name of staff
activity_id: integer
Activity ID
description: string
Basic description of activity
|
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: { }status: string
Activity status, now always 0
count: string
Activity count, now always 1
activity_id_name: string
Activity title
date: date
Activity start date
start: time
Activity start time, HH:MM:SS format
price: string
Activity price, filled in case status 1, 2
activity_id: integer
Activity ID
|
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: { }user_id: integer
User ID
id: integer
Reservation ID
|
Reservations data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_reservation_groups' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| reservation_groups | hash |
{
id: { }title: string
Group name
|
Reservation group, id and title |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_reservation_group' constant | |
| key | string | true | Security key | |
| params[group_id] | integer | true | Reservation group database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| reservation_group | hash |
{
id: { }max_waiting_list_capacity: integer
Max. waiting list capacity
activity_type: string
Activity type name
activity_title: string
Activity title
by_gender: string
By gender
max_trial_lesson_limit: integer
Max. trial lesson capacity
waiting_list: array
Waiting users list array
users: array
Users array
clear_user_list: array
Clear user list array
capacity_taken: integer
Capacity taken
max_capacity: integer
Max capacity
title: string
Group name
booked_until: string
Booked until
date_time: string
Date + time
avg_age: integer
AVG age of group
|
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_id: integer
User ID
id: integer
Waitlist ID
user_name: string
Full name of user
|
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: { }enddate: date
Enddate DD/MM/YYYY format
club_id: integer
Club ID from get_clubs command
activity_id_name: string
Activity name
staff_id: integer
Staff ID from get_staffs command
no_membership_price: double
Price of activity when user have no valid membership
with_membership_price: double
Price of activity when user have valid membership
startdate: date
Startdate DD/MM/YYYY format
is_active: boolean
Activity enabled/disabled for reserving
shedule: hash
shedule
{ index: { }end: time
Activity end time, HH:MM:SS format
start: time
Activity start time, HH:MM:SS format
weekday: integer
0 Monday, 6 – Sunday, in case weekday = -1 activity is sheduled everyday
sub_type_id: integer
0 - Activity, 1 - Event, 2 - Workshop
group_id: integer
Group id from 'req_activity_groups'
activity_id: integer
Activity ID
|
Shedule |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| holidays | hash | Holidays |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| params[date_time] | date | true | Date time, dd/mm/yyyy. Default is the begin of the current year if no date is specified |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| exceptions | hash |
{
index: { }end_at: date
End at
start_at: date
Start at
user_id: integer
User ID
id: integer
Reservation ID
is_holiday: boolean
Is holiday
|
Exceptions |
| 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: { }start_date: date
Start date
end_date: date
End date
reason: string
Reason
|
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 | true | 'inscrtypes_list_online' constant | |
| key | string | true | Security key | |
| params[club_id] | integer | Club ID of staff from 'get_clubs' |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| inscrtypes | hash |
{
index: { }online_discount_description: string
Description
period: hash
Period
auto_renew: boolean
Payment will be renewed
price_two: hash
Price two information
period_title: string
Period
type: integer
Inscription type id, Trial = 1, Base = 2, Time = 3, Visit = 4, Season = 6, Put money on card = 7
price_one: hash
Price information
is_active: boolean
Is active
price_start_one: hash
Start fee information
price_start_two: hash
Start fee two information
minimal_duration: hash
Minimal duration
is_show_in_reports: bool
Is show in reports
free_period_membership_id: integer
Membership id that will be sold before current type
name: string
Name
id: integer
Inscription ID
price: double
Full price
payment_period_title: string
Payment period
have_custom_link_of_activities: boolean
Check details by 'inscrtype_activities' command with 'inscription_id' of this membership
description: string
Description
start_from_first_of_month: boolean
Restart memberships sold not at 01 of month will be restarted from beginning of next month
membership_group: hash
Membership group
|
Memberships data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'inscrtype_activities' constant | |
| key | string | true | Security key | |
| params[inscription_id] | integer | true | Unique ID of inscription period |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| inscrtype_activities | hash |
{
index: { }online_discount_description: string
Description
free_period_membership_id: integer
Membership id that will be sold before current type
description: string
Description
|
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 | true | 'get_clubs' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| clubs | hash |
{
id: { }details: array
Club sub outlet details
main_outlet: hash
Main outlet data
title: string
Club name
is_main: boolean
Club main flag
sub_outlets: array
Sub outlets data
|
Outlets, id and title |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_club_info' constant | |
| key | string | true | Security key | |
| params[outlet_id] | integer | true | Club database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| clubs | hash |
{
id: { }iban: string
IBAN
longitude: string
Longitude
physical_address: string
Address
instragram_url: string
Instragram
latitude: string
Latitude
city: string
City
zip: string
Zip
facebook_url: string
Facebook
vat_nr: string
VAT nr
pwa_logo: string
Link to the PWA logo
business_bank_code: string
Business bank code
kvk: string
KvK nr
short_title: string
Club short name
country: string
Country name
physical_house_nr: string
House #
language: string
Language
main_outlet: hash
Main outlet data
fax: string
Fax
email: string
Outlet's email
title: string
Club name
logo: string
Link to the logo
phone: string
Phone
physical_house_nr_two: string
House # extra
is_main: boolean
Club main flag
peppol: hash
Peppol data
website: string
Website
sub_outlets: array
Sub outlets data
|
Info for Outlet |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_club_info' constant | |
| key | string | true | Security key | |
| params[outlet_id] | integer | true | Club database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| payment_methods | hash |
{
id: { }is_ponto: boolean
Is ponto allowed?
type_name: string
Type name
is_online: boolean
Is online?
title: string
Title
payment_system_title: string
Payment system title
ledger: hash
Linked ledger
|
Payment methods of Outlet |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_staffs' constant | |
| key | string | true | 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: { }bsn_number: string
BSN number
lastname: string
Last name
qrcode_card: string
Card number
tax_credit: date
Per date
member_number: string
Custom id assigned by club.
agreement_subtype_title: string
Subtype of agreement
barcode_card: string
Card number
sex: string
M or F
interjection: string
Interjection
club_card: string
Card number
agreement_commission_amount: double
Commission
glan_card: string
Card number
email: string
Email
title: string
Staff name
commission_vat_person: double
Commission VAT %
color_mark: string
Staff color
id: integer
Staff ID
agreement_type_title: string
Type of agreement
rfid_card: string
Card number
photo: string
Url to image (max 100px size)
date_service: date
Date service
insurance_number: string
Insurance number
|
Staffs, id and title |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_agenda' constant | |
| key | string | true | Security key | |
| params[staff_id] | integer | ID of the staff for whom the agenda will be retrieved | ||
| params[department_id] | integer | Department ID. See General 'get_departments command | ||
| 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[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| agenda | array |
[
{ ]outlet: hash
Outlet
end_at: datetime
Event end at
cancelled: boolean
Is cancelled
agenda_type: hash
Type
color: string
Color
start_at: datetime
Event start at
department: hash
Department
title: string
Event title
contacts: hash
Contacts
description: string
Event description
|
Agenda items |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_tasks' constant | |
| key | string | true | Security key | |
| params[staff_id] | integer | true | ID of the staff for whom the tasks will be retrieved | |
| 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[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| tasks | array |
[
{ ]start_date: datetime
Task start at
task_type: hash
Task type
due_date: datetime
Task due_date
executor: hash
Executor
is_complete: boolean
Task is complete?
title: string
Task title
description: string
Task description
|
Tasks items |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| clubs | hash |
{
id: { }title: string
Title
id: integer
Outlet ID
poses: hash
POSes data
{ id: { }title: string
POS name
id: integer
POS ID
|
Outlets info |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_departments' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| departments | hash |
{
id: { }title: string
Club name
|
Departments, id and title |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_retention_goals' constant | |
| key | string | true | Security key | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| retention_goals | hash |
{
id: { }average_visit_frequency: double
Expected average visit frequency
title: string
Retention_goal name
retention_activities: array
Linked retention activities
coaching_target: hash
Coaching target
description: string
Description
|
Retention goals, id and title |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_task_types' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| task_types | hash |
{
id: { }title: string
Task type title
|
Task types, id and title |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_task_type' constant | |
| key | string | true | Security key | |
| params[task_id] | integer | true | Task type database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| task_type | hash |
{
id: { }is_show_in_retention_manager: boolean
Is show in retention manager
is_schow_in_lead_manager: boolean
Is show in lead manager
department: hash
Department details
color: string
Color
title: string
Club name
reminder_min: integer
Time duration (min)
is_schow_in_coaching: boolean
Is show in coaching
|
Task type details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_retention_activities' constant | |
| key | string | true | 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 activity title
|
Retention activities data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_retention_activities' constant | |
| key | string | true | Security key | |
| params[retention_activity_id] | integer | true | Retention activity ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| retention_activity | hash |
{
id: { }public_title: string
Public title
is_no_show_in_customer_satisfaction: boolean
Is No show in customer satisfaction
is_no_confirmation_required: boolean
Is No confirmation required
is_no_show_in_continuation: boolean
Is No show in continuation
is_active: boolean
Is active
duration: integer
Duration
full_description: string
Protocol
capacity: integer
Capacity
title: string
Retention activityname
retention_goals: array
Goals
retention_activity_follow_ups: array
Follow-up
is_no_show_in_reports: boolean
Is No show in reports
is_no_send_reminder: boolean
Is No send reminder
is_startable: boolean
Is Startable
|
Task type details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_planning' constant | |
| key | string | true | 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
Date until
color: string
Color
date_from: date
Date from
description: hash
Staff data id, name
work_time: string
Work time
|
Planning |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_planning' constant | |
| key | string | true | Security key | |
| params[planning_id] | integer | true | Planning ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| planning | hash |
{
id: { }weekday_name: array
Grouped by weekday name
location: hash
Location info
date_until: date
Date until
date: date
Planing date
hours: integer
Number of hours
day_part: string
Day part
department: hash
Outlet info
color: string
Color
date_from: date
Date from
description: hash
Staff data id, name
status_title: string
Status title
work_time: string
Work time
|
Staff planning details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_leave' constant | |
| key | string | true | 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: { }status: string
Status
date_until: date
Date until
comment: string
Comment
staff: hash
Staff data id, name
date_from: date
Date from
|
Leave |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_absence' constant | |
| key | string | true | 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: { }status: string
Status
date_until: date
Date until
comment: string
Comment
staff: hash
Staff data id, name
date_from: date
Date from
|
Absence |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_locations' constant | |
| key | string | true | 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: { }longitude: string
Physical longitude
resource_type: hash
Resource type
outlet: hash
Linked outlet
latitude: string
Physical latitude
zip: string
Zipcode
order_idx: integer
Volgorde
house_nr: string
Physical house number
color: string
Color
title: string
Coaching category title
address: string
Physical address
house_nr_two: string
Physical house number two
|
Locations |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_branding' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| branding | hash |
{
id: { }action_buttons_text_color: string
Action buttons text color
content_background_image: string
Content background image
icon: string
Icon (512px x 512px)
second_tiles_color: string
Second color of icons on tiles
action_buttons_background_color: string
Action buttons background color
logo: string
Logo
theme_color: string
Theme color
tiles_color: string
Tiles color
|
Locations |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_languages' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| branding | array | Array of pair{language => id } |
| 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
Date YYYY-MM-DD format
client_id: integer
Client ID
|
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: { }activities: array
Linked activities
membership_info: hash
Membership info
date_time: date
Date YYYY-MM-DD format
client_id: integer
Client ID
|
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 | true | 'get_inscription_invoice_date' constant | |
| key | string | true | Security key | |
| params[inscription_id] | integer | true | Inscription ID | |
| params[date] | date | true | 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 | true | 'get_inscription_invoice_date' constant | |
| key | string | true | Security key | |
| params[inscription_id] | integer | true | Inscription ID | |
| params[start_date] | date | true | 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 | true | 'get_menu_types' constant | |
| key | string | true | Security key | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| menu_types | hash |
{
id: { }title: string
Menu type title
|
Nutrition menu types |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_nutrition_master_group_foods' constant | |
| key | string | true | Security key | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| master_group_foods | hash |
{
id: { }title: string
Group title
source_title: string
Sources title
|
Nutrition master group_foods |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_nutrition_food_groups' constant | |
| key | string | true | Security key | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| group_foods | hash |
{
id: { }title: string
Group title
source_title: string
Sources title
|
Nutrition food groups |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_nutrition_foods' constant | |
| key | string | true | 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: { }quan: double
quan
group: integer
group
gr: integer
Food gr
weight: string
weight
image_path: string
Image path
fatt: double
fatt
nutrition_master_food_group: hash
nutrition master food group
title: string
Food title
carb: double
carb
kcal: double
kcal
nutrition_food_group: hash
nutrition food group
use_mult: boolean
Is use mult
source_title: string
Sources title
prot: double
prot
|
Nutrition foods list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_nutrition_menu_list' constant | |
| key | string | true | 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: { }number: integer
number
cal_group: integer
cal_group
day_idx: integer
day idx
nutrition_menu_type: hash
nutrition menu type
title: string
Food title
type_idx: integer
type idx
source_title: string
Sources title
|
Nutrition foods list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_coaching_exercises' constant | |
| key | string | true | 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: { }coaching_materials: array
Coaching exercise materials
image_set_title: hash
Image type info
coaching_exercise_regions: array
Coaching exercise regions
exercise_type: hash
Exercise type info
title: string
Food title
source_title: string
Sources title
|
Nutrition foods list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_coaching_exercise' constant | |
| key | string | true | Security key | |
| params[exercise_id] | integer | true | Exercise database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| exercise | hash |
{
id: { }image_set: hash
Image set info
coaching_materials: array
Coaching exercise materials
coaching_exercise_regions: array
Coaching exercise muscle regions
video_url: string
Video URL
title: string
Exercise title
images: array
Paths to images
source_title: string
Sources title
description: string
Description
standard_parameters: hash
Standard standard_parameters
{ order_idx: { }unit: hash
Unit details
type_title: string
Coaching exercise set type title
value_2: hash
Second value: label/value
value_1: hash
First value: label/value
set_types_title: string
Default set types title
|
Coaching exercise details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_exercise_muslce_regions' constant | |
| key | string | true | 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 title
|
Exercise region list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_exercise_materials' constant | |
| key | string | true | 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 title
|
Exercise materials list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_exercise_types' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| exercise_types | hash |
{
id: { }title: string
Exercise type title
|
Exercise type list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_meal_types' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| meal_types | hash |
{
id: { }title: string
Meal type title
|
Exercise type list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_calorie_groups' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| calorie_group_numbers | array | Calorie group numbers list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_coaching_categories' constant | |
| key | string | true | 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: { }is_show_on_online_lesson: boolean
Is show on online lesson
order_idx: integer
Order idx
sorting: string
Element sorting
category_type: hash
Category type (idx, ttile)
is_show_on_portal: boolean
Is show on club portal
title: string
Coaching category title
is_show_on_lifestyle: boolean
Is show on lifestyle
image: string
Image path
parent: Hash
Title and ID of the parent category
|
Coaching categories list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_nutrition_menus' constant | |
| key | string | true | 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: { }quan: double
quan
unit: string
unit
meal: hash
Meal title/idx
nutrition_food: hash
Nutrition food (ID, title)
fatt: double
fatt
day_idx: integer
Day index
title: integer
Calorie group number
carb: double
carb
kcal: double
kcal
source_title: string
Source title
prot: double
prot
|
coaching nutrition menus list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_recipe_types' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| recipe_types | hash |
{
id: { }title: string
Recipe type title
|
Coaching recipe types list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_coaching_recipe_tags' constant | |
| key | string | true | 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
Order idx
color: string
Tag color
title: string
Coaching recipe tag title
image: string
Image path
|
Coaching recipe tags list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_coaching_recipes' constant | |
| key | string | true | 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
Coaching category title
title: string
Coaching category title
visibility: string
Visibility type : 1 - Draft ; 2 - Published ;
image: string
Poster image path
recipe_type: hash
Recipe type id/title
|
Coaching recipe list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_coaching_recipe' constant | |
| key | string | true | Security key | |
| params[recipe_id] | integer | true | Coaching recipe database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| coaching_recipe | hash |
{
id: { }prepration_time: string
Preparation time
remarks: text
Allergy
nutrition_macros: text
Nutritional values
ingredients: text
Ingredients
number_of_persons: integer
Number of persons
fatt: double
fatt
title: string
Coaching category title
carb: text
Allergy information
kcal: double
kcal
prerparation_method: text
Prerparation method
description: text
Description
image: string
Poster image path
recipe_type: hash
Recipe type id/title
settings: hash
Recipe settings part
{ data: { }is_show_logo: boolean
Is show icon
visibile_from: date
Visible from date
is_always: boolean
Is show always
visibility: string
Visibility type : 1 - Draft ; 2 - Published ;
visibile_until: date
Visible until date
prot: double
prot
|
Coaching recipe details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_internal_sport_activities' constant | |
| key | string | true | Security key | |
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| sport_activities | hash |
{
id: { }coefficient_threshold: double
Coefficient threshold
kcal_per_hour: double
Kilocalories per hour
is_not_sport_activity: boolean
Is not sport activity
title: string
Coaching category title
image: string
Poster image path
|
Internal API sport activities |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_coaching_workout_groups' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| workout_groups | hash |
{
id: { }title: string
Workout groups title
|
Coaching workout groups list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_coaching_workout_subgroups' constant | |
| key | string | true | 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
Workout main group title
title: string
Workout subgroup title
|
Coaching workout subgroups list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_coaching_workouts' constant | |
| key | string | true | 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: { }sub_group: hash
Workout subgroup id/title
main_group: hash
Workout main group id/title
title: string
Coaching category title
image: string
Poster image path
|
Coaching workouts list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_coaching_workout' constant | |
| params[recipe_id] | integer | true | Coaching workout database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| coaching_workout | hash |
{
id: { }is_use_schemes: boolean
Link target scheme?
is_active: boolean
Is active?
duration: string
Duration
main_group: hash
Workout main group id/title
targets: hash
Linked targets?
{ data: { }title: string
Title of the linked target?
id: integer
ID of the linked target?
is_show_title_in_image: boolean
Show a description on the image?
title: string
Coaching category title
exercises: hash
Coaching exercises
{ data: { }full_title: string
Full exercise title
full_info: string
Full exercise info
sets: hash
Coaching exercise sets
{ order_idx: { }unit: hash
Unit details
type_title: string
Coaching exercise set type title
value_2: hash
Second value
value_1: hash
First value
title: string
Exercise title
images: string
Paths to image
is_use_existing_workouts: boolean
Use existing workout?
source_title: string
Sources title
description: string
Description
image: string
Poster image path
|
Coaching workout details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_coaching_targets' constant | |
| key | string | true | 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: { }is_use_schemes: boolean
Link target scheme?
subtype: string
subtype title
is_active: boolean
Is active?
title: string
Coaching category title
source_title: string
Sources title
|
Coaching targets list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_coaching_target' constant | |
| params[target_id] | integer | true | Coaching target database ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| coaching_target | hash |
{
id: { }schemes: hash
Coaching target schemes
{ index: { }tempo: integer
Tempo
repetitions: integer
Repetitions
time: integer
Time
series: integer
Series
pause: integer
Rest
strength_percent: integer
Strength percent
week: integer
Week
is_use_schemes: boolean
Link target scheme?
subtype: string
subtype title
is_active: boolean
Is active?
title: string
Coaching category title
source_title: string
Sources title
|
Coaching target details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_client_body_composition' constant | |
| key | string | true | 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: { }lastname: string
Last name
sales: string
Sales person name
member_number: string
Custom id assigned by club.
sex: string
M or F or empty ''
interjection: string
Interjection
measurements: array
Body measurements
[ { ]fat_kg: double
Fat mass (kg)
lean_body_mass: double
Lean body mass
length: integer
Length (CM)
water_kg: double
Body water (kg)
bmi: double
BMI
muscle_mass_kg: double
Muscle mass
weighing_date: datetime
Weighing date
fat_moisture_free_mass: double
Fat and moisture-free mass
body_fat_percent: double
Fat mass (%)
metabolic_age: double
Metabolic age
visceral_fat_kg: double
Visceral fat
body_water_percent: double
Body water (%)
weight_kg: double
Weight (kg)
email: string
Email
name: string
First name
personal_coach: string
Personal coach name
photo: string
Url to image (max 100px size)
phone: string
Phone number
mob_phone: string
Mobile phone number
|
User body measurements |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_valid_clients_benfit' constant | |
| key | string | true | 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: { }next_reservation: datetime
Timestamp of next reservation
lastname: string
Last name
inscriptions: hash
All inscriptions as hash, returned only if "memberships" param request valid members
{ index: { }inscr_maxvisit: integer
Max visits allowed by insription, blank if not limited
inscrtype_id: integer
Unique ID of membership
inscr_last_visit: date
Last visit date, DD/MM/YYYY format
inscr_visitdone: integer
Visits done by inscription, blank if limited
inscr_stop_date: date
Blank if not stopped, date in DD/MM/YYYY format if stopped manually in some custom date
inscr_startdate: date
Start date, DD/MM/YYYY format
inscr_id: integer
Unique ID of inscription period
inscrtype_type: integer
Inscription type id, Trial = 1, Base = 2, Time = 3, Visit = 4, Season = 6, Put money on card = 7
inscr_enddate: date
End date, DD/MM/YYYY format, is normal end date, so will stay same even if inscription stopped
inscrtype_name: string
Title given by club
sales: string
Sales person name
member_number: string
Custom id assigned by club.
sex: string
M or F or empty ''
interjection: string
Interjection
email: string
Email
name: string
First name
personal_coach: string
Personal coach name
photo: string
Url to image (max 100px size)
phone: string
Phone number
mob_phone: string
Mobile phone number
|
Users data hash |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_ledger_types' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }title: string
Type title
|
Ledgers types list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_exercise_types' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }title: string
Module title
|
Ledgers modules list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_ledger_groups' constant | |
| key | string | true | 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
Account type id/title
country_id: integer
Country id
title: string
Food title
|
Ledger group list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_ledgers' constant | |
| key | string | true | 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: { }cost_center_type: hash
Bookkeeping type of the cost center
outlet: hash
Linkked outlet
number: string
Ledger number
group: hash
Account group
type: hash
Ledger type (see 'get_ledger_types')
cost_center: hash
Bookkeeping cost center
subgroup: hash
Account subgroup
title: string
Ledger description
diary: hash
Bookkeeping diary
linked_module: hash
Linked module (see 'get_ledger_modules')
|
Ledgers list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_ledger' constant | |
| key | string | true | Security key | |
| params[ledger_id] | integer | Ledger ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| ledger | hash |
{
id: { }cost_center_type: hash
Bookkeeping type of the cost center
outlet: hash
Linkked outlet
tax_report_code: string
Tax report code
level: integer
Level
activated: boolean
Is activated
rgs_code: double
VAT deductible percent
number: string
Ledger number
group: hash
Account group
vat_applicable: boolean
VAT applicable
assets_options: hash
Assets options
{ index: { }depreciation_start_date_type: hash
Start date of depreciation type
number_years: integer
Number of depreciation years
depreciation_cost_ledger: hash
Depreciation costs ledger info
depreciation_sales_ledger: hash
Depreciation sales ledger info
depreciation_percent: double
Depreciation percent
group_name: string
Group name
depreciation_ledger: hash
Depreciation ledger info
residual_percent: double
Residual percent
type: hash
Ledger type (see 'get_ledger_types')
cost_center: hash
Bookkeeping cost center
explanation: string
Explanation
subgroup: hash
Account subgroup
is_client_specific_account: boolean
Is client specific account
title: string
Ledger description
diary: hash
Bookkeeping diary
linked_module: hash
Linked module (see 'get_ledger_modules')
|
Ledger details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_tax_types' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }title: string
Tax types title
|
Tax types list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_tax_eu_services' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }title: string
Tax eu service title
|
Tax eu services list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_taxes' constant | |
| key | string | true | 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 | true | 'get_tax' constant | |
| key | string | true | Security key | |
| params[tax_id] | integer | Tax ID |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| tax | hash |
{
id: { }rgs_code: string
RGS code
percent: double
Tax percent
rgs_description: string
RGS description
eu_service: string
Country
type: string
Tax type
tarif_group: integer
Tariff group
title: string
Tax description
duty: integer
Duty
report_parameters: hash
Tax report parameters
{ index: { }box_credit_note_column_number: integer
Box credit note. Column in report
box_vat_column_number: integer
Box VAT. Column in report
box_turnover_column_number: integer
Box turnover. Column in report
box_vay_credit_note_column_number: integer
Box VAT credit note. Column in report
box_vat_section: hash
Box VAT
box_credit_note_section: hash
Box credit note
box_vat_credit_note_section: hash
Box VAT credit note
box_turnover_section: hash
Box turnover
ledger: hash
Ledger info
btw_code: string
BTW code
|
Ledger details |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_bookkeeping_number_diaries' constant | |
| key | string | true | 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
Linked outlet
number: string
Diary number
bookkeeping_number_type_cost: hash
Bookkeeping number type cost
group: string
Group name
bookkeeping_number_cost_center: hash
Bookkeeping number cost center
description: string
Diary description
|
Bookkeeping number diaries list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_bookkeeping_cost_centers' constant | |
| key | string | true | 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
Linked outlet
number: string
Cost number
description: string
Cost description
|
Bookkeeping number cost centers list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_bookkeeping_cost_types' constant | |
| key | string | true | 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
Linked outlet
number: string
Cost type number
description: string
Cost description
|
Bookkeeping number cost types list |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_transactions' constant | |
| key | string | true | 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: { }iban: string
IBAN
payment_method: hash
Linked payment method
outlet: hash
Linked outlet
counter_account: string
Counter account
transaction_type: string
Transaction type title
autorecognized: boolean
Is autorecognized
amount: double
Amount
account_logo_path: string
Account logo path
imported: boolean
Is imported
posted: date
Posted date
|
List of the bank transactions |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_batches_sepa' constant | |
| key | string | true | Security key | |
| params[outlet_id] | integer | true | Outlet 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 month if no date is specified | ||
| params[page] | integer | Page number | ||
| params[limit] | integer | Limit of items to return |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }canceled_at: datetime
Canceled at
items_count: integer
Batch items count
outlet: hash
Linked outlet
downloaded_at: datetime
Downloaded date
execution_date: date
Execution date
amount: double
Batch total amount
created_at: datetime
Created at
batch_nr: integer
Batch number
status_name: string
Batch status name
id: integer
Batch DB ID
batch_type_name: string
Batch type _name
|
List of the batches SEPA |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'get_batch_sepa' constant | |
| key | string | true | Security key | |
| params[outlet_id] | integer | true | Outlet ID | |
| params[batch_nr] | integer | true | Batch number |
| Naam | Type | Omschrijving | |
|---|---|---|---|
| objects | hash |
{
id: { }canceled_at: datetime
Canceled at
items_count: integer
Batch items count
outlet: hash
Linked outlet
downloaded_at: datetime
Downloaded date
items: array
Batch items list
execution_date: date
Execution date
amount: double
Batch total amount
created_at: datetime
Created at
batch_nr: integer
Batch number
status_name: string
Batch status name
id: integer
Batch DB ID
xml: string
XML string Base64 encoded
batch_type_name: string
Batch type _name
|
The batch details + XML string Base64 encoded |
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'find_my_shift_lesnamen' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving |
|---|
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'find_my_shift_zaalnamen' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving |
|---|
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'find_my_shift_data_tables' constant | |
| key | string | true | Security key |
| Naam | Type | Omschrijving |
|---|
| Naam | Type | verplicht | Omschrijving | Geldige waardes |
|---|---|---|---|---|
| method | string | true | 'find_my_shift_update_les_leraar' constant | |
| key | string | true | 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 | true | 'find_my_shift_update_tijd' constant | |
| key | string | true | 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 | true | 'find_my_shift_create_staff' constant | |
| key | string | true | 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 |