POST api/tally/create-ledger

Request Information

URI Parameters

None.

Body Parameters

LedgerModel
NameDescriptionTypeAdditional information
LedgerName

string

None.

Alias

string

None.

UnderGroup

string

None.

MaintainBillByBill

boolean

None.

DefaultCreditPeriod

integer

None.

CheckCreditDays

boolean

None.

IsTDSDeductable

boolean

None.

Address

string

None.

State

string

None.

StateCode

string

None.

Country

string

None.

Pincode

string

None.

MobileNo

string

None.

GSTType

string

None.

GSTIN

string

None.

OpeningBalance

decimal number

None.

DrCr

string

None.

Request Formats

application/json, text/json

Sample:
{
  "LedgerName": "sample string 1",
  "Alias": "sample string 2",
  "UnderGroup": "sample string 3",
  "MaintainBillByBill": true,
  "DefaultCreditPeriod": 5,
  "CheckCreditDays": true,
  "IsTDSDeductable": true,
  "Address": "sample string 8",
  "State": "sample string 9",
  "StateCode": "sample string 10",
  "Country": "sample string 11",
  "Pincode": "sample string 12",
  "MobileNo": "sample string 13",
  "GSTType": "sample string 14",
  "GSTIN": "sample string 15",
  "OpeningBalance": 16.0,
  "DrCr": "sample string 17"
}

application/xml, text/xml

Sample:
<LedgerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/fonofy_api.Model">
  <Address>sample string 8</Address>
  <Alias>sample string 2</Alias>
  <CheckCreditDays>true</CheckCreditDays>
  <Country>sample string 11</Country>
  <DefaultCreditPeriod>5</DefaultCreditPeriod>
  <DrCr>sample string 17</DrCr>
  <GSTIN>sample string 15</GSTIN>
  <GSTType>sample string 14</GSTType>
  <IsTDSDeductable>true</IsTDSDeductable>
  <LedgerName>sample string 1</LedgerName>
  <MaintainBillByBill>true</MaintainBillByBill>
  <MobileNo>sample string 13</MobileNo>
  <OpeningBalance>16</OpeningBalance>
  <Pincode>sample string 12</Pincode>
  <State>sample string 9</State>
  <StateCode>sample string 10</StateCode>
  <UnderGroup>sample string 3</UnderGroup>
</LedgerModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LedgerModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.