Skip to main content
PUT
/
stores
/
{storeId}
/
products
Bulk update products
curl --request PUT \
  --url https://api.komerza.com/stores/{storeId}/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "productIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "ignoreOutOfStock": true,
  "isDynamic": true,
  "webhookUrl": "<string>",
  "visibility": 0,
  "deliveryMessage": "<string>",
  "customValueKeys": [
    "<string>"
  ],
  "minimumQuantity": 50000,
  "maximumQuantity": 49999,
  "shouldBlockVirtualPrivateNetworks": true,
  "blacklistedPaymentGateways": [
    "<string>"
  ]
}
'
{
  "success": true,
  "message": "<string>",
  "code": "<string>",
  "data": "<unknown>"
}

Authorizations

Authorization
string
header
required

Your API key goes here

Path Parameters

storeId
string<uuid>
required

The ID of the store.

Body

application/json

The Komerza.Common.Forms.Products.BulkUpdateProductForm with updates.

Form for updating or updating multiple products in a store

productIds
string<uuid>[]
required

The list of product IDs to update

ignoreOutOfStock
boolean | null

Whether the system should ignore if the product is "Out of stock" and allow purchasing the product anyway, mandatory for dynamic products

isDynamic
boolean | null

Whether the product is a dynamic product type, in this case the response from the webhook will dictate the item

webhookUrl
string | null

The webhook URL to send dynamic product requests and just delivery notifications to

Maximum string length: 512
visibility
enum<integer>

List of product visibility (or privacy) levels

Available options:
0,
1,
2
deliveryMessage
string | null

The message to put on the completed delivery email when the product has been delivered

Maximum string length: 2048
customValueKeys
string[] | null

The custom field names to prompt the user with when buying the product

minimumQuantity
integer<int32> | null

The minimum quantity required to buy the product, defaults to 1

Required range: 1 <= x <= 100000
maximumQuantity
integer<int32> | null

The maximum quantity the user is allowed to buy for the product, -1 = no limit

Required range: -1 <= x <= 100000
shouldBlockVirtualPrivateNetworks
boolean | null

Whether VPNs and proxies are blocked from purchasing the product, very good for Stripe

blacklistedPaymentGateways
string[] | null

The array of blacklisted payment methods for the specific product, must be a valid Komerza payment method ID

Response

The object was successfully updated.

Represents a default generic response for API endpoints.

success
boolean
required

Indicates whether the operation or response was successful.

message
string | null

A descriptive message providing additional context or information about the response.

code
string | null

The error code (if there was an error) to use when referencing the error

data
any | null

The data object encapsulated within the response, representing the core output of the API operation