API call to set stock of item in bin.

Since pixi version: LOU Official (6.3.0.4452) Additional notes: Parameters "BatchNumber" and "BestBeforeDate" are mandatory if items are tagged with those tags. If parameter "Username" is not provided at all, "pipiSetStock" is used by default. If it is provided but it is empty, the "Updated By" column in the Bin History stays empty.

    Use the following API calls to get information about possible values for:
    
    - SMORef = pixiGetStockMovementOperations (SMOKey)
    - SMTref = pixiGetStockMovementTypes (SMTKey) or pixiGetStockMovementTypesForOperation (SMTKey)

Request

POST https://apigateway.descartes.com/tms/pixi/pixiSetStock

Request body

Name Type Required Description
LocId string true

Bin location(in case of same binnames on locations).

Type: varchar(3)

Default value:

Example: abcdefg

Available from: LOU Official (6.3.0.4452)

EanUpc string true

EAN of the updated item.

Type: varchar(13)

Default value:

Example: abcdefg

Available from: LOU Official (6.3.0.4452)

SMORef integer true

Stock movement operation key.

Type: int

Default value:

Example: 123

Available from: LOU Official - Update 46 (6.9.46.27927)

SMTref integer true

Stock movement type key.

Type: int

Default value:

Example: 123

Available from: LOU Official - Update 46 (6.9.46.27927)

BinName string true

Name of the updated bin.

Type: varchar(50)

Default value:

Example: abcdefg

Available from: LOU Official (6.3.0.4452)

Username string false

User

Type: varchar(50)

Default value:

Example: abcdefg

Available from: LOU Official - Update 46 (6.9.46.27927)

BatchNumber string false

Batch number for items tagged with Batch Number

Type: varchar(50)

Default value:

Example: abcdefg

Available from: AVA Official - Update 7 (8.4.7.23158)

NewStockQty integer true

New quantity on bin.

Type: int

Default value:

Example: 123

Available from: LOU Official - Update 46 (6.9.46.27927)

BestBeforeDate string false

Best before date for items tagged with Best Before Date

Type: datetime

Default value:

Example: YYYY-MM-DD hh:mm:ss

Available from: AVA Official - Update 7 (8.4.7.23158)


Response

1. Status output

Name Type Description
Status string

Execution status (OK/ERROR)

Type: varchar (20)

Available from: 25.06 (25.6.0.58802)

StatusMessage string

Description of the status

Type: varchar (200)

Available from: 25.06 (25.6.0.58802)