POST api/account/master/ledger/save

Request Information

URI Parameters

None.

Body Parameters

Systemic.Model.Account.Master.mlAccountMaster+Ledger
NamedescriptionTypeAdditional information
ParentLedgerSysID

integer

None.

ParentLedgerName

string

None.

LedgerSysID

integer

None.

LedgerName

string

None.

AccountSysID

integer

None.

TaxSysID

integer

None.

TaxPercentage

decimal number

None.

IsMainLedger

boolean

None.

IsAllowSubLedger

boolean

None.

IsAutoGenerated

boolean

None.

IsGlobal

boolean

None.

ReferenceType

string

None.

ReferenceSysID

integer

None.

BranchSysID

integer

None.

Credit

decimal number

None.

Debit

decimal number

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "ParentLedgerSysID": 1,
  "ParentLedgerName": "sample string 2",
  "LedgerSysID": 3,
  "LedgerName": "sample string 4",
  "AccountSysID": 5,
  "TaxSysID": 6,
  "TaxPercentage": 7.0,
  "IsMainLedger": true,
  "IsAllowSubLedger": true,
  "IsAutoGenerated": true,
  "IsGlobal": true,
  "ReferenceType": "sample string 12",
  "ReferenceSysID": 13,
  "BranchSysID": 14,
  "Credit": 15.0,
  "Debit": 16.0
}

text/xml

Sample:
<mlAccountMaster.Ledger xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Systemic.Model.Account.Master">
  <AccountSysID>5</AccountSysID>
  <BranchSysID>14</BranchSysID>
  <Credit>15</Credit>
  <Debit>16</Debit>
  <IsAllowSubLedger>true</IsAllowSubLedger>
  <IsAutoGenerated>true</IsAutoGenerated>
  <IsGlobal>true</IsGlobal>
  <IsMainLedger>true</IsMainLedger>
  <LedgerName>sample string 4</LedgerName>
  <LedgerSysID>3</LedgerSysID>
  <ParentLedgerName>sample string 2</ParentLedgerName>
  <ParentLedgerSysID>1</ParentLedgerSysID>
  <ReferenceSysID>13</ReferenceSysID>
  <ReferenceType>sample string 12</ReferenceType>
  <TaxPercentage>7</TaxPercentage>
  <TaxSysID>6</TaxSysID>
</mlAccountMaster.Ledger>

response Information

Resource description

Api.Server.ServerResponse
NamedescriptionTypeAdditional information
response

string

None.

success

Api.Server.MlSuccess

None.

failure

Api.Server.MlError

None.

response Formats

application/json, text/json, text/html

Sample:
{
  "response": "sample string 1",
  "success": null,
  "failure": null
}

text/xml

Sample:
<ServerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Server">
  <failure i:nil="true" />
  <response>sample string 1</response>
  <success i:nil="true" />
</ServerResponse>