POST api/finance-account/upsert

Request Information

URI Parameters

None.

Body Parameters

FinanceAccountUpsertRequest
NameDescriptionTypeAdditional information
Id

integer

None.

AccountTypeId

integer

None.

AccountTypeName

string

None.

CustomerGroupId

integer

None.

CustomerGroupName

string

None.

AccountCode

string

None.

AccountName

string

None.

Note

string

None.

BankName

string

None.

BankBranch

string

None.

AccountNumber

string

None.

CreatedDate

date

None.

F2UserId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "AccountTypeId": 2,
  "AccountTypeName": "sample string 3",
  "CustomerGroupId": 4,
  "CustomerGroupName": "sample string 5",
  "AccountCode": "sample string 6",
  "AccountName": "sample string 7",
  "Note": "sample string 8",
  "BankName": "sample string 9",
  "BankBranch": "sample string 10",
  "AccountNumber": "sample string 11",
  "CreatedDate": "2026-07-14T17:55:06.3861405+07:00",
  "F2UserId": 13
}

application/xml, text/xml

Sample:
<FinanceAccountUpsertRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmiletripB2B.API.Models">
  <AccountCode xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">sample string 6</AccountCode>
  <AccountName xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">sample string 7</AccountName>
  <AccountNumber xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">sample string 11</AccountNumber>
  <AccountTypeId xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">2</AccountTypeId>
  <AccountTypeName xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">sample string 3</AccountTypeName>
  <BankBranch xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">sample string 10</BankBranch>
  <BankName xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">sample string 9</BankName>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">2026-07-14T17:55:06.3861405+07:00</CreatedDate>
  <CustomerGroupId xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">4</CustomerGroupId>
  <CustomerGroupName xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">sample string 5</CustomerGroupName>
  <F2UserId xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">13</F2UserId>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">1</Id>
  <Note xmlns="http://schemas.datacontract.org/2004/07/Common.Objects">sample string 8</Note>
</FinanceAccountUpsertRequest>

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.