GET api/RestrictionInsert/byType?branch={branch}&type={type}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| branch | integer |
Required |
|
| type | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of SuperRestrictViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| restriction | Restriction |
None. |
|
| _Data | Collection of Restrictions_Sub |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"restriction": {
"id": 1,
"date": "2025-11-09T13:58:31.5852071+03:00",
"doc_no": 1,
"type": 1,
"state": 1,
"notes": "sample string 2",
"branch": 1,
"IS_Deleted": true,
"omla": 1,
"omlaval": 1.1,
"doc_no2": 1,
"total_dept": 1.1,
"total_credit": 1.1,
"rest_type": 1,
"rest_cycle_no": 1,
"book_id": 1,
"Center": 1,
"create_user": 1,
"reshd_id": 3
},
"_Data": [
{
"res_id": 1,
"dept": 1.1,
"credit": 1.1,
"acc_no": 1.1,
"notes": "sample string 1",
"branch": 1,
"omla": 1,
"omlaval": 1.1,
"center": 1,
"ref_no": "sample string 2",
"RestDate": "2025-11-09T13:58:31.5962389+03:00",
"sub_type": 1,
"rest_sub_type": 1,
"reshd_id": 3
},
{
"res_id": 1,
"dept": 1.1,
"credit": 1.1,
"acc_no": 1.1,
"notes": "sample string 1",
"branch": 1,
"omla": 1,
"omlaval": 1.1,
"center": 1,
"ref_no": "sample string 2",
"RestDate": "2025-11-09T13:58:31.5962389+03:00",
"sub_type": 1,
"rest_sub_type": 1,
"reshd_id": 3
}
]
},
{
"restriction": {
"id": 1,
"date": "2025-11-09T13:58:31.5852071+03:00",
"doc_no": 1,
"type": 1,
"state": 1,
"notes": "sample string 2",
"branch": 1,
"IS_Deleted": true,
"omla": 1,
"omlaval": 1.1,
"doc_no2": 1,
"total_dept": 1.1,
"total_credit": 1.1,
"rest_type": 1,
"rest_cycle_no": 1,
"book_id": 1,
"Center": 1,
"create_user": 1,
"reshd_id": 3
},
"_Data": [
{
"res_id": 1,
"dept": 1.1,
"credit": 1.1,
"acc_no": 1.1,
"notes": "sample string 1",
"branch": 1,
"omla": 1,
"omlaval": 1.1,
"center": 1,
"ref_no": "sample string 2",
"RestDate": "2025-11-09T13:58:31.5962389+03:00",
"sub_type": 1,
"rest_sub_type": 1,
"reshd_id": 3
},
{
"res_id": 1,
"dept": 1.1,
"credit": 1.1,
"acc_no": 1.1,
"notes": "sample string 1",
"branch": 1,
"omla": 1,
"omlaval": 1.1,
"center": 1,
"ref_no": "sample string 2",
"RestDate": "2025-11-09T13:58:31.5962389+03:00",
"sub_type": 1,
"rest_sub_type": 1,
"reshd_id": 3
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfSuperRestrictViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiLite.ViewModel">
<SuperRestrictViewModel>
<_Data xmlns:d3p1="http://schemas.datacontract.org/2004/07/ApiLite.Models">
<d3p1:Restrictions_Sub>
<d3p1:RestDate>2025-11-09T13:58:31.5962389+03:00</d3p1:RestDate>
<d3p1:acc_no>1.1</d3p1:acc_no>
<d3p1:branch>1</d3p1:branch>
<d3p1:center>1</d3p1:center>
<d3p1:credit>1.1</d3p1:credit>
<d3p1:dept>1.1</d3p1:dept>
<d3p1:notes>sample string 1</d3p1:notes>
<d3p1:omla>1</d3p1:omla>
<d3p1:omlaval>1.1</d3p1:omlaval>
<d3p1:ref_no>sample string 2</d3p1:ref_no>
<d3p1:res_id>1</d3p1:res_id>
<d3p1:reshd_id>3</d3p1:reshd_id>
<d3p1:rest_sub_type>1</d3p1:rest_sub_type>
<d3p1:sub_type>1</d3p1:sub_type>
</d3p1:Restrictions_Sub>
<d3p1:Restrictions_Sub>
<d3p1:RestDate>2025-11-09T13:58:31.5962389+03:00</d3p1:RestDate>
<d3p1:acc_no>1.1</d3p1:acc_no>
<d3p1:branch>1</d3p1:branch>
<d3p1:center>1</d3p1:center>
<d3p1:credit>1.1</d3p1:credit>
<d3p1:dept>1.1</d3p1:dept>
<d3p1:notes>sample string 1</d3p1:notes>
<d3p1:omla>1</d3p1:omla>
<d3p1:omlaval>1.1</d3p1:omlaval>
<d3p1:ref_no>sample string 2</d3p1:ref_no>
<d3p1:res_id>1</d3p1:res_id>
<d3p1:reshd_id>3</d3p1:reshd_id>
<d3p1:rest_sub_type>1</d3p1:rest_sub_type>
<d3p1:sub_type>1</d3p1:sub_type>
</d3p1:Restrictions_Sub>
</_Data>
<restriction xmlns:d3p1="http://schemas.datacontract.org/2004/07/ApiLite.Models">
<d3p1:Center>1</d3p1:Center>
<d3p1:IS_Deleted>true</d3p1:IS_Deleted>
<d3p1:book_id>1</d3p1:book_id>
<d3p1:branch>1</d3p1:branch>
<d3p1:create_user>1</d3p1:create_user>
<d3p1:date>2025-11-09T13:58:31.5852071+03:00</d3p1:date>
<d3p1:doc_no>1</d3p1:doc_no>
<d3p1:doc_no2>1</d3p1:doc_no2>
<d3p1:id>1</d3p1:id>
<d3p1:notes>sample string 2</d3p1:notes>
<d3p1:omla>1</d3p1:omla>
<d3p1:omlaval>1.1</d3p1:omlaval>
<d3p1:reshd_id>3</d3p1:reshd_id>
<d3p1:rest_cycle_no>1</d3p1:rest_cycle_no>
<d3p1:rest_type>1</d3p1:rest_type>
<d3p1:state>1</d3p1:state>
<d3p1:total_credit>1.1</d3p1:total_credit>
<d3p1:total_dept>1.1</d3p1:total_dept>
<d3p1:type>1</d3p1:type>
</restriction>
</SuperRestrictViewModel>
<SuperRestrictViewModel>
<_Data xmlns:d3p1="http://schemas.datacontract.org/2004/07/ApiLite.Models">
<d3p1:Restrictions_Sub>
<d3p1:RestDate>2025-11-09T13:58:31.5962389+03:00</d3p1:RestDate>
<d3p1:acc_no>1.1</d3p1:acc_no>
<d3p1:branch>1</d3p1:branch>
<d3p1:center>1</d3p1:center>
<d3p1:credit>1.1</d3p1:credit>
<d3p1:dept>1.1</d3p1:dept>
<d3p1:notes>sample string 1</d3p1:notes>
<d3p1:omla>1</d3p1:omla>
<d3p1:omlaval>1.1</d3p1:omlaval>
<d3p1:ref_no>sample string 2</d3p1:ref_no>
<d3p1:res_id>1</d3p1:res_id>
<d3p1:reshd_id>3</d3p1:reshd_id>
<d3p1:rest_sub_type>1</d3p1:rest_sub_type>
<d3p1:sub_type>1</d3p1:sub_type>
</d3p1:Restrictions_Sub>
<d3p1:Restrictions_Sub>
<d3p1:RestDate>2025-11-09T13:58:31.5962389+03:00</d3p1:RestDate>
<d3p1:acc_no>1.1</d3p1:acc_no>
<d3p1:branch>1</d3p1:branch>
<d3p1:center>1</d3p1:center>
<d3p1:credit>1.1</d3p1:credit>
<d3p1:dept>1.1</d3p1:dept>
<d3p1:notes>sample string 1</d3p1:notes>
<d3p1:omla>1</d3p1:omla>
<d3p1:omlaval>1.1</d3p1:omlaval>
<d3p1:ref_no>sample string 2</d3p1:ref_no>
<d3p1:res_id>1</d3p1:res_id>
<d3p1:reshd_id>3</d3p1:reshd_id>
<d3p1:rest_sub_type>1</d3p1:rest_sub_type>
<d3p1:sub_type>1</d3p1:sub_type>
</d3p1:Restrictions_Sub>
</_Data>
<restriction xmlns:d3p1="http://schemas.datacontract.org/2004/07/ApiLite.Models">
<d3p1:Center>1</d3p1:Center>
<d3p1:IS_Deleted>true</d3p1:IS_Deleted>
<d3p1:book_id>1</d3p1:book_id>
<d3p1:branch>1</d3p1:branch>
<d3p1:create_user>1</d3p1:create_user>
<d3p1:date>2025-11-09T13:58:31.5852071+03:00</d3p1:date>
<d3p1:doc_no>1</d3p1:doc_no>
<d3p1:doc_no2>1</d3p1:doc_no2>
<d3p1:id>1</d3p1:id>
<d3p1:notes>sample string 2</d3p1:notes>
<d3p1:omla>1</d3p1:omla>
<d3p1:omlaval>1.1</d3p1:omlaval>
<d3p1:reshd_id>3</d3p1:reshd_id>
<d3p1:rest_cycle_no>1</d3p1:rest_cycle_no>
<d3p1:rest_type>1</d3p1:rest_type>
<d3p1:state>1</d3p1:state>
<d3p1:total_credit>1.1</d3p1:total_credit>
<d3p1:total_dept>1.1</d3p1:total_dept>
<d3p1:type>1</d3p1:type>
</restriction>
</SuperRestrictViewModel>
</ArrayOfSuperRestrictViewModel>