Skip to main content

Stock Management

Stock management is the practice of ordering, storing, tracking, and controlling inventory.## Stock Object

Stock management applies to every item a business uses to produce its products or services – from raw materials to finished goods. In other words, stock management covers every aspect of a business’s inventory.

Attributes


StockTransferDto

AttributeTypeDescription
codestringUnique code assigned to the stock transfer.
destWarehouseCodestringDestination warehouse code assigned to the stock transfer.
notesstring
srcWarehouseCodestringSource warehouse code assigned to the stock transfer.
stockTransferItemslistAttribute for stockTransferItems
transferDatestringStock Transfer date.

StockAdjustmentDto

AttributeTypeDescription
adjustmentDatestringStock Adjustment
adjustmentReasonenumPossible values for adjustmentReason
adjustmentTypeenumPossible values for adjustmentType
codestringUnique code assigned to the stock adjustment.
notesstring
stockAdjustmentItemslistAttribute for stockAdjustmentItems
totalValuenumber
warehouseCodestringWarehouse code for stock adjustment.

API


Create Stock Transfer

Create new stock transfer.

Parameters

Code

  @Autowired
private InventoryClient inventoryClient;

public StockTransferDto createStockTransfer(String accessToken, StockTransferDto stockTransferDto){
return this.inventoryClient.createStockTransfer(accessToken, stockTransferDto);
}

Retrive Stock Transfer

Retrieves the details of an existing Stock Transfer. You need only supply the unique code that was returned upon Stock Transfer creation.

Parameters

Code

  @Autowired
private InventoryClient inventoryClient;

public StockTransferDto getStockTransferByCode(String accessToken, String code){
return this.inventoryClient.getStockTransferByCode(accessToken, code);
}

Update Stock Transfer

Update the details of an existing Stock Transfer.

Parameters

Code

  @Autowired
private InventoryClient inventoryClient;

public StockTransferDto editStockTransferByCode(String accessToken, StockTransferRequest stockTransferRequest){
return this.inventoryClient.editStockTransferByCode(accessToken, stockTransferRequest);
}

List All Stock Transfer

Returns list of Stock Tarnsfer.

Parameters

Code

  @Autowired
private InventoryClient inventoryClient;

public List<StockTransferDto> getStockTransferList(String accessToken){
return this.inventoryClient.getStockTransferList(accessToken);
}

Search Stock Transfer

Search Stock Transfer.

Parameters

Code

  @Autowired
private InventoryClient inventoryClient;

public RestResponsePage searchStockTransferList(String accessToken, FilterCriteria filterCriteria){
return this.inventoryClient.searchStockTransferList(accessToken, filterCriteria);
}


Create Stock Adjustment

Create new atock Adjustment.

Parameters

Code

  @Autowired
private InventoryClient inventoryClient;

public StockAdjustmentDto createStockAdjustment(String accessToken, StockAdjustmentDto stockAdjustmentDto){
return this.inventoryClient.createStockAdjustment(accessToken, stockAdjustmentDto);
}

Retrive Stock Adjustment

Retrieves the details of an existing Stock Adjustment. You need only supply the unique code that was returned upon Stock Adjustment creation.

Parameters

Code

  @Autowired
private InventoryClient inventoryClient;

public StockAdjustmentDto getStockAdjustmentByCode(String accessToken, String code){
return this.inventoryClient.getStockAdjustmentByCode(accessToken, code);
}


Update Stock Adjustment

Update the details of an existing Stock Adjustment.

Parameters

Code

  @Autowired
private InventoryClient inventoryClient;

public StockAdjustmentDto editStockAdjustmentByCode(String accessToken, StockAdjustmentRequest stockAdjustmentRequest){
return this.inventoryClient.editStockAdjustmentByCode(accessToken, stockAdjustmentRequest);
}


List All Stock Adjustment

Returns list of Stock Adjustment.

Parameters

Code

  @Autowired
private InventoryClient inventoryClient;

public List<StockAdjustmentDto> getStockAdjustmentList(String accessToken){
return this.inventoryClient.getStockAdjustmentList(accessToken);
}

Search Stock Adjustment

Search Stock Adjustment.

Parameters

Code

  @Autowired
private InventoryClient inventoryClient;

public RestResponsePage<StockAdjustmentDto> searchStockAdjustmentList(String accessToken, FilterCriteria filterCriteria){
return this.inventoryClient.searchStockAdjustmentList(accessToken, filterCriteria);
}

Objects


StockTransferItemDto

AttributeTypeDescription
productVariantCodestring
quantityBigDecimalTransfer quantity.
productNamestringProduct name.

StockAdjustmentItemDto

AttributeTypeDescription
perUnitValueBigDecimalPer unit price of product.
productVariantCodestring
quantityBigDecimalTransfer quantity.
productNamestringProduct name.

StockTransferRequest

AttributeTypeDescription
codestringUnique code assigned to the stock transfer.
notesstring

StockAdjustmentRequest

AttributeTypeDescription
codestringUnique code assigned to the stock adjustment.
reasonenumPossible values for reason
notesstring

FilterCriteria

AttributeTypeDescription
fullTextSearchstringText to be searched.
querystring
pageintPage no. to get records for particular page.
limitintTotal no. of records should be displayed on current page.
sortstring
sortDirstring
fromDatestring
toDatestring
filterstring

RestResponsePage«StockAdjustmentDto»

AttributeTypeDescription
contentlistList of Stock Adjustment. Attribute for content
emptyboolean
firstboolean
lastboolean
numberint
numberOfElementsint
pageablePageable
sizeint
sortSort
totalElementslong
totalPagesint

RestResponsePage«StockTransferDto»

AttributeTypeDescription
contentlistList of Stock Transfer. Attribute for content
emptyboolean
firstboolean
lastboolean
numberint
numberOfElementsint
pageablePageable
sizeint
sortSort
totalElementslong
totalPagesint

Pageable

AttributeTypeDescription
offsetlong
pageNumberint
pageSizeint
pagedboolean
sortSort
unpagedboolean

Sort

AttributeTypeDescription
emptyboolean
sortedboolean
unsortedboolean

Enums


ADJUSTMENT_TYPE

  • STOCK_IN
  • STOCK_OUT

ADJUSTMENT_REASON

  • RETURNED
  • PROMOTION
  • STOCKTAKE
  • DAMAGED
  • SHRINKAGE
  • OTHER