curl --request POST \
--url https://services.leadconnectorhq.com/products/bulk-update/edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"products": [
{
"_id": "64a1b2c3d4e5f67890123456",
"name": "Premium Product",
"description": "A high-quality premium product with excellent features and durability",
"image": "https://example.com/product-image.jpg",
"availableInStore": true,
"prices": [
{
"_id": "64a1b2c3d4e5f67890123456",
"name": "Standard Plan",
"amount": 99.99,
"currency": "USD",
"compareAtPrice": 129.99,
"availableQuantity": 100,
"trackInventory": true,
"allowOutOfStockPurchases": false,
"sku": "SKU-001",
"trialPeriod": 7,
"totalCycles": 12,
"setupFee": 25,
"shippingOptions": {
"weight": {
"value": 10,
"unit": "kg"
},
"dimensions": {
"height": 10,
"width": 10,
"length": 10,
"unit": "cm"
}
},
"recurring": {
"interval": "day",
"intervalCount": 1
}
}
],
"collectionIds": [
"64a1b2c3d4e5f67890123458",
"64a1b2c3d4e5f67890123459"
],
"isLabelEnabled": true,
"isTaxesEnabled": true,
"seo": {
"title": "Best Product - Buy Now",
"description": "This is the best product you can buy online with amazing features and great value"
},
"slug": "premium-product",
"automaticTaxCategoryId": "64a1b2c3d4e5f67890123460",
"taxInclusive": false,
"taxes": [
{}
],
"medias": [
{}
],
"label": {}
}
]
}
'{
"message": "Products updated successfully",
"status": true,
"updatedCount": 5
}API to bulk edit products and their associated prices (max 30 entities)
curl --request POST \
--url https://services.leadconnectorhq.com/products/bulk-update/edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"products": [
{
"_id": "64a1b2c3d4e5f67890123456",
"name": "Premium Product",
"description": "A high-quality premium product with excellent features and durability",
"image": "https://example.com/product-image.jpg",
"availableInStore": true,
"prices": [
{
"_id": "64a1b2c3d4e5f67890123456",
"name": "Standard Plan",
"amount": 99.99,
"currency": "USD",
"compareAtPrice": 129.99,
"availableQuantity": 100,
"trackInventory": true,
"allowOutOfStockPurchases": false,
"sku": "SKU-001",
"trialPeriod": 7,
"totalCycles": 12,
"setupFee": 25,
"shippingOptions": {
"weight": {
"value": 10,
"unit": "kg"
},
"dimensions": {
"height": 10,
"width": 10,
"length": 10,
"unit": "cm"
}
},
"recurring": {
"interval": "day",
"intervalCount": 1
}
}
],
"collectionIds": [
"64a1b2c3d4e5f67890123458",
"64a1b2c3d4e5f67890123459"
],
"isLabelEnabled": true,
"isTaxesEnabled": true,
"seo": {
"title": "Best Product - Buy Now",
"description": "This is the best product you can buy online with amazing features and great value"
},
"slug": "premium-product",
"automaticTaxCategoryId": "64a1b2c3d4e5f67890123460",
"taxInclusive": false,
"taxes": [
{}
],
"medias": [
{}
],
"label": {}
}
]
}
'{
"message": "Products updated successfully",
"status": true,
"updatedCount": 5
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
API Version
2021-07-28 Was this page helpful?