POST api/Accounts/UpdateAccountingKeyByBranch?pAccountNum={pAccountNum}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pAccountNum

integer

Required

Body Parameters

Collection of AccountingKeyByBranchForAccount
NameDescriptionTypeAdditional information
account_code

integer

Required

branch_code

integer

Required

accounting_key

string

Required

String length: inclusive between 0 and 16

Request Formats

application/json, text/json

Sample:
[
  {
    "account_code": 1,
    "branch_code": 2,
    "accounting_key": "sample string 3"
  },
  {
    "account_code": 1,
    "branch_code": 2,
    "accounting_key": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAccountingKeyByBranchForAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <AccountingKeyByBranchForAccount>
    <account_code>1</account_code>
    <accounting_key>sample string 3</accounting_key>
    <branch_code>2</branch_code>
  </AccountingKeyByBranchForAccount>
  <AccountingKeyByBranchForAccount>
    <account_code>1</account_code>
    <accounting_key>sample string 3</accounting_key>
    <branch_code>2</branch_code>
  </AccountingKeyByBranchForAccount>
</ArrayOfAccountingKeyByBranchForAccount>

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 'List`1'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

Collection of AccountingKeyByBranchForAccount
NameDescriptionTypeAdditional information
account_code

integer

Required

branch_code

integer

Required

accounting_key

string

Required

String length: inclusive between 0 and 16

Response Formats

application/json, text/json

Sample:
[
  {
    "account_code": 1,
    "branch_code": 2,
    "accounting_key": "sample string 3"
  },
  {
    "account_code": 1,
    "branch_code": 2,
    "accounting_key": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAccountingKeyByBranchForAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <AccountingKeyByBranchForAccount>
    <account_code>1</account_code>
    <accounting_key>sample string 3</accounting_key>
    <branch_code>2</branch_code>
  </AccountingKeyByBranchForAccount>
  <AccountingKeyByBranchForAccount>
    <account_code>1</account_code>
    <accounting_key>sample string 3</accounting_key>
    <branch_code>2</branch_code>
  </AccountingKeyByBranchForAccount>
</ArrayOfAccountingKeyByBranchForAccount>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.