This method creates dealer
Name | Description |
---|---|
dealer[n_base_subject_id] | Base subject |
dealer[n_collection_fee_fixed] | Fixed collection fee |
dealer[n_currency_id] | Fixed collection fee currency |
dealer[n_collection_fee_percent] | Collection fee percent |
dealer[n_subj_state_id] | Subject state |
dealer[n_owner_id] | Owner |
dealer[vc_name] | Name |
dealer[vc_code] | Code |
dealer[vc_rem] | Remark |
dealer[n_firm_id] | Firm |
dealer[n_region_id] | Region |
dealer[t_tags] | Tags |
Accept: application/json Content-Type: application/json
POST /rest/v2/subjects/dealers/
{ "dealer": { "n_base_subject_id": 50152501, "n_collection_fee_fixed": null, "n_currency_id": 1044, "n_collection_fee_percent": null, "n_subj_state_id": 2011, "n_owner_id": null, "vc_name": "Dealer", "vc_code": "Dealer", "vc_rem": null, "n_firm_id": 100, "n_region_id": null, "t_tags": [ ] } }
Content-Type: application/json; charset=utf-8
201 Created
{ "dealer": { "n_reseller_id": 93749301, "n_collection_fee_fixed": null, "n_currency_id": 1044, "vc_currency": "₽", "n_collection_fee_percent": null, "n_subject_id": 93749301, "n_subj_type_id": 20001, "n_parent_subj_id": null, "n_subj_state_id": 2011, "vc_subj_state_name": "Активен", "n_base_subject_id": 50152501, "n_firm_id": 100, "vc_firm": "Offline Telecom", "n_region_id": null, "vc_region": null, "n_owner_id": null, "vc_name": "Dealer", "vc_code": "Dealer", "d_created": "2019-07-26T10:50:05+03:00", "n_creator_id": 50162901, "vc_creator_name": "Оруэлл Д.", "vc_creator_code": "gordon", "t_tags": [ ], "vc_tags": null, "vc_rem": null, "vc_code_upper": "DEALER", "vc_name_upper": "DEALER", "vc_subj_code_upper": "DEALER", "vc_subj_name_upper": "DEALER" }, "navigation": { "self": "http://example.org/rest/v2/subjects/dealers/", "dealers": "http://example.org/rest/v2/subjects/dealers" } }