POST api/Inventory/Create

Creates a inventory basis based on the request parameter.

Request Information

URI Parameters

None.

Body Parameters

These are all the parameters needed for creating the inventory basis.

CreateInventoryBasisRequest
NameDescriptionTypeAdditional information
Description

string

Required

Max length: 80

BranchId

integer

Required

SortingOrder

StockSortingOrder

Required

Stock

globally unique identifier

None.

ArticleNumberStart

integer

None.

ArticleNumberEnd

integer

None.

MaingroupIdStart

integer

None.

MaingroupIdEnd

integer

None.

SubgroupIdStart

integer

None.

SubgroupIdEnd

integer

None.

LeaveArticlesInventoriedStartDate

date

None.

LeaveArticlesInventoriedEndDate

date

None.

GroupByMaingroup

boolean

None.

GroupBySubgroup

boolean

None.

ShowQuantity

boolean

None.

ShowReservations

boolean

None.

UseOnlyArticlesInStock

boolean

None.

UseOnlyArticlesAffectingStock

boolean

None.

ShowPalletPlace

boolean

None.

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "Description": "sample string 1",
  "BranchId": 2,
  "SortingOrder": 0,
  "Stock": "86b9709b-8b90-4412-83f4-248e78ad0d17",
  "ArticleNumberStart": 1,
  "ArticleNumberEnd": 1,
  "MaingroupIdStart": 1,
  "MaingroupIdEnd": 1,
  "SubgroupIdStart": 1,
  "SubgroupIdEnd": 1,
  "LeaveArticlesInventoriedStartDate": "2026-01-21 22:49:23",
  "LeaveArticlesInventoriedEndDate": "2026-01-21 22:49:23",
  "GroupByMaingroup": true,
  "GroupBySubgroup": true,
  "ShowQuantity": true,
  "ShowReservations": true,
  "UseOnlyArticlesInStock": true,
  "UseOnlyArticlesAffectingStock": true,
  "ShowPalletPlace": true
}

application/xml, text/xml

Sample:
<CreateInventoryBasisRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Stock">
  <ArticleNumberEnd>1</ArticleNumberEnd>
  <ArticleNumberStart>1</ArticleNumberStart>
  <BranchId>2</BranchId>
  <Description>sample string 1</Description>
  <GroupByMaingroup>true</GroupByMaingroup>
  <GroupBySubgroup>true</GroupBySubgroup>
  <LeaveArticlesInventoriedEndDate>2026-01-21T22:49:23.5185007+01:00</LeaveArticlesInventoriedEndDate>
  <LeaveArticlesInventoriedStartDate>2026-01-21T22:49:23.5185007+01:00</LeaveArticlesInventoriedStartDate>
  <MaingroupIdEnd>1</MaingroupIdEnd>
  <MaingroupIdStart>1</MaingroupIdStart>
  <ShowPalletPlace>true</ShowPalletPlace>
  <ShowQuantity>true</ShowQuantity>
  <ShowReservations>true</ShowReservations>
  <SortingOrder>Description</SortingOrder>
  <Stock>86b9709b-8b90-4412-83f4-248e78ad0d17</Stock>
  <SubgroupIdEnd>1</SubgroupIdEnd>
  <SubgroupIdStart>1</SubgroupIdStart>
  <UseOnlyArticlesAffectingStock>true</UseOnlyArticlesAffectingStock>
  <UseOnlyArticlesInStock>true</UseOnlyArticlesInStock>
</CreateInventoryBasisRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

If all goes well the id of the inventory basis is return and the success property is set to true.

CreateInventoryBasisResponse
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Success

boolean

None.

Messages

Collection of InventoryBasisMessage

None.

Response Formats

application/json, text/json

Sample:

Sample not available.