POST api/SubAccountMaster/Save

Request Information

URI Parameters

None.

Body Parameters

SubAccountMasterSave
NameDescriptionTypeAdditional information
SubAccountName

string

Required

String length: inclusive between 0 and 100

BookId

integer

Required

Code

string

String length: inclusive between 0 and 10

AccountCategory

AccountCategoryLookup

Required

Status

string

Required

Matching regular expression pattern: A|I

Prefix

PrefixLookup

None.

SubAccountAddress

string

String length: inclusive between 0 and 300

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

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

Request Formats

application/json, text/json

Sample:
{
  "SubAccountName": "sample string 1",
  "BookId": 2,
  "Code": "sample string 3",
  "AccountCategory": {
    "CategoryId": 1,
    "CategoryName": "sample string 2"
  },
  "Status": "sample string 4",
  "Prefix": {
    "PrefixId": 1,
    "PrefixName": "sample string 2"
  },
  "SubAccountAddress": "sample string 5",
  "TdsApplicableSts": "sample string 6",
  "PanNo": "sample string 7",
  "TdsAccount": {
    "AccountId": 1,
    "AccountName": "sample string 2"
  },
  "TdsPercent": 8.0,
  "GstApplicableSts": "sample string 9",
  "GstNo": "sample string 10",
  "CreateUser": 11,
  "CreateIp": "sample string 12"
}

application/xml, text/xml

Sample:
<SubAccountMasterSave 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>
  <BookId>2</BookId>
  <Code>sample string 3</Code>
  <CreateIp>sample string 12</CreateIp>
  <CreateUser>11</CreateUser>
  <GstApplicableSts>sample string 9</GstApplicableSts>
  <GstNo>sample string 10</GstNo>
  <PanNo>sample string 7</PanNo>
  <Prefix>
    <PrefixId>1</PrefixId>
    <PrefixName>sample string 2</PrefixName>
  </Prefix>
  <Status>sample string 4</Status>
  <SubAccountAddress>sample string 5</SubAccountAddress>
  <SubAccountName>sample string 1</SubAccountName>
  <TdsAccount>
    <AccountId>1</AccountId>
    <AccountName>sample string 2</AccountName>
  </TdsAccount>
  <TdsApplicableSts>sample string 6</TdsApplicableSts>
  <TdsPercent>8</TdsPercent>
</SubAccountMasterSave>

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.