Contracts API

Update customer contract state

PUT /rest/v1/subjects/customers/:customer_id/contracts/:id

This method changes customer contract state

Parameters

Name Description
n_doc_type_id Type
n_workflow_id Workflow
n_parent_doc_id Parent
vc_doc_no Number
n_doc_state_id State
d_doc Document date
d_begin Begin date
d_end End date
n_provider_id Provider

Request

Headers

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

Route

PUT /rest/v1/subjects/customers/78419501/contracts/78425301

Body

{"contract":{"vc_rem":"Test contract remark"}}

Response

Headers

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

Status

200 OK

Body

{"contract":{"n_doc_id":78425301,"n_doc_type_id":1002,"n_doc_state_id":4003,"n_parent_doc_id":40232501,"n_workflow_id":10021,"d_doc":"2015-09-24T00:00:00+03:00","vc_doc_no":"\u0410-15/19","d_begin":"2015-09-24T00:00:00+03:00","d_end":null,"n_firm_id":100,"vc_rem":"Test contract remark","n_provider_id":100,"actions":{"edit":"http://example.org/rest/v1/subjects/customers/78419501/contracts/78425301/edit","show":"http://example.org/rest/v1/subjects/customers/78419501/contracts/78425301"},"additional_values":{}},"navigation":{"self":"http://example.org/rest/v1/subjects/customers/78419501/contracts/78425301","customer":"http://example.org/rest/v1/subjects/customers/78419501","contracts":"http://example.org/rest/v1/subjects/customers/78419501/contracts"}}