Skip to main content
POST
/
products
/
bulk-update
/
inventory
Bulk Update Inventory
curl --request POST \
  --url https://services.leadconnectorhq.com/products/bulk-update/inventory \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Version: <version>' \
  --data '
{
  "altId": "6578278e879ad2646715ba9c",
  "altType": "location",
  "priceIds": [
    "5f8d0d55b54764421b7156c1",
    "5f8d0d55b54764421b7156c2"
  ],
  "availableQuantity": {
    "type": "ADD_QUANTITY",
    "value": 50
  },
  "allowOutOfStockPurchases": true,
  "trackInventory": true
}
'
{
  "status": true,
  "updatedCount": 25,
  "fieldsUpdated": [
    "availableQuantity",
    "trackInventory"
  ],
  "message": "Successfully created"
}

Authorizations

Authorization
string
header
required

Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.

Headers

Version
enum<string>
required

API Version

Available options:
2021-07-28

Body

application/json
altId
string
required

Location Id or Agency Id

Example:

"6578278e879ad2646715ba9c"

altType
enum<string>
required
Available options:
location
priceIds
string[]
required

Array of price IDs to update

Example:
[
"5f8d0d55b54764421b7156c1",
"5f8d0d55b54764421b7156c2"
]
availableQuantity
object
allowOutOfStockPurchases
boolean

Continue selling when out of stock

trackInventory
boolean

Track inventory for this product

Response

Inventory updated successfully

status
boolean
required

Status of api action

Example:

true

updatedCount
number
required

Number of prices updated

Example:

25

fieldsUpdated
string[]
required

Fields that were updated

Example:
["availableQuantity", "trackInventory"]
message
string

Success message

Example:

"Successfully created"

Last modified on March 4, 2026