POST api/Accounts/save_branch_account
Request Information
URI Parameters
None.
Body Parameters
BranchAccountModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | integer |
None. |
|
| BranchCode | integer |
None. |
|
| BranchName | string |
None. |
|
| CreditLimit | decimal number |
None. |
|
| CreditBalance | decimal number |
None. |
|
| BranchCarryAmount | decimal number |
None. |
|
| CollectedAmount | decimal number |
None. |
|
| BalanceAmount | decimal number |
None. |
|
| CancelationCharge | decimal number |
None. |
|
| Amount | decimal number |
None. |
|
| DOT | string |
None. |
|
| PostedBy | integer |
None. |
|
| Remark | string |
None. |
|
| LedgerCode | integer |
None. |
|
| isBlock | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Code": 1,
"BranchCode": 2,
"BranchName": "sample string 3",
"CreditLimit": 4.1,
"CreditBalance": 5.1,
"BranchCarryAmount": 6.1,
"CollectedAmount": 7.1,
"BalanceAmount": 8.1,
"CancelationCharge": 9.1,
"Amount": 10.1,
"DOT": "sample string 11",
"PostedBy": 12,
"Remark": "sample string 13",
"LedgerCode": 14,
"isBlock": 15
}
application/xml, text/xml
Sample:
<BranchAccountModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TravelAPI.Models"> <Amount>10.1</Amount> <BalanceAmount>8.1</BalanceAmount> <BranchCarryAmount>6.1</BranchCarryAmount> <BranchCode>2</BranchCode> <BranchName>sample string 3</BranchName> <CancelationCharge>9.1</CancelationCharge> <Code>1</Code> <CollectedAmount>7.1</CollectedAmount> <CreditBalance>5.1</CreditBalance> <CreditLimit>4.1</CreditLimit> <DOT>sample string 11</DOT> <LedgerCode>14</LedgerCode> <PostedBy>12</PostedBy> <Remark>sample string 13</Remark> <isBlock>15</isBlock> </BranchAccountModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseCode | integer |
None. |
|
| Message | string |
None. |
|
| Data | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResponseCode": 1,
"Message": "sample string 2",
"Data": "sample string 3"
}
application/xml, text/xml
Sample:
<ResultModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TravelAPI.Models"> <Data>sample string 3</Data> <Message>sample string 2</Message> <ResponseCode>1</ResponseCode> </ResultModelOfstring>