Contracts API

List customer contracts

GET /rest/v1/subjects/customers/:customer_id/contracts

This method shows all customer contracts

Request

Headers

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

Route

GET /rest/v1/subjects/customers/78419501/contracts

Response

Headers

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

Status

200 OK

Body

{"contracts":[{"n_doc_id":78420001,"n_doc_type_id":1002,"n_doc_state_id":4003,"n_parent_doc_id":40232501,"n_firm_id":100,"d_doc":"2015-09-23T00:00:00+03:00","vc_doc_no":"\u0410-15/18","d_begin":"2015-09-23T00:00:00+03:00","d_end":null,"vc_rem":null,"n_workflow_id":10021,"n_provider_id":100,"actions":{"show":"http://example.org/rest/v1/subjects/customers/78419501/contracts/78420001","edit":"http://example.org/rest/v1/subjects/customers/78419501/contracts/78420001/edit"}},{"n_doc_id":78425301,"n_doc_type_id":1002,"n_doc_state_id":3003,"n_parent_doc_id":40232501,"n_firm_id":100,"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,"vc_rem":null,"n_workflow_id":10021,"n_provider_id":100,"actions":{"show":"http://example.org/rest/v1/subjects/customers/78419501/contracts/78425301","edit":"http://example.org/rest/v1/subjects/customers/78419501/contracts/78425301/edit"}},{"n_doc_id":78426201,"n_doc_type_id":1002,"n_doc_state_id":3003,"n_parent_doc_id":40232501,"n_firm_id":100,"d_doc":"2015-09-24T00:00:00+03:00","vc_doc_no":"\u0410-15/20","d_begin":"2015-09-24T00:00:00+03:00","d_end":null,"vc_rem":null,"n_workflow_id":10021,"n_provider_id":100,"actions":{"show":"http://example.org/rest/v1/subjects/customers/78419501/contracts/78426201","edit":"http://example.org/rest/v1/subjects/customers/78419501/contracts/78426201/edit"}}],"navigation":{"self":"http://example.org/rest/v1/subjects/customers/78419501/contracts","customer":"http://example.org/rest/v1/subjects/customers/78419501"}}