Customers API

Create customer

POST /rest/v1/subjects/customers/

This method creates customer

Parameters

Name Description
customer[vc_code] Code
customer[n_base_subject_id] Base subject
customer[t_tags] Tags list
customer[n_subj_group_id] Group
customer[group_ids] Group ids list
customer[vc_rem] Commentary

Request

Headers

Accept: application/json
Content-Type: application/json

Route

POST /rest/v1/subjects/customers/

Body

{"customer":{"vc_code":"Meine created","n_base_subject_id":78194101,"t_tags":["\u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439_\u0430\u0431\u043e\u043d\u0435\u043d\u0442"],"n_subj_group_id":55027301,"group_ids":[40250801],"vc_rem":"Commentary for created Meine"}}

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 1265

Status

201 Created

Body

{"customer":{"n_subject_id":88434601,"n_base_subject_id":78194101,"vc_base_subject_name":"\u041c\u0430\u0439\u043d\u0435 \u041a\u043b\u0430\u0443\u0441","n_subj_state_id":2011,"vc_name":"\u041c\u0430\u0439\u043d\u0435 \u041a.","vc_code":"Meine created","d_created":"2016-09-26T04:26:36+03:00","t_tags":["\u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439_\u0430\u0431\u043e\u043d\u0435\u043d\u0442"],"vc_rem":"Commentary for created Meine","n_firm_id":100,"n_subj_group_id":55027301,"group_ids":[55027301,40250801],"additional_values":{"SUBJ_VAL_SERVICE_SAMPLE":[null],"SUBJ_VAL_N_WORKSTATION_COUNT":null,"SUBJ_VAL_D_CONNECTION_DATE":null,"SUBJ_VAL_N_PERSONAL_CARD_STATE_ID":null,"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440":[null]}},"actions":{"edit":"http://example.org/rest/v1/subjects/customers/88434601/edit"},"navigation":{"self":"http://example.org/rest/v1/subjects/customers/","accounts":"http://example.org/rest/v1/subjects/customers/88434601/accounts","documents":"http://example.org/rest/v1/subjects/customers/88434601/documents","equipment":"http://example.org/rest/v1/subjects/customers/88434601/equipment"}}