PUT api/{database}/Account/{fiscalYear}/{accountId}

Updates the specified Account



Request Information

Parameters

NameDescriptionAdditional information
fiscalYear The fiscalYear.

Define this parameter in the request URI.

accountId The accountId.

Define this parameter in the request URI.

value The updated values for Account.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "accountBookingPreference": 0,
  "accountCategory1": "sample string 1",
  "accountCategory2": "sample string 2",
  "accountCategory3": "sample string 3",
  "accountId": "sample string 4",
  "accountType": 0,
  "messages": [],
  "audition": "sample string 5",
  "auditionDescription": "sample string 6",
  "budgetType": 0,
  "canChange": true,
  "cannotChangeReason": "sample string 8",
  "commissionCardType": 0,
  "currentBalance": 9.0,
  "currentTotalCredit": 10.0,
  "currentTotalDebit": 11.0,
  "defaultCostCentreId": "sample string 12",
  "defaultCostUnitId": "sample string 13",
  "description": "sample string 14",
  "fiscalYear": 15,
  "fixedAssetAccountType": 0,
  "hints": "sample string 16",
  "isBlocked": true,
  "isCashDiscount": true,
  "isClient": true,
  "isCondensed": true,
  "isFixedAssetAccount": true,
  "isInterCompanyAccount": true,
  "isProjectAccount": true,
  "isWkrAccount": true,
  "lineNumber": 25,
  "notDeductiblePercentage": 26.0,
  "notDeductibleVatPercentage": 27.0,
  "pageNumber": 28,
  "shortName": "sample string 29",
  "specifyCostCentre": true,
  "specifyCostUnit": true,
  "specifySubAdmin": true,
  "startBalance": 33.0,
  "subAdmin1": "sample string 34",
  "subAdmin2": "sample string 35",
  "subAdmin3": "sample string 36",
  "subTotalLevel": 37,
  "vatBookType": 0,
  "vatCodeId": 1,
  "vatScenarioId": 1,
  "vatType": 0
}

application/xml, text/xml

Sample:
<Account xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Financial.Edit">
  <AccountBookingPreference>None</AccountBookingPreference>
  <AccountCategory1>sample string 1</AccountCategory1>
  <AccountCategory2>sample string 2</AccountCategory2>
  <AccountCategory3>sample string 3</AccountCategory3>
  <AccountId>sample string 4</AccountId>
  <AccountType>Unknown</AccountType>
  <Audition>sample string 5</Audition>
  <AuditionDescription>sample string 6</AuditionDescription>
  <BudgetType>None</BudgetType>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 8</CannotChangeReason>
  <CommissionCardType>Default</CommissionCardType>
  <CurrentBalance>9</CurrentBalance>
  <CurrentTotalCredit>10</CurrentTotalCredit>
  <CurrentTotalDebit>11</CurrentTotalDebit>
  <DefaultCostCentreId>sample string 12</DefaultCostCentreId>
  <DefaultCostUnitId>sample string 13</DefaultCostUnitId>
  <Description>sample string 14</Description>
  <FiscalYear>15</FiscalYear>
  <FixedAssetAccountType>None</FixedAssetAccountType>
  <Hints>sample string 16</Hints>
  <IsBlocked>true</IsBlocked>
  <IsCashDiscount>true</IsCashDiscount>
  <IsClient>true</IsClient>
  <IsCondensed>true</IsCondensed>
  <IsFixedAssetAccount>true</IsFixedAssetAccount>
  <IsInterCompanyAccount>true</IsInterCompanyAccount>
  <IsProjectAccount>true</IsProjectAccount>
  <IsWkrAccount>true</IsWkrAccount>
  <LineNumber>25</LineNumber>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <NotDeductiblePercentage>26</NotDeductiblePercentage>
  <NotDeductibleVatPercentage>27</NotDeductibleVatPercentage>
  <PageNumber>28</PageNumber>
  <ShortName>sample string 29</ShortName>
  <SpecifyCostCentre>true</SpecifyCostCentre>
  <SpecifyCostUnit>true</SpecifyCostUnit>
  <SpecifySubAdmin>true</SpecifySubAdmin>
  <StartBalance>33</StartBalance>
  <SubAdmin1>sample string 34</SubAdmin1>
  <SubAdmin2>sample string 35</SubAdmin2>
  <SubAdmin3>sample string 36</SubAdmin3>
  <SubTotalLevel>37</SubTotalLevel>
  <VatBookType>Default</VatBookType>
  <VatCodeId>1</VatCodeId>
  <VatScenarioId>1</VatScenarioId>
  <VatType>Goods</VatType>
</Account>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "accountBookingPreference": 0,
  "accountCategory1": "sample string 1",
  "accountCategory2": "sample string 2",
  "accountCategory3": "sample string 3",
  "accountId": "sample string 4",
  "accountType": 0,
  "messages": [],
  "audition": "sample string 5",
  "auditionDescription": "sample string 6",
  "budgetType": 0,
  "canChange": true,
  "cannotChangeReason": "sample string 8",
  "commissionCardType": 0,
  "currentBalance": 9.0,
  "currentTotalCredit": 10.0,
  "currentTotalDebit": 11.0,
  "defaultCostCentreId": "sample string 12",
  "defaultCostUnitId": "sample string 13",
  "description": "sample string 14",
  "fiscalYear": 15,
  "fixedAssetAccountType": 0,
  "hints": "sample string 16",
  "isBlocked": true,
  "isCashDiscount": true,
  "isClient": true,
  "isCondensed": true,
  "isFixedAssetAccount": true,
  "isInterCompanyAccount": true,
  "isProjectAccount": true,
  "isWkrAccount": true,
  "lineNumber": 25,
  "notDeductiblePercentage": 26.0,
  "notDeductibleVatPercentage": 27.0,
  "pageNumber": 28,
  "shortName": "sample string 29",
  "specifyCostCentre": true,
  "specifyCostUnit": true,
  "specifySubAdmin": true,
  "startBalance": 33.0,
  "subAdmin1": "sample string 34",
  "subAdmin2": "sample string 35",
  "subAdmin3": "sample string 36",
  "subTotalLevel": 37,
  "vatBookType": 0,
  "vatCodeId": 1,
  "vatScenarioId": 1,
  "vatType": 0
}

application/xml, text/xml

Sample:
<Account xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Financial.Edit">
  <AccountBookingPreference>None</AccountBookingPreference>
  <AccountCategory1>sample string 1</AccountCategory1>
  <AccountCategory2>sample string 2</AccountCategory2>
  <AccountCategory3>sample string 3</AccountCategory3>
  <AccountId>sample string 4</AccountId>
  <AccountType>Unknown</AccountType>
  <Audition>sample string 5</Audition>
  <AuditionDescription>sample string 6</AuditionDescription>
  <BudgetType>None</BudgetType>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 8</CannotChangeReason>
  <CommissionCardType>Default</CommissionCardType>
  <CurrentBalance>9</CurrentBalance>
  <CurrentTotalCredit>10</CurrentTotalCredit>
  <CurrentTotalDebit>11</CurrentTotalDebit>
  <DefaultCostCentreId>sample string 12</DefaultCostCentreId>
  <DefaultCostUnitId>sample string 13</DefaultCostUnitId>
  <Description>sample string 14</Description>
  <FiscalYear>15</FiscalYear>
  <FixedAssetAccountType>None</FixedAssetAccountType>
  <Hints>sample string 16</Hints>
  <IsBlocked>true</IsBlocked>
  <IsCashDiscount>true</IsCashDiscount>
  <IsClient>true</IsClient>
  <IsCondensed>true</IsCondensed>
  <IsFixedAssetAccount>true</IsFixedAssetAccount>
  <IsInterCompanyAccount>true</IsInterCompanyAccount>
  <IsProjectAccount>true</IsProjectAccount>
  <IsWkrAccount>true</IsWkrAccount>
  <LineNumber>25</LineNumber>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <NotDeductiblePercentage>26</NotDeductiblePercentage>
  <NotDeductibleVatPercentage>27</NotDeductibleVatPercentage>
  <PageNumber>28</PageNumber>
  <ShortName>sample string 29</ShortName>
  <SpecifyCostCentre>true</SpecifyCostCentre>
  <SpecifyCostUnit>true</SpecifyCostUnit>
  <SpecifySubAdmin>true</SpecifySubAdmin>
  <StartBalance>33</StartBalance>
  <SubAdmin1>sample string 34</SubAdmin1>
  <SubAdmin2>sample string 35</SubAdmin2>
  <SubAdmin3>sample string 36</SubAdmin3>
  <SubTotalLevel>37</SubTotalLevel>
  <VatBookType>Default</VatBookType>
  <VatCodeId>1</VatCodeId>
  <VatScenarioId>1</VatScenarioId>
  <VatType>Goods</VatType>
</Account>