This method creates company
Name | Description |
---|---|
company[n_opf_id] | Legal organizational form |
company[vc_code] | Code |
company[vc_eng_code] | International code |
company[vc_name] | Full name |
company[vc_eng_name] | International name |
company[vc_inn] | Tax reference number |
company[vc_kpp] | Tax registration reason code |
company[n_subj_state_id] | Subject state |
company[n_firm_id] | Firm |
company[t_tags] | Tags list |
company[vc_rem] | Commentary |
Accept: application/json Content-Type: application/json
POST /rest/v1/subjects/companies/
{ "company": { "n_opf_id": 1041, "vc_code": "Мордор Телеком", "vc_eng_code": "Mordor Telecom", "vc_name": "ООО \"Мордор Телеком\"", "vc_eng_name": "Mordor Telecom LLC", "vc_inn": "123412341", "vc_kpp": "111111234", "n_parent_subj_id": null, "n_subj_state_id": 2011, "n_firm_id": 100, "n_region_id": 40230101, "t_tags": [ ], "vc_rem": null, "n_subj_group_id": 50152401 } }
Content-Type: application/json; charset=utf-8
201 Created
{ "company": { "n_company_id": 93730201, "n_opf_id": 1041, "vc_opf_code": "ООО", "vc_opf_name": "Общество с ограниченной ответственностью", "vc_code": "Мордор Телеком", "vc_eng_code": "Mordor Telecom", "vc_name": "ООО \"Мордор Телеком\"", "vc_eng_name": "Mordor Telecom LLC", "vc_inn": "123412341", "vc_kpp": "111111234", "n_subject_id": 93730201, "n_subj_type_id": 1001, "n_parent_subj_id": null, "n_subj_state_id": 2011, "vc_subj_state_name": "Активен", "n_base_subject_id": 93730201, "n_firm_id": 100, "vc_firm": "Offline Telecom", "n_region_id": 40230101, "vc_region": "г. Москва", "n_owner_id": 100, "vc_subj_name": "ООО \"Мордор Телеком\"", "vc_subj_code": "Мордор Телеком", "t_tags": [ ], "vc_tags": null, "vc_rem": null, "vc_code_upper": "МОРДОР ТЕЛЕКОМ", "vc_name_upper": "ООО \"МОРДОР ТЕЛЕКОМ\"", "vc_subj_code_upper": "МОРДОР ТЕЛЕКОМ", "vc_subj_name_upper": "ООО \"МОРДОР ТЕЛЕКОМ\"", "n_subj_group_id": 50152401, "vc_subj_group_name": "Корпоративные клиенты" }, "navigation": { "self": "http://example.org/rest/v1/subjects/companies/", "customers": [ ], "addresses": "http://example.org/rest/v1/subjects/companies/93730201/addresses", "companies": "http://example.org/rest/v1/subjects/companies" } }