PUT api/AccountMaster/Update

Request Information

URI Parameters

None.

Body Parameters

AccountMasterUpdate
NameDescriptionTypeAdditional information
AccountId

integer

Required

BookId

integer

Required

AccountName

string

Required

String length: inclusive between 0 and 100

Code

string

String length: inclusive between 0 and 10

AccountGroup

AccountGroupLookup

Required

AccountCategory

AccountCategoryLookup

Required

Status

string

Required

Matching regular expression pattern: A|I

SubAccountSts

string

Required

Matching regular expression pattern: N|Y

TdsAccountSts

string

Required

Matching regular expression pattern: N|Y

GstAccountSts

string

Required

Matching regular expression pattern: N|Y

TdsApplicableSts

string

Required

Matching regular expression pattern: N|Y

PanNo

string

String length: inclusive between 0 and 30

TdsAccount

AccountMasterLookup

None.

TdsPercent

decimal number

Matching regular expression pattern: ^(0|-?\d{0,3}(\.\d{0,2})?)$

Range: inclusive between 0 and 100

GstApplicableSts

string

Required

Matching regular expression pattern: N|Y

GstNo

string

String length: inclusive between 0 and 30

YearlyProvisionSts

string

Required

Matching regular expression pattern: N|Y

UpdateUser

integer

Required

UpdateIp

string

Required

String length: inclusive between 0 and 20

CashBankSts

string

Required

Matching regular expression pattern: C|B|N

BankMaster

BankMasterLookupVM

None.

BankBranchMaster

BankBranchMasterLookupVM

None.

BankBookType

AccountBookTypeLookup

None.

AccountSubGroup

AccountSubGroupLookupVM

Required

Request Formats

application/json, text/json

Sample:
{
  "AccountId": 1,
  "BookId": 2,
  "AccountName": "sample string 3",
  "Code": "sample string 4",
  "AccountGroup": {
    "GroupId": 1,
    "GroupName": "sample string 2"
  },
  "AccountCategory": {
    "CategoryId": 1,
    "CategoryName": "sample string 2"
  },
  "Status": "sample string 5",
  "SubAccountSts": "sample string 6",
  "TdsAccountSts": "sample string 7",
  "GstAccountSts": "sample string 8",
  "TdsApplicableSts": "sample string 9",
  "PanNo": "sample string 10",
  "TdsAccount": {
    "AccountId": 1,
    "AccountName": "sample string 2"
  },
  "TdsPercent": 11.0,
  "GstApplicableSts": "sample string 12",
  "GstNo": "sample string 13",
  "YearlyProvisionSts": "sample string 14",
  "UpdateUser": 15,
  "UpdateIp": "sample string 16",
  "CashBankSts": "sample string 17",
  "BankMaster": {
    "BankId": 1,
    "BankName": "sample string 2"
  },
  "BankBranchMaster": {
    "BankBranchId": 1,
    "BankBranchName": "sample string 2"
  },
  "BankBookType": {
    "BookTypeId": 1,
    "BookTypeName": "sample string 2"
  },
  "AccountSubGroup": {
    "SubGroupId": 1,
    "SubGroupName": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<AccountMasterUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <AccountCategory>
    <CategoryId>1</CategoryId>
    <CategoryName>sample string 2</CategoryName>
  </AccountCategory>
  <AccountGroup>
    <GroupId>1</GroupId>
    <GroupName>sample string 2</GroupName>
  </AccountGroup>
  <AccountId>1</AccountId>
  <AccountName>sample string 3</AccountName>
  <AccountSubGroup>
    <SubGroupId>1</SubGroupId>
    <SubGroupName>sample string 2</SubGroupName>
  </AccountSubGroup>
  <BankBookType>
    <BookTypeId>1</BookTypeId>
    <BookTypeName>sample string 2</BookTypeName>
  </BankBookType>
  <BankBranchMaster>
    <BankBranchId>1</BankBranchId>
    <BankBranchName>sample string 2</BankBranchName>
  </BankBranchMaster>
  <BankMaster>
    <BankId>1</BankId>
    <BankName>sample string 2</BankName>
  </BankMaster>
  <BookId>2</BookId>
  <CashBankSts>sample string 17</CashBankSts>
  <Code>sample string 4</Code>
  <GstAccountSts>sample string 8</GstAccountSts>
  <GstApplicableSts>sample string 12</GstApplicableSts>
  <GstNo>sample string 13</GstNo>
  <PanNo>sample string 10</PanNo>
  <Status>sample string 5</Status>
  <SubAccountSts>sample string 6</SubAccountSts>
  <TdsAccount>
    <AccountId>1</AccountId>
    <AccountName>sample string 2</AccountName>
  </TdsAccount>
  <TdsAccountSts>sample string 7</TdsAccountSts>
  <TdsApplicableSts>sample string 9</TdsApplicableSts>
  <TdsPercent>11</TdsPercent>
  <UpdateIp>sample string 16</UpdateIp>
  <UpdateUser>15</UpdateUser>
  <YearlyProvisionSts>sample string 14</YearlyProvisionSts>
</AccountMasterUpdate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.