Skip to main content

Update product purchase prices (batch)

Update product purchase price for multiple products. Maximum 10000 products can be updated in one call.

Query Parameters
productIdType int32

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

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

Request Body REQUIRED

List of product ids with new purchase price.

object[]
Id string

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

PurchasePrice double

The purchase price in the currency defined in PurchasePriceCurrency.

PurchasePriceCurrency string

The 3-letter ISO 4217 currency code for the amount given in PurchasePrice.

Responses
200

The update result.

Schema OPTIONAL
Message string OPTIONAL

Information about the outcome of the request.

Invalid object[] OPTIONAL

Supplied purchase price batch items that failed validation.

Id string OPTIONAL

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

PurchasePrice double OPTIONAL

The purchase price in the currency defined in PurchasePriceCurrency.

PurchasePriceCurrency string OPTIONAL

The 3-letter ISO 4217 currency code for the amount given in PurchasePrice.

NotFound object[] OPTIONAL

Supplied purchase batch items that were technically valid, but couldn't be found.

Id string OPTIONAL

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

PurchasePrice double OPTIONAL

The purchase price in the currency defined in PurchasePriceCurrency.

PurchasePriceCurrency string OPTIONAL

The 3-letter ISO 4217 currency code for the amount given in PurchasePrice.

UpdateCount int32 OPTIONAL

Number of purchase price updates resulting from the request.

400

Bad request.

Schema OPTIONAL
Message string OPTIONAL

Information about the outcome of the request.

Invalid object[] OPTIONAL

Supplied purchase price batch items that failed validation.

Id string OPTIONAL

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

PurchasePrice double OPTIONAL

The purchase price in the currency defined in PurchasePriceCurrency.

PurchasePriceCurrency string OPTIONAL

The 3-letter ISO 4217 currency code for the amount given in PurchasePrice.

NotFound object[] OPTIONAL

Supplied purchase batch items that were technically valid, but couldn't be found.

Id string OPTIONAL

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

PurchasePrice double OPTIONAL

The purchase price in the currency defined in PurchasePriceCurrency.

PurchasePriceCurrency string OPTIONAL

The 3-letter ISO 4217 currency code for the amount given in PurchasePrice.

UpdateCount int32 OPTIONAL

Number of purchase price updates resulting from the request.