Update Inventory
The Update Inventory API allows the user to bulk update the inventory for multiple items. Use this endpoint to update the available quantity and out-of-stock purchase settings for multiple items in the inventory.
POST
/
products
/
inventory
Update Inventory
curl --request POST \
--url https://services.leadconnectorhq.com/products/inventory \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"items": [
{
"priceId": "5e9f8f8f8f8f8f8f8f8f8f8",
"availableQuantity": 10,
"allowOutOfStockPurchases": false,
"trackInventory": false
}
]
}
'const options = {
method: 'POST',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({
altId: '6578278e879ad2646715ba9c',
altType: 'location',
items: [
{
priceId: '5e9f8f8f8f8f8f8f8f8f8f8',
availableQuantity: 10,
allowOutOfStockPurchases: false,
trackInventory: false
}
]
})
};
fetch('https://services.leadconnectorhq.com/products/inventory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/products/inventory"
payload = {
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"items": [
{
"priceId": "5e9f8f8f8f8f8f8f8f8f8f8",
"availableQuantity": 10,
"allowOutOfStockPurchases": False,
"trackInventory": False
}
]
}
headers = {
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": true,
"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
Last modified on March 8, 2026
Was this page helpful?
Update Inventory
curl --request POST \
--url https://services.leadconnectorhq.com/products/inventory \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"items": [
{
"priceId": "5e9f8f8f8f8f8f8f8f8f8f8",
"availableQuantity": 10,
"allowOutOfStockPurchases": false,
"trackInventory": false
}
]
}
'const options = {
method: 'POST',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({
altId: '6578278e879ad2646715ba9c',
altType: 'location',
items: [
{
priceId: '5e9f8f8f8f8f8f8f8f8f8f8',
availableQuantity: 10,
allowOutOfStockPurchases: false,
trackInventory: false
}
]
})
};
fetch('https://services.leadconnectorhq.com/products/inventory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/products/inventory"
payload = {
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"items": [
{
"priceId": "5e9f8f8f8f8f8f8f8f8f8f8",
"availableQuantity": 10,
"allowOutOfStockPurchases": False,
"trackInventory": False
}
]
}
headers = {
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": true,
"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"
}