Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UploadAndProcessStockJSONFile

Upload stock JSON (delta)file. The service processes the data async.This service is intended for small files (up to 5MB). Please view the documentation for processing larger files.

Hierarchy

  • UploadAndProcessStockJSONFile

Index

Properties

Optional BackendSystemID

BackendSystemID: undefined | string

The BackendSystemID that belongs to the ProductBackendIDs

Data

Data: string

Should be a JSON formatted array of object with these 3 properties;

  • ProductID (optional, int)
  • ProductBackendID (optional, string)
  • QuantityOnHand (required, int, value >= 0)

Mutation will only be processed for valid ProductID's or ProductBackendID's. In case ProductID and ProductBackendID are provided, ProductBackendID will be selected as the search parameter.

Optional EmailAddress

EmailAddress: undefined | string

An email address to mail the processing result to. When left empty, the logged in user context will be used

Optional IsFullStockMutationFile

IsFullStockMutationFile: undefined | false | true

If set to false (default), only the stock for the products that are present in the file will be updated (delta).

If set to true, all the products will be updated - products not present in the file will be updated to quantity 0.

default

false

Optional OrganizationUnitID

OrganizationUnitID: undefined | number

Entity type: OrganizationUnit

Optional StockLabelID

StockLabelID: undefined | number

Entity type: StockLabel

Optional StockMutationReasonID

StockMutationReasonID: undefined | number

Entity type: StockMutationReasons