PUT api/masteraccount/{id}

Update a specific Master Account record by MasterAccountID

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

MasterAccount
NameDescriptionTypeAdditional information
MasterAccountId

Sedona internal autonumber for the Master Account record; required for Update

integer

Required

MasterAccountCode

Abbreviated Master Account Code

string

None.

Description

Description of the Master Account

string

String length: inclusive between 0 and 60

CustomerId

Foreign key from AR_Customer table; if supplied on put, updates the Customer record this Master is tied to

integer

None.

Inactive

Optional; defaults to N if not supplied on put

boolean

None.

MasterAccountBilling

Optional; defaults to N if not supplied on put

boolean

None.

UseMasterAccountBranch

Optional; defaults to N if not supplied on put

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "MasterAccountId": 1,
  "MasterAccountCode": "sample string 2",
  "Description": "sample string 3",
  "CustomerId": 4,
  "Inactive": true,
  "MasterAccountBilling": true,
  "UseMasterAccountBranch": true
}

application/xml, text/xml

Sample:
<MasterAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models">
  <CustomerId>4</CustomerId>
  <Description>sample string 3</Description>
  <Inactive>true</Inactive>
  <MasterAccountBilling>true</MasterAccountBilling>
  <MasterAccountCode>sample string 2</MasterAccountCode>
  <MasterAccountId>1</MasterAccountId>
  <UseMasterAccountBranch>true</UseMasterAccountBranch>
</MasterAccount>

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 'MasterAccount'.

Response Information

Resource Description

None.