All methods require this fields: firm_id - firm ID from system auth_key - authentification key for selected firm
This fields you may receive in firm profile "Ustawienia" -> "Integracje" -> "API"
After switch on option `Włączyć zewnętrzny API dla firmy`
All data returns as JSON string
Input parameters: name - Name of product code - Code of product tax_buy - Tax rate ID for purchases from the list tax_sell - Tax rate ID for sale from the list ean_nr - EAN number
-
-
-
-
-
-
Output:
Returns `success` or `error` in `status` field
Returns associative array (key `users`) of users with fields: account_id - user identificator account_login - user login account_status - status firm_group_id - affillation of user to group group_slug - the slug of users group display_name - real username and last name in system last_login - date of last user authentification user_photo - link to user profile photo
Returns associative array (key `contractors`) of contractors for selected firm with fields: contractor_id - contractor identificator contractor_name - contractor name contractor_date_created - date of creation in system contractor_nip - NIP of contractor (may be empty) contractor_type - `firm` or `person` (firm or physical person)
Returns associative array (key `taxes` => {id}) of taxes in system with fields: tax_id - tax identificator tax_name - tax name tax_value - tax percentage tax_short - label of tax tax_position - sorting list
Returns associative array (key `units` => {id}) of units in system with fields: unit_id - unit identificator unit_name - full unit name unit_code - short unit name
Returns associative array (key `units` => {id}) of units in system defined by users with fields: id - unit identificator unit_name - full unit name unit_code - short unit name
Returns associative array (key `gtu` => {id}) of GTUs with fields: id - identificator code - short name description - dsecription for gtu is_enabled - status in system: 1 - enabled, 0 - disabled