Action to include/exclude the product in store
API to update the status of products in a particular store
POST
/
products
/
store
/
{storeId}
Action to include/exclude the product in store
curl --request POST \
--url https://services.leadconnectorhq.com/products/store/{storeId} \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"action": "include",
"productIds": [
"productId1",
"productId2"
]
}
'const options = {
method: 'POST',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({
altId: '6578278e879ad2646715ba9c',
altType: 'location',
action: 'include',
productIds: ['productId1', 'productId2']
})
};
fetch('https://services.leadconnectorhq.com/products/store/{storeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/products/store/{storeId}"
payload = {
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"action": "include",
"productIds": ["productId1", "productId2"]
}
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?
Action to include/exclude the product in store
curl --request POST \
--url https://services.leadconnectorhq.com/products/store/{storeId} \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"action": "include",
"productIds": [
"productId1",
"productId2"
]
}
'const options = {
method: 'POST',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({
altId: '6578278e879ad2646715ba9c',
altType: 'location',
action: 'include',
productIds: ['productId1', 'productId2']
})
};
fetch('https://services.leadconnectorhq.com/products/store/{storeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/products/store/{storeId}"
payload = {
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"action": "include",
"productIds": ["productId1", "productId2"]
}
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"
}