POST api/AccountTypeAPI

Request Information

URI Parameters

None.

Body Parameters

AccountType
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

DefaultFilterType

integer

None.

WorkingRule

integer

None.

SortOrder

integer

None.

UserString

string

None.

Tags

string

None.

UnderGroupLedger

string

None.

NatureofGroup

string

Required

GroupSubLedger

boolean

None.

DebitCreditBalanceReporting

boolean

None.

UsedforCalculation

boolean

None.

PurchaseInvoiceAllocation

boolean

None.

ISBILLWISEON

boolean

None.

ISCOSTCENTRESON

boolean

None.

ISADDABLE

boolean

None.

ISREVENUE

boolean

None.

AFFECTSGROSSPROFIT

boolean

None.

ISDEEMEDPOSITIVE

boolean

None.

TRACKNEGATIVEBALANCES

boolean

None.

ISCONDENSED

boolean

None.

AFFECTSSTOCK

boolean

None.

SORTPOSITION

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "DefaultFilterType": 3,
  "WorkingRule": 4,
  "SortOrder": 5,
  "UserString": "sample string 2",
  "Tags": "sample string 6",
  "UnderGroupLedger": "sample string 7",
  "NatureofGroup": "sample string 8",
  "GroupSubLedger": true,
  "DebitCreditBalanceReporting": true,
  "UsedforCalculation": true,
  "PurchaseInvoiceAllocation": true,
  "ISBILLWISEON": true,
  "ISCOSTCENTRESON": true,
  "ISADDABLE": true,
  "ISREVENUE": true,
  "AFFECTSGROSSPROFIT": true,
  "ISDEEMEDPOSITIVE": true,
  "TRACKNEGATIVEBALANCES": true,
  "ISCONDENSED": true,
  "AFFECTSSTOCK": true,
  "SORTPOSITION": true
}

application/xml, text/xml

Sample:
<AccountType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DCubeHotelDomain.Models.Accounts">
  <AFFECTSGROSSPROFIT>true</AFFECTSGROSSPROFIT>
  <AFFECTSSTOCK>true</AFFECTSSTOCK>
  <DebitCreditBalanceReporting>true</DebitCreditBalanceReporting>
  <DefaultFilterType>3</DefaultFilterType>
  <GroupSubLedger>true</GroupSubLedger>
  <ISADDABLE>true</ISADDABLE>
  <ISBILLWISEON>true</ISBILLWISEON>
  <ISCONDENSED>true</ISCONDENSED>
  <ISCOSTCENTRESON>true</ISCOSTCENTRESON>
  <ISDEEMEDPOSITIVE>true</ISDEEMEDPOSITIVE>
  <ISREVENUE>true</ISREVENUE>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <NatureofGroup>sample string 8</NatureofGroup>
  <PurchaseInvoiceAllocation>true</PurchaseInvoiceAllocation>
  <SORTPOSITION>true</SORTPOSITION>
  <SortOrder>5</SortOrder>
  <TRACKNEGATIVEBALANCES>true</TRACKNEGATIVEBALANCES>
  <Tags>sample string 6</Tags>
  <UnderGroupLedger>sample string 7</UnderGroupLedger>
  <UsedforCalculation>true</UsedforCalculation>
  <WorkingRule>4</WorkingRule>
</AccountType>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.