Bulk Update Inventory
API to bulk update inventory fields (availableQuantity, continueSellingOutOfStock, trackInventory) for multiple prices
POST
/
products
/
bulk-update
/
inventory
Bulk Update Inventory
curl --request POST \
--url https://services.leadconnectorhq.com/products/bulk-update/inventory \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"priceIds": [
"5f8d0d55b54764421b7156c1",
"5f8d0d55b54764421b7156c2"
],
"allowOutOfStockPurchases": true,
"trackInventory": true
}
'const options = {
method: 'POST',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({
altId: '6578278e879ad2646715ba9c',
altType: 'location',
priceIds: ['5f8d0d55b54764421b7156c1', '5f8d0d55b54764421b7156c2'],
allowOutOfStockPurchases: true,
trackInventory: true
})
};
fetch('https://services.leadconnectorhq.com/products/bulk-update/inventory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/products/bulk-update/inventory"
payload = {
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"priceIds": ["5f8d0d55b54764421b7156c1", "5f8d0d55b54764421b7156c2"],
"allowOutOfStockPurchases": True,
"trackInventory": True
}
headers = {
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": true,
"updatedCount": 25,
"fieldsUpdated": [
"availableQuantity",
"trackInventory"
],
"message": "Successfully created"
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}Body
application/json
Response
Inventory updated successfully
Last modified on March 8, 2026
Was this page helpful?
Bulk Update Inventory
curl --request POST \
--url https://services.leadconnectorhq.com/products/bulk-update/inventory \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"priceIds": [
"5f8d0d55b54764421b7156c1",
"5f8d0d55b54764421b7156c2"
],
"allowOutOfStockPurchases": true,
"trackInventory": true
}
'const options = {
method: 'POST',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({
altId: '6578278e879ad2646715ba9c',
altType: 'location',
priceIds: ['5f8d0d55b54764421b7156c1', '5f8d0d55b54764421b7156c2'],
allowOutOfStockPurchases: true,
trackInventory: true
})
};
fetch('https://services.leadconnectorhq.com/products/bulk-update/inventory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/products/bulk-update/inventory"
payload = {
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"priceIds": ["5f8d0d55b54764421b7156c1", "5f8d0d55b54764421b7156c2"],
"allowOutOfStockPurchases": True,
"trackInventory": True
}
headers = {
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": true,
"updatedCount": 25,
"fieldsUpdated": [
"availableQuantity",
"trackInventory"
],
"message": "Successfully created"
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}