Skip to main content

Update stock (batch)

Update stock values for multiple product items.

Query Parameters
productItemIdType int32

Possible values: [0, 1, 2, 3, 4]

The type of product item id supplied.
0 = Internal. Internal product item id set by Geins.
Eg: 10001.
1 = ArticleNumber. Article number set by customer.
Eg: ABC123.
2 = MarketPrefixedInternal. Internal product item id set by Geins, prefixed with market.
Eg: SE10001.
3 = MarketPrefixedArticleNumber. Article number set by customer, prefixed with market.
Eg: SEABC123.
4 = ExternalId. External product item id set by customer.
Eg: 10001.

Request Body REQUIRED

List of product item ids with new stock values.

object[]
Id string

A value to uniquely identity a single product item.
This value can represent different fields, depending on configuration.

Stock int32

The stock value.

StockSellable int32

The sellable stock value.
This value is read only.

StockType int32

Possible values: [0, 1, 2]

The type of stock to be updated.
0 = Available. Sets the actual count of items in warehouse.
1 = Oversellable. Sets the count for items that are available for purchase but not in physical stock.
2 = Static. Sets the count for items that have a static count that is always available (eg. digital gift cards).
When set, the stock count should be considered the max amount a customer can put in cart for the current item.

Responses
200

The update result.

Schema OPTIONAL
Message string OPTIONAL

Information about the outcome of the request.

Invalid object[] OPTIONAL

Supplied productItemStocks that failed validation.

Id string OPTIONAL

A value to uniquely identity a single product item.
This value can represent different fields, depending on configuration.

Stock int32 OPTIONAL

The stock value.

StockSellable int32 OPTIONAL

The sellable stock value.
This value is read only.

StockType int32 OPTIONAL

Possible values: [0, 1, 2]

The type of stock to be updated.
0 = Available. Sets the actual count of items in warehouse.
1 = Oversellable. Sets the count for items that are available for purchase but not in physical stock.
2 = Static. Sets the count for items that have a static count that is always available (eg. digital gift cards).
When set, the stock count should be considered the max amount a customer can put in cart for the current item.

NotFound object[] OPTIONAL

Supplied productItemStocks that were technically valid, but couldn't be found.

Id string OPTIONAL

A value to uniquely identity a single product item.
This value can represent different fields, depending on configuration.

Stock int32 OPTIONAL

The stock value.

StockSellable int32 OPTIONAL

The sellable stock value.
This value is read only.

StockType int32 OPTIONAL

Possible values: [0, 1, 2]

The type of stock to be updated.
0 = Available. Sets the actual count of items in warehouse.
1 = Oversellable. Sets the count for items that are available for purchase but not in physical stock.
2 = Static. Sets the count for items that have a static count that is always available (eg. digital gift cards).
When set, the stock count should be considered the max amount a customer can put in cart for the current item.

UpdateCount int32 OPTIONAL

Number of stock updates resulting from the request.

400

Bad request.

Schema OPTIONAL
Message string OPTIONAL

Information about the outcome of the request.

Invalid object[] OPTIONAL

Supplied productItemStocks that failed validation.

Id string OPTIONAL

A value to uniquely identity a single product item.
This value can represent different fields, depending on configuration.

Stock int32 OPTIONAL

The stock value.

StockSellable int32 OPTIONAL

The sellable stock value.
This value is read only.

StockType int32 OPTIONAL

Possible values: [0, 1, 2]

The type of stock to be updated.
0 = Available. Sets the actual count of items in warehouse.
1 = Oversellable. Sets the count for items that are available for purchase but not in physical stock.
2 = Static. Sets the count for items that have a static count that is always available (eg. digital gift cards).
When set, the stock count should be considered the max amount a customer can put in cart for the current item.

NotFound object[] OPTIONAL

Supplied productItemStocks that were technically valid, but couldn't be found.

Id string OPTIONAL

A value to uniquely identity a single product item.
This value can represent different fields, depending on configuration.

Stock int32 OPTIONAL

The stock value.

StockSellable int32 OPTIONAL

The sellable stock value.
This value is read only.

StockType int32 OPTIONAL

Possible values: [0, 1, 2]

The type of stock to be updated.
0 = Available. Sets the actual count of items in warehouse.
1 = Oversellable. Sets the count for items that are available for purchase but not in physical stock.
2 = Static. Sets the count for items that have a static count that is always available (eg. digital gift cards).
When set, the stock count should be considered the max amount a customer can put in cart for the current item.

UpdateCount int32 OPTIONAL

Number of stock updates resulting from the request.